<%@ 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="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>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="PageTitleArea">
                <div class="PageTitle">
                    <asp:Literal ID="lblPageTitle" runat="server" Text="<%$ Resources:IPBannings,IDS_PageTitle %>"></asp:Literal>
                </div>
                <div style="width: 80%;">
                    <asp:Literal ID="lblPageDesc" runat="server" Text="<%$ Resources:IPBannings,IDS_PageDesc %>"></asp:Literal>
                </div>
            </div>
            
            <Hishop:IPBannings ID="IPBannings" runat="server">
            <SkinTemplate>
        <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
<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="lkbtnDeleteCheck" runat="server" Text="<%$ Resources:IPBannings, IDS_Button_DeleteSelect %>" /></li>
        </ul>
     </div>
    <div class="grdGroupList">		
        <div class="grdGroupListLi">
                <asp:Repeater ID="rptIPList" runat="server">
                   <HeaderTemplate>
                      <table class="GridViewStyle" cellspacing="0" border="0">
                        <tr class="grdrow">
                           <td><asp:Label id="checkBoxTitle" runat="server" Text="<%$Resources:Resources,IDS_Header_Check %>"></asp:Label></td>
                           <td><asp:Label ID="lblHeaderIPAddress" Text="<%$Resources:IPBannings,IDS_Header_IPAddress %>" runat="server"></asp:Label></td>
                           <td><asp:Label ID="lblHeaderDate" Text="<%$Resources:IPBannings,IDS_Header_Date %>" runat="server"></asp:Label></td>
                           <td><asp:Label ID="Label1" Text="<%$ Resources:Resources, IDS_Header_Options %>" runat="server"></asp:Label></td>
                        </tr>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <tr class="grdrow">
                          <td><asp:CheckBox ID="checkboxCol" runat="server"/></td>
                          <td>
	                           <asp:Label ID="lblIPAddress" runat="server" Text='<%#Eval("Address") %>'></asp:Label>
                          </td>
                          <td>
                             <Hishop:FormatedTimeLabel ID="lblDate" Time='<%#Eval("Date") %>' runat="server"></Hishop:FormatedTimeLabel>
                          </td>
                          <td>
                            <Hishop:DeleteImageLinkButton CssClass="SmallCommonTextButton" runat="server" ID="lbtnDelete" Text="<%$Resources:IPBannings,IDS_Button_DeleteBanningIP %>" />
                          </td>
                       </tr>
                   </ItemTemplate>
                   <FooterTemplate>
                     </table>
                   </FooterTemplate>
                </asp:Repeater>
            </div>
         </div> 
</div>

<div class="grdHeaderStyle" style="cursor:pointer;" onclick="expItemsTable('addItemsTable');">
      <ul>
         <li class="addProductTmpt">
            <asp:Literal ID="litAddIPBind" Text='<%$Resources:IPBannings,IDS_Literal_AddIPBind %>' runat="server"></asp:Literal>
         </li>
      </ul>
</div>
<table style="width: 100%" cellspacing="0" cellpadding="0" class="formTableList" id="addItemsTable">
     <tr>
         <td class="leftTD">
             <nobr><asp:Label ID="lblIPAddresses" Text="<%$Resources:IPBannings,IDS_DataField_IPAddress %>" runat="server"></asp:Label>：</nobr>
         </td>
         <td class="rightTD">
             <asp:TextBox ID="txtIPAddress" runat="server"></asp:TextBox>
         </td>
         <td class="rightTD">
              <div id="txtIPAddressTip" runat="server"></div>
              <Hishop:ValidateTarget ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtIPAddress" Description="<%$ Resources:IPBannings,IDS_ErrorMessage_IPAddress%>" Nullable="false" FocusMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPAddress %>" NullMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPAddress%>">
                   <Validators>
                        <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPAddressInvalid %>" Regex="(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])" />
                   </Validators>
              </Hishop:ValidateTarget>		            
          </td>
      </tr>
      <tr>
           <td class="leftTD">
             <nobr><asp:Label ID="lblIPEndDescs" Text="<%$Resources:IPBannings,IDS_DataField_IPEndDesc %>" runat="server"></asp:Label>：</nobr>
           </td>
           <td class="rightTD">
             <asp:TextBox ID="txtIPEnd" runat="server"></asp:TextBox>
           </td>
           <td class="rightTD">
              <div id="txtIPEndTip" runat="server"></div>
              <Hishop:ValidateTarget ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtIPEnd" Description="<%$ Resources:IPBannings,IDS_ErrorMessage_IPEnd%>" Nullable="true" FocusMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPEnd %>" NullMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPEnd%>">
                 <Validators>
                    <Hishop:InputStringClientValidator ErrorMessage="<%$ Resources:IPBannings,IDS_ErrorMessage_IPAddressInvalid %>" Regex="(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])" />
                 </Validators>
              </Hishop:ValidateTarget>      
          </td>
      </tr>
      <tr>
          <td class="bottonLeftTD">&nbsp;</td>
          <td class="rightTD">
             <asp:Button ID="btnAddIPAddress" runat="server" Text="<%$Resources:Resources,IDS_Button_Add %>" CssClass="inp_L1" OnClientClick="return PageIsValid()" />                        
          </td>
          <td class="rightTD">&nbsp;</td>
      </tr>
</table>	
			    <!--结束-->   
            </SkinTemplate>
            </Hishop:IPBannings>
            
        </div>
        <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright runat="server" />
        </div>
        <br />
        <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
    </form>
</body>
</html>
