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

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc2" %>

<%@ 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="20%" align="right"> <asp:Label ID="lblOperatorID" runat="server" Text="操作者："></asp:Label></td>
    <td><asp:TextBox ID="textBoxOperatorID" runat="server"></asp:TextBox></td>
    <td align="right"> <asp:Label ID="lblIP" runat="server" Text="操作IP："></asp:Label></td>
    <td><asp:TextBox ID="textBoxIP" runat="server"></asp:TextBox></td>
    <td></td>
  </tr>
  <tr>
    <td align="right"><asp:Label ID="lbDate" runat="server" Text="操作日期："></asp:Label></td>
    <td colspan="2"><asp:TextBox ID="textBoxStartTime" runat="server"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" 
                            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>
                         <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager2" runat="server" 
        EnableScriptGlobalization="True" EnableScriptLocalization="True">
    </ShopNum1:ToolkitScriptManager>
    <img id="imgCalendarSDate1" alt="" src="../images/Calendar.png" 
        style="width:16px; height:18px;" align="absmiddle" />
        <ShopNum1:CalendarExtender 
        ID="CalendarExtender1" runat="server" TargetControlID="textBoxStartTime" 
        PopupButtonID="imgCalendarSDate1" CssClass="ajax__calendar">
    </ShopNum1:CalendarExtender>
    --<asp:TextBox ID="textEndTime" runat="server"></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="imgCalendarSEndTime2" CssClass="ajax__calendar">
    </ShopNum1:CalendarExtender></td>
    <td></td>
    <td><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" PageSize="5" 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;
    <img id="imgCalendarStartTime0" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" /> </td><td>-<asp:TextBox ID="textDeleteEndTime" 
            runat="server"  CssClass="input1"></asp:TextBox>
    <img id="imgCalendarEndTime0" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" /></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="ShopNum1.BusinessLogic.ShopNum1_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" />
    <cc2:CalendarExtender ID="CalendarExtenderStartTime" runat="server" 
        PopupButtonID="imgCalendarStartTime0" TargetControlID="textBoxDeleteStartTime" 
        CssClass="ajax__calendar">
    </cc2:CalendarExtender>
    
    <%--<cc2:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </cc2:ToolkitScriptManager>--%>
    <cc2:CalendarExtender ID="CalendarExtenderEndTime" runat="server" 
        PopupButtonID="imgCalendarEndTime0" TargetControlID="textDeleteEndTime" 
        CssClass="ajax__calendar">
    </cc2:CalendarExtender>
    </form>
</body>
</html>
