<%@ Page Language="C#" AutoEventWireup="false" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="UI" Namespace="ASPNET.WebControls" Assembly="ASPNET.WebControls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>

<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../../utility/validate/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
    <script type="text/javascript" src="../../utility/Calendar/WdatePicker.js" ></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:ManageLogs,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:ManageLogs,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
            <Hishop:ManageLogs ID="MangeLogs" runat="server">
            <SkinTemplate>
        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<fieldset class="AdminSearchform">
    <legend>
        <asp:Literal ID="litSearchTitle" Text="<%$ Resources:ManageLogs,IDS_Literal_SearchTitle %>" runat="server"></asp:Literal>
    </legend>                
    <table width="55%" border="0" cellspacing="0" cellpadding="0" style="margin-left:18px">
        <tr>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblFromDate" runat="server" Text="<%$Resources:ManageLogs,IDS_Label_FromDate %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
               <Hishop:Calendar ID="calenderFromDate" runat="server" CssClass="Wdate" />                
            </td>
             <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblToDate" runat="server" Text="<%$Resources:ManageLogs,IDS_Label_ToDate %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:Calendar ID="calenderToDate" runat="server" CssClass="Wdate"/>
            </td>
            <td class="searchTableLeftTD">
                <nobr><asp:Label ID="lblOperationUserNames" runat="server" Text="<%$ Resources:ManageLogs,IDS_Label_OperationUserNames %>"></asp:Label>：</nobr>
            </td>
            <td class="searchTableControlTD">
                <Hishop:LogsUserNameDropDownList ID="dropOperationUserNames" runat="server"></Hishop:LogsUserNameDropDownList>
            </td>
            <td class="bottonTD">
                <asp:Button ID="btnQueryLogs" runat="server" Text="<%$ Resources:ManageLogs,IDS_Button_QueryLogs_OK %>" CssClass="inp_L1"/>
            </td>
        </tr>
    </table>
</fieldset>
<div class="grdGroupFormList">             		
            <div class="grdHeaderStyle">
               <ul>                                                          
                 <li class="userGroupCheckAll"><a href="#" onclick="CheckClickAll()"><asp:Label ID="CheckAll" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckAll %>" ></asp:Label></a></li>
                 <li class="spirtLines">|</li>
                 <li class="userGroupReverseCheck"><a  href="#" onclick="CheckReverse()"><asp:Label ID="lblCheckRecerse" runat="server" Text="<%$ Resources:Resources, IDS_Label_CheckReverse %>"></asp:Label></a></li>
                 <li class="spirtLines">|</li>
                 <li class="userGroupDelCheck"><Hishop:DeleteImageLinkButton ID="lkbDeleteCheck" runat="server" Text="<%$Resources:Resources, IDS_Button_DeleteCheck %>" /></li>			                 
               </ul>
            </div>
            <div class="grdGroupList">
           <div>
            <ul class="mymenu" id="mymenu">
                    <Hishop:CustomGridView ID="grdManageLogs" runat="server" AutoGenerateColumns="false" ShowHeader="true" DataKeyNames="LogId" CssClass="GridViewStyle" GridLines="None" 
                    RowStyle-CssClass="grdrow" HeaderStyle-CssClass="GridViewHeaderStyle" AllowSorting="true" SortOrder="DESC" SortOrderBy="AddedTime">                                                        
                        <Columns>                                       
                            <Hishop:CheckBoxColumn ReadOnly="true" HeadWidth="30"/>
                            
                            <asp:TemplateField HeaderText="<%$ Resources:ManageLogs, IDS_Header_ResourceName %>" SortExpression="ResourceName" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">                                                                                                           
                                <ItemTemplate>                                   
	                               <span style="word-break:break-all;"><asp:Label ID="Label1" runat="server" Text='<%#Eval("ResourceName")%>' /></span>
                                </ItemTemplate>
                            </asp:TemplateField>  
                           
                            <asp:TemplateField HeaderText="<%$ Resources:ManageLogs, IDS_Header_OperationName %>" SortExpression="OperationName" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">                                                                                                           
                                <ItemTemplate>                                   
                                    <span style="word-break:break-all;"><asp:Label runat="server" Text='<%#Eval("OperationName")%>' /></span>                        
                                </ItemTemplate>
                            </asp:TemplateField>    
                            
                            <asp:TemplateField HeaderText="<%$ Resources:ManageLogs, IDS_Header_PageUrl %>" ItemStyle-Width="20%" >                                                                                                           
                                <ItemTemplate>                                   
                                    <span style="word-break:break-all;"><asp:Label runat="server" Text='<%#Eval("PageUrl")%>' /></span>                        
                                </ItemTemplate>
                            </asp:TemplateField>                            
                           
	                         <asp:TemplateField HeaderText="<%$ Resources:ManageLogs,IDS_Header_AddedTime %>" SortExpression="AddedTime"  ItemStyle-Width="130">
			                    <ItemTemplate>
			                        <Hishop:FormatedTimeLabel ID="lblTime" Time='<%# Eval("AddedTime")%>' runat="server" />
			                    </ItemTemplate>
			                </asp:TemplateField>
			                
	                         <asp:TemplateField HeaderText="<%$ Resources:ManageLogs,IDS_Header_UserName %>" SortExpression="UserName"  ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center">
			                    <ItemTemplate>
			                        <span style="word-break:break-all;"><asp:Label runat="server" Text='<%#Eval("UserName")%>' /></span>     
			                    </ItemTemplate>
			                </asp:TemplateField>
			                
			                <asp:TemplateField HeaderText="<%$ Resources:ManageLogs,IDS_Header_IPAddress %>" SortExpression="IPAddress"  ItemStyle-Width="80" ItemStyle-HorizontalAlign="Center">
			                    <ItemTemplate>
			                        <span style="word-break:break-all;"><asp:Label runat="server" Text='<%#Eval("IPAddress")%>' /></span>     
			                    </ItemTemplate>
			                </asp:TemplateField>
			                
			                <asp:TemplateField HeaderText="<%$ Resources:ManageLogs,IDS_Header_Description %>"  >
			                    <ItemTemplate>
			                        <span style="word-break:break-all;"><asp:Label runat="server" Text='<%#Eval("Description")%>' /></span>     
			                    </ItemTemplate>
			                </asp:TemplateField>
                            <asp:TemplateField HeaderText="<%$ Resources:Resources, IDS_Header_Options %>">
                                <ItemStyle/>
                                <ItemTemplate>
			                        <Hishop:DeleteImageLinkButton CssClass="SmallCommonTextButton" ID="lkbDelete" runat="server"  CommandName="Delete"  Text="<%$ Resources:ManageLogs, IDS_FormField_DeleteLog %>" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </Hishop:CustomGridView>
                </ul>
              </div>
             </div>
            <!--分页开始-->
            <div class="grdGroupTabhead">
               <UI:Pager runat="server" ListToPaging="grdManageLogs" ID="pager" />
            </div>
</div>
<!--结束-->
            </SkinTemplate>
            </Hishop:ManageLogs>
            
        </div>
        <br />
        <div style="text-align:center">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
