<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
  <head>
    <title></title>

   <%--  富客户端环境引用文件  --%> 
<%@ include file="/gaowj/header-simple-app-1.0.jsp"%>
 </head> <br/>
  <body class="gaowj">
<div class="easyui-layout" style="width:99%;height:90%;margin:0 5px;">
		
		<div data-options="region:'center',iconCls:'icon-ext-05_00'" title="登陆日志列表">
  <%@ include file="menuoperate.jsp"%>
  <table cellpadding="0" cellspacing="0">

        <tr><td>
  <table id="resizabletable" class="sortable"  border="0" cellpadding="0" cellspacing="1" bgcolor="#f4f4f4">
   <thead>
        
        <tr bgcolor="#c0c0c0">
          <th width="60" align="center" class="sort-alpha">序号</th>
          <th width="60" align="center" class="sort-alpha">登陆码</th>
          <th width="60" align="center" class="sort-alpha">姓名</th>
          <th width="96" align="center" class="sort-alpha">登陆IP</th>
          <th width="108" align="center" class="sort-alpha">操作内容</th>
          <th width="152" align="center" class="sort-alpha">登陆时间</th>
          <th width="80" align="center" class="sort-alpha">人员类型</th>
          <th width="56" align="center" class="sort-alpha">事件</th>
        </tr>
        </thead>
        <tbody>
        <s:set name="j" value="0"></s:set>
        <s:iterator value="listdata">
        <s:set name="j" value="#j+1"></s:set>
        <tr  ondblclick="g_dbclick();" onclick="ls_choice('<s:property value="ID"/>');" onMouseOver="this.style.backgroundColor='#D0E6EE';" onMouseOut="this.style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF">
          <td align="center">
          <input id="<s:property value="ID"/>" type="checkbox" name="checkbox" value="checkbox"><span id="<s:property value="ID"/>value"><s:property value='#j'/></span>
          </td>
          <td align="center"><s:property value="CODE"/></td>
          <td align="center"><s:property value="EMNAME"/></td>
          <td align="center"><s:property value="EMIP"/></td>
          <td align="center"><s:property value="OPENAME"/></td>
          <td align="center"><fmt:formatDate value="${OPETIME}" pattern="${datetimeZH}" /></td>
          <td align="center"><s:if test='TYPE=="O"'>员工</s:if><s:elseif test='TYPE=="W"'>客户</s:elseif><s:else>停用</s:else></td>
          <td align="center"><s:property value="OPETYPE"/></td>
        </tr>
         </s:iterator>
         </tbody>
         <tfoot>
        <tr>
          <td colspan="12" align="left" valign="middle" style="background:url(image/img_vk/bg001.png);"> 
          <form name="p" action="grid_log" method="post">
           <table border="0"><tr><td>　
             
         <select name="pageSize" onChange="submit();">　
        <s:iterator value="listPageSize">
          <option <s:if test="pageSize==pageSizec">selected</s:if>  value="<s:property value="pageSizec"/>"><s:property value="pageSizec"/></option>
        </s:iterator>
        </select>
          
          </td>
          <td>       
        <s:a action="grid_log"><img src="image/img_vk/first.png" border="0"/>
         <s:param name='pageNo'>1</s:param>
         <s:param name='pageSize' value="pageSize"></s:param>
        </s:a>&nbsp;&nbsp;&nbsp;&nbsp;
        <s:if test="pageNo>1">
        <s:a action="grid_log"><img src="image/img_vk/previous.png" border="0"/>
         <s:param name='pageNo' value="pageNo-1"></s:param>
         <s:param name='pageSize' value="pageSize"></s:param>
        </s:a>　
        </s:if>
        </td>
        <td valign="top">
                    第 <s:property value="pageNo"/>共 
        <s:property value="pageCount"/> 页 
        </td>
        <td>
        <s:if test="pageNo<pageCount">
        <s:a action="grid_log"><img src="image/img_vk/next.png" border="0"/>
         <s:param name='pageNo' value="pageNo+1"></s:param>
         <s:param name='pageSize' value="pageSize"></s:param>
        </s:a>
        </s:if>&nbsp;&nbsp;&nbsp;&nbsp;
        <s:a action="grid_log"><img src="image/img_vk/last.png" border="0"/>
          <s:param name='pageNo' value="pageCount"></s:param>
          <s:param name='pageSize' value="pageSize"></s:param>
        </s:a>
         </td></tr></table>
         </form>
          </td>
        </tr>
        </tfoot>
      </table>
  </td></tr></table>
  </div>
  </div>
  </body>
  <script type="text/javascript">
  document.getElementById("g_list").style.display='none';
  document.getElementById("g_password").style.display='none';
  document.getElementById("g_add").style.display='none';
  document.getElementById("g_open").style.display='none';
  document.getElementById("g_copy").style.display='none';
  document.getElementById("g_delete").style.display='none';
  document.getElementById("g_preview").style.display='none';
  document.getElementById("g_taoda").style.display='none';
  document.getElementById("g_refresh").style.display='';
  document.getElementById("g_save").style.display='none';
  document.getElementById("g_return").style.display='none';
  document.getElementById("g_groupCmodule").style.display='none';
  document.getElementById("g_groupCuser").style.display='none';
  document.getElementById("g_userCuser").style.display='none';
  var ls_code;
  var ls_old,ls_new
  var page="<s:property value='pageNo'/>";
  var pageSize="<s:property value='pageSize'/>";
  function ls_choice(ls_current){
	     if(ls_old!=null){
	       ls_old.checked=false;
	     }
	     ls_new = document.getElementById(ls_current);
	     ls_new.checked=true;
	     ls_old = ls_new;
	    }
  function g_refresh(){
	     window.location="grid_log?pageNo="+page+"&pageSize="+pageSize;
	    }
  </script>

</html>
