<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_AdminLogList, LebiMall" %>
 <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 runat="server">
    <title>操作日志</title>
        <link href="css/css.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="js/checked.js"></script>
        <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
        <script src="js/jquery.js" type="text/javascript"></script>
        <script src="js/tipswindown.js" type="text/javascript"></script>
        <script src="js/topHead.js" type="text/javascript"></script>
       <script type="text/javascript">
        function dels(){
            if(confirm("您确定要删除"+document.getElementById("select").value+"天前的日志吗？") ) 
            {
                document.getElementById("btnDel").click();
            }
        }
       </script>
</head>
<body>
     <form id="form1" runat="server">
    <script>header(0,9,"images/");</script>
   
    <!--面包屑-->
    <div class="blank clearfix"></div>
    
    <!--功能区-->
    
    <div class="tab-mainbody3">
        <div class="tab-mainbody4">
        <div class="functionHandleArea clearfix">
            <select id="select" runat="server">
                <option id="op1" value="30" selected="selected">一个月以前</option>
                <option id="op3" value="90">三个月以前</option>
                <option id="op4" value="180">半年以前</option>
                <option id="op5" value="365">一年以前</option>
                </select>
                <input type="image" name="Submit" title="删除 " onClick="dels();return false;" src="images/bt_delete.gif" align="absmiddle">
                <span id="msg_sub" class="title_r" ></span>
                <script type="text/javascript">
                        var $=jQuery;
                        var i = 2;
                        var f="<%=Session["returnValue"] %>";
                        if(f=="true"){
                            tipsWindown('操作结果','text:操作成功！','250','60','true','2000','true','text');
                            <% Session["returnValue"]= null; %>
                        }
                        if(f=="false"){
                            tipsWindown('操作结果','text:操作失败！','250','60','true','2000','true','text');
                            <% Session["returnValue"]= null; %>
                        }
                </script>
        </div>
        <div id="datalist">
        <input type="hidden" id="hidState" runat="server" />
        <table cellpadding="0" cellspacing="0" width="100%" border="0" id="list">
            <tr>
                <th style="width: 14%">
                    操作员</th>
                <th style="width: 45%">
                    操作描述
                </th>
                <th style="width: 23%">
                    操作URL
                </th>
                <th style="width: 168px">
                    操作时间
                </th>
            </tr>
            <%for (int i = 0; i < ds.Tables[0].Rows.Count; i++){%>
            <tr>
                <td>
                    <%=ds.Tables[0].Rows[i]["ExecutionUser"] %>
                </td>
                <td>
                    <%=getStr(ds.Tables[0].Rows[i]["Explain"].ToString()) %>
                </td>
                <td>
                        <%=ds.Tables[0].Rows[i]["ExecutionURL"]%> </td>
                <td style="width: 168px">
                    <%=ds.Tables[0].Rows[i]["ExecutionTime"]%>
                </td>
            </tr>
            <%} %>
            <tr>
                  <td colspan="4" class="list-foot">
                    <div class="fy">
                        <webdiyer:AspNetPager CssClass="pages" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                            runat="server"  FirstPageText="首页" LastPageText="尾页" NextPageText="下一页"
                            PrevPageText="上一页" PageSize="14" UrlPaging="True" NumericButtonCount="5"  ShowPageIndexBox="Never" >
                        </webdiyer:AspNetPager>
                    </div>
                </td>
            </tr>
            </table>
            <script type="text/javascript">tdshowm("list");</script>
            <input type="button" id="btnDel" runat="server" style="display:none;" onserverclick="btnDel_ServerClick" />
        </div></div></div>
    </form>
</body>
</html>
