<%@ page language="C#" autoeventwireup="true" inherits="Admin_OperateLog_Manage, GroupTGWeb_deploy" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ShopNum1" %>
<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="ShopNum1" %>
<!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>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <link href="../css/Num1GridView.css" rel="stylesheet" type="text/css">

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;">
    <form id="form1" runat="server">
    <div class="navigator">
        【 日志记录 】</div>
    <table style="width: 100%">
        <tr>
            <td style="width: 100%" align="left">
                <div class="query">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="10%" align="right">
                                <asp:Label ID="lblOperatorID" runat="server" Text="操作者："></asp:Label>
                            </td>
                            <td width="10%">
                                <asp:TextBox ID="textBoxOperatorID" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" width="10%">
                                <asp:Label ID="lblIP" runat="server" Text="操作IP："></asp:Label>
                            </td>
                            <td width="10%">
                                <asp:TextBox ID="textBoxIP" runat="server" CssClass="input1"></asp:TextBox>
                            </td>
                            <td align="right" width="10%">
                                <asp:Label ID="lbDate" runat="server" Text="操作日期："></asp:Label>
                            </td>
                            <td width="40%">
                                <asp:TextBox ID="textBoxStartTime" runat="server" CssClass="input1"></asp:TextBox>
                                <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
                                    EnableScriptLocalization="True" />
                                <img id="imgCalendarStartTime" alt="" src="images/Calendar.png" style="width: 16px;
                                    height: 18px;" align="absmiddle" />
                                <ShopNum1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="textBoxStartTime"
                                    PopupButtonID="imgCalendarStartTime" CssClass="ajax__calendar">
                                </ShopNum1:CalendarExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="textBoxStartTime"
                                    Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                --<asp:TextBox ID="textEndTime" runat="server" CssClass="input1"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndDate" runat="server"
                                    ControlToValidate="textEndTime" Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                                <img id="imgCalendarSEndTime2" alt="" src="images/Calendar.png" style="width: 16px;
                                    height: 18px;" align="absmiddle" />
                                <ShopNum1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="textEndTime"
                                    PopupButtonID="imgCalendarEndTime" CssClass="ajax__calendar">
                                </ShopNum1:CalendarExtender>
                            </td>
                            <td align="left" width="5%">
                                <asp:Button ID="ButtonSearch" runat="server" Text="查询" OnClick="ButtonSearch_Click"
                                    CssClass="bt2" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <cc1:Num1GridView ID="num1GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" DataSourceID="ObjectDataSourceData" Width="100%"
                    AscendingImageUrl="~/images/SortAsc.gif" DescendingImageUrl="~/images/SortDesc.gif"
                    Font-Size="Small" AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" PagingStyle="None"
                    Style="margin-left: 2px;" TableName="">
                    <HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF">
                    </HeaderStyle>
                    <PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" type="checkbox" onclick="javascript:SelectAllCheckboxes(this);" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" type="checkbox" value='<%# Eval("Guid") %>' />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="OperatorID" HeaderText="操作者" SortExpression="OperatorID">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="PageName" HeaderText="操作页面" SortExpression="PageName">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Date" HeaderText="操作日期" SortExpression="Date">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Record" HeaderText="操作记录" SortExpression="Record">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="IP" HeaderText="操作IP" SortExpression="IP">
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                </cc1:Num1GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 100%" align="left">
                <table cellpadding="2" cellspacing="3">
                    <tr>
                        <td>
                            <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
                                OnClick="ButtonDelete_Click" CssClass="bt2" />
                        </td>
                        <td>
                            <asp:TextBox ID="textBoxDeleteStartTime" runat="server" CssClass="input1"></asp:TextBox>&nbsp;
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="textBoxDeleteStartTime"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <img id="imgDeleteStartTime" alt="" src="images/Calendar.png" style="width: 16px;
                                height: 18px;" align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="textBoxDeleteStartTime"
                                PopupButtonID="imgDeleteStartTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                        </td>
                        <td>
                            -<asp:TextBox ID="textDeleteEndTime" runat="server" CssClass="input1"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="textDeleteEndTime"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <img id="imgDeleteEndTime" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="textDeleteEndTime"
                                PopupButtonID="imgDeleteEndTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                        </td>
                        <td>
                            &nbsp;<asp:Button ID="ButtonDeleteAll" runat="server" OnClick="ButtonDeleteAll_Click"
                                Text="全部删除" CssClass="bt3" />
                            <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="Search"
        TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_OperateLog_Action">
        <SelectParameters>
            <asp:ControlParameter ControlID="textBoxOperatorID" Name="OperatorID" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="textBoxIP" Name="IP" PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="textBoxStartTime" Name="StartDate" PropertyName="Text"
                Type="String" />
            <asp:ControlParameter ControlID="textEndTime" Name="EndDate" PropertyName="Text"
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
