<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cache_List.aspx.cs" Inherits="RM.Web.RMBase.SysCache.Cache_List" %>

<!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 id="Head1" runat="server">
    <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Cache_List_hcgl")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    b{ color:Red;}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Cache_List_hcgl")%>
        </div>
    </div>
    <div class="btnbarcontetn" style=" text-align:right;">
        <%=string.Format(RM.Common.DotNetConfig.LanguageHelper.GetKey("Cache_List_tishi"), Cache.Count, CacheSize)%>
        ，<input  type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Cache_List_cc") %>'' onclick="edit()" /> | 
        <asp:Button
            ID="qingquanbu" runat="server" Text="" onclick="Button1_Click" />
    </div>
    <div class="div-body">
        <table id="table1" class="grid" singleselect="true">
            <thead>
                <tr>
                    <td style="width: 20px; text-align: center;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan")%>">
                            &nbsp;</label>
                    </td>
                    <td style="width: 35px; text-align: center;" >
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Name")%>
                    </td>
                    <td style="width: 80px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Size")%>
                    </td>
      
                </tr>
            </thead>
            <tbody>
                <%=sb.ToString() %>
            </tbody>
        </table>
    </div>
    </form>
 <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            divresize(83);
            FixedTableHeader("#table1", $(window).height() - 91);
        })
        function edit() {
            var arrt = new Array();
            arrt = CheckboxValue().split('|');
            var key = arrt[0];
            if (IsEditdata(CheckboxValue())) {
                var url = "?key=" + key;
                $.get("/RMBase/SysCache/RemoveCache.ashx", { key: key },
                function (data) {
                    if (data == "go") {
                        alert('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("True") %>');
                        window.location = "/RMBase/SysCache/Cache_List.aspx";
                    } else {
                        showTipsMsg('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("False") %>', '2500', '5');
                    }
                });
            }
        }
        
    </script>
</body>
</html>