<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SysLogManage.aspx.cs" Inherits="LZBS.Web.Admin.SysLogManage" %>

<!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>
    <script type="text/javascript" language="javascript" src="My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
        <table>
            <tr>
                <td>用户类别：</td>
                <td>
                    <asp:DropDownList ID="ddlUserType" runat="server">
                        <asp:ListItem Value="3">所有用户</asp:ListItem>
                        <asp:ListItem Value="0">管理员</asp:ListItem>
                        <asp:ListItem Value="1">会员</asp:ListItem>
                        <asp:ListItem Value="2">游客</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>起始时间：</td>
                <td>
                    <asp:TextBox ID="txtStartTime" runat="server" CssClass="Wdate" onFocus="WdatePicker()"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        Display="Dynamic" ErrorMessage="起始时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>结束时间：</td>
                <td>
                    <asp:TextBox ID="txtEndTime" runat="server" CssClass="Wdate" onFocus="WdatePicker()"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        Display="Dynamic" ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" 
                        Text="查    询" Width="65px" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnAll" runat="server" CausesValidation="False" OnClick="btnAll_Click"
                        Text="查看所有" Width="65px" />
                </td>
                <td>
                </td>
            </tr>
        </table>
            
        </div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" CellPadding="4" 
            DataKeyNames="LogID" ForeColor="#333333" GridLines="None" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            AutoGenerateColumns="False">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <asp:CheckBox ID="cbSingle" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="LogID" HeaderText="日志编号" SortExpression="LogID" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="Account" HeaderText="用户账号" 
                    SortExpression="Account" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="UserType" HeaderText="用户类型" 
                    SortExpression="UserType" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="UserIP" HeaderText="用户IP" SortExpression="UserIP" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="OPInfo" HeaderText="操作信息" SortExpression="OPInfo" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="URL" HeaderText="页面网址" SortExpression="URL" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="OPTime" HeaderText="操作时间" SortExpression="OPTime" >
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <hr style="border: thin dotted #333333" />
        <asp:CheckBox ID="cbAll" runat="server" 
                        oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="True" Text="全选" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click" Text="删除" 
            CausesValidation="False" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="BatchDeleteLog.aspx">批量删除日志</a>
    </div>
    </form>
</body>
</html>
