<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl>$nc_charset</tpl>" />
<title><tpl>$admin_header_tools_manage</tpl> - <tpl>$admin_tools_log</tpl></title><!-- 工具管理 - 日志管理 -->
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/toolbox.css" />
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/main.css" />
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/admin/templates/global.js"></script>
<script type="text/javascript">
	function changeFun(value){
		$("#action_log").attr("value",value);
		$("#form1").submit();
	}
</script>
</head>
<body id="goodsList">
<div id="content">
  <h2>
    <tpl>$admin_header_tools_manage</tpl>
    <!-- 工具管理 -->
    >>
    <tpl>$admin_tools_log</tpl>
    <!-- 日志管理 -->
  </h2>
  <div class="entry-body" id="p-list-div">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="pListTab" class="stripeMe">
      <tr>
      
      <td colspan="6" class="searchbar">
      
      <div class="alignRight">
        <form id="form" name="form" action="admin_tool_log.php?action=log_list" method="get">
          <input type="hidden" name="search" value="search" />
		  <input type="hidden" name="action" value="log_list" />
          <tpl>$search_log</tpl>
          <input type="text" name="search_key" id="search_key" />
          <input type="submit" name="button" id="button" value="<tpl>$admin_tool_log_search</tpl>" class="btnInput" />
          <!-- 日志搜索 -->
        </form>
      </div>
      <form id="form1" name="form1" action="admin_tool_log.php"  method="get">
      
      <input type="submit" name="del" value="<tpl>$admin_tool_log_del</tpl>" class="delBtnInput" />
      <!-- 删除 -->
      <input type="hidden" name="action" id="action_log" value="log_del" />
      <select name="clear_type" id="clear_type"  >
        <option value=""><tpl>$admin_tool_log_select</tpl></option>
        <option value=7 />
        <tpl>$admin_tool_log_one_week</tpl>
        </option>
        
        <option value=30 />
        <tpl>$admin_tool_log_one_month</tpl>
        </option>
        
        <option value=90 />
        <tpl>$admin_tool_log_three_month</tpl>
        </option>
        
        <option value=180 />
        <tpl>$admin_tool_log_six_month</tpl>
        </option>
        
        <option value=365 />
        <tpl>$admin_tool_log_year</tpl>
        </option>
        
        <option value="all" />
        <tpl>$admin_tool_log_all</tpl>
        </option>
        
      </select>
      <input type="button" onclick="changeFun('log_clear');" value="<tpl>$admin_tool_log_clear</tpl>" class="btnInput" />
      <!-- 清理日志 -->
      </td>
      
      </tr>
      
      <tr>
        <th><input type="checkbox" name="all" id="all" /></th>
        <th><tpl>$admin_tool_log_user</tpl>
          <!-- 执行人 --></th>
        <th><tpl>$admin_tool_log_group</tpl>
          <!-- 执行人级别 --></th>
        <th><tpl>$admin_tool_log_ip</tpl>
          <!-- ip地址 --></th>
        <th><tpl>$admin_tool_log_time</tpl>
          <!-- 执行时间 --></th>
        <th class="textLeft"><tpl>$admin_tool_log_info</tpl>
          <!-- 执行记录 --></th>
      </tr>
      <tpl> section name=list loop=$log_array </tpl>
      <tr>
        <td><input type="checkbox" name="log_id[]" value="<tpl>$log_array[list].log_id</tpl>"  class="cb"  /></td>
        <td><tpl>$log_array[list].log_user</tpl></td>
        <td><tpl>if $log_array[list].admin_group == '1'</tpl><tpl>$admin_create_user</tpl><tpl>else</tpl><tpl>$admin_user</tpl><tpl>/if</tpl></td>
        <td><tpl>$log_array[list].log_ip</tpl></td>
        <td><tpl>$log_array[list].log_time|date_format:"%Y-%m-%d %H:%M:%S"</tpl></td>
        <td class="textLeft"><tpl>$log_array[list].log_info</tpl></td>
      </tr>
      <tpl> /section </tpl>
      <tr>
        <td colspan="6" class="searchbar"><input type="submit" name="del" value="<tpl>$admin_tool_log_del</tpl>" class="delBtnInput" />
          <div class="pagebar">
            <tpl>$log_page</tpl>
          </div></td>
      </tr>
    </table>
    </form>
  </div>
  <!--  end of p-list-div  -->
 <tpl>include_php file ='admin_footer.php'</tpl><!-- 底部版权信息 -->
</div>
<!--  end of content  -->
</body>
</html>
