<%@ page language="C#" autoeventwireup="true" inherits="System25_n10Adminlog, App_Web_qxuvifui" %>

<%@ 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 id="Head1" runat="server">
    <title>角色</title>
    <link href="../CSS/All.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/pager.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <form id="Myform" runat="server">
        <div class="title" >
            日志管理</div>
            <fieldset>
            <legend>操作</legend>
        <div >
            <br />
            <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td >
                    <div class="Panel">
                        <h3>查询</h3>
                        <label>【按IP地址】</label>
                        <asp:DropDownList ID="ddlIPNumber" runat="server" Width="128px">
                        </asp:DropDownList>
                        <label>【按用户名】</label>
                        <asp:DropDownList ID="ddlUserName" runat="server" Width="128px">
                        </asp:DropDownList>
                         <asp:Button ID="btnLook" runat="server" Text="查询" OnClick="btnLook_Click" CssClass="btn" />
                    </div>
               </td>
                <td  >
                   <div class="Panel">
                    <h3 >清除</h3>
                    <label>
                        【按日期】</label><asp:DropDownList ID="ddlIDate" runat="server" Width="127px">
                    </asp:DropDownList><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CssClass="btn" />
                       <asp:Button ID="btnDeleteAll" runat="server" CssClass="btn" OnClick="DeleteAll_Click"
                           Text="删除所有" /></div>
                </td>
            </tr>
            </table>
        </div> 
        </fieldset>   
        <div style="overflow-x:auto">
        <asp:GridView
            ID="view_log" runat="server" AutoGenerateColumns="False"
             EmptyDataText="没有可显示的数据记录。" Width="100%" BorderStyle="Solid" DataKeyNames="CID">
            <Columns> 
                <asp:TemplateField HeaderText="编号"  >
                    <ItemTemplate>
                        <asp:Label ID="Label1" Text='<%#Bind("CID") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="100px" Height="25px" />
                    <ItemStyle Width="100px" Height="25px" />
                </asp:TemplateField>
                <asp:BoundField DataField="UserName" HeaderText="用户名" SortExpression="UserName" >
                    <HeaderStyle Width="150px" />
                    <ItemStyle Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="IDate" HeaderText="时间" SortExpression="IDate" >
                    <HeaderStyle Width="150px" />
                    <ItemStyle Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="IPNumber" HeaderText="IP地址" SortExpression="IPNumber" >
                    <HeaderStyle Width="150px" />
                    <ItemStyle Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="OperLog" HeaderText="操作日志" SortExpression="OperLog" />
            </Columns>
                  <FooterStyle CssClass="GridViewFooterStyle" />
                 <RowStyle CssClass="GridViewRowStyle" />   
                 <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                 <PagerStyle CssClass="GridViewPagerStyle" />
                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                 <HeaderStyle CssClass="GridViewHeaderStyle" />
        </asp:GridView>
            <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" cssclass="paginator"
                currentpagebuttonclass="cpb" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                firstpagetext="首页" lastpagetext="尾页" layouttype="Table" nextpagetext="下一页" numericbuttoncount="5"
                onpagechanged="Pager_PageChanged" pagesize="50" prevpagetext="上一页" showcustominfosection="Left"
                showpageindexbox="Always"></webdiyer:aspnetpager>
        
         </div>
        
    </form>
   
</body>
</html>