<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
 String cachename = request.getParameter("CACHENAME");
%>
<html>
  <head>
    <title></title>

   <%--  富客户端环境引用文件  --%> 
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
  </head>
  <body class="gaowj">
  <%@ include file="menuoperate.jsp"%>
  <table cellpadding="0" cellspacing="0">
   <tr class="clickable_t">
          <td colspan="10" align="left">&nbsp;&nbsp;当前缓存使用情况</td>
        </tr>
        <tr><td>
  <table id="resizabletable" class="sortable"  border="0" cellpadding="0" cellspacing="1" bgcolor="#999999">
   <thead>
        
        <tr bgcolor="#c0c0c0">
          <th width="60" align="center" class="sort-alpha">序号</th>
          <th width="60" align="center" class="sort-alpha" >KEY名称</th>
          <th width="250" align="center" class="sort-alpha" >内容</th>
          <th width="120" align="center" class="sort-alpha" >创建时间</th>
          <th width="120" align="center" class="sort-alpha" >最后访问时间</th>
          <th width="120" align="center" class="sort-alpha" >过期时间</th>
          <th width="120" align="center" class="sort-alpha" >最后更新时间</th>
          <th width="100" align="center" class="sort-alpha" >命中次数</th>
          <th width="100" align="center" class="sort-alpha" >存活时间(秒)</th>
          <th width="100" 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="KEYID"/>');" onMouseOver="this.style.backgroundColor='#D0E6EE';" onMouseOut="this.style.backgroundColor='#FFFFFF'" bgcolor="#FFFFFF">
          <td align="center">
          <input id="<s:property value="KEYID"/>" type="checkbox" name="checkbox" value="checkbox"><span id="<s:property value="KEYID"/>value"><s:property value='#j'/></span>
          </td>
          <td align="center"><s:property value="KEYID"/></td>
          <td align="center"><s:property value="VALUE"/></td>
          <td align="center"><s:property value="CREATIONTIME"/></td>
          <td align="center"><s:property value="LASTACCESSTIME"/></td>
          <td align="center"><s:property value="EXPIRATIONTIME"/></td>
          <td align="center"><s:property value="LASTUPDATETIME"/></td>
          <td align="center"><s:property value="HITCOUNT"/></td>
          <td align="center"><s:property value="TIMETOLIVE"/></td>
          <td align="center"><s:property value="TIMETOIDLE"/></td>
        </tr>
         </s:iterator>
         </tbody>
         <tfoot>
        <tr>
          <td colspan="10" align="right" bgcolor="#FFFFFF" height="25">  　　
         
          </td>
        </tr>
        </tfoot>
      </table>
  </td></tr></table>
  </body>
  <script type="text/javascript">
    var cachename = "<%=cachename %>";
    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='';
    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;
    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="cache_cacheKeys?CACHENAME="+cachename;
    }
    function g_return(){
        window.location="cache_cache";
    }
    function g_delete(){
    	if(ls_new!=null){
            window.location="cache_cacheKeys_deleteKey?CACHENAME="+cachename+"&KEYID="+ls_new.id;
      	}
    }
  </script>

</html>
