<%@ Page language="c#" Codebehind="VisitLimitManage.aspx.cs" AutoEventWireup="True" validateRequest=false  Inherits="DreamerShop.Admin.VisitLimitManage" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextVisitLimitManage")%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="style.css" type="text/css" rel="stylesheet">
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function imgHelp_onclick() {
			popUpWin("DSHelp/SiteCounter.html","Help",100,100,800,600);
			}
			
		
		//-->
		</SCRIPT>
		<link rel="stylesheet" href="../editor/themes/default/default.css" />
	    <link rel="stylesheet" href="../editor/plugins/code/prettify.css" />
	    <script charset="utf-8" src="../editor/kindeditor.js"></script>
	    <script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
	    <script charset="utf-8" src="../editor/plugins/code/prettify.js"></script>
	    <script>
	        KindEditor.ready(function (K) {
	            var editor1 = K.create('#txtContent', {
	                cssPath: '../editor/plugins/code/prettify.css',
	                uploadJson: '../editor/netfile/upload_json.ashx',
	                fileManagerJson: '../editor/netfile/file_manager_json.ashx',
	                allowFileManager: true,
	                afterCreate: function () {
	                    var self = this;
	                    K.ctrl(document, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                    K.ctrl(self.edit.doc, 13, function () {
	                        self.sync();
	                        K('form[name=example]')[0].submit();
	                    });
	                }
	            });
	            prettyPrint();
	        });
	    </script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:languagesdeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:languagesdeal>
			<TABLE cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<TR>
					<TD vAlign="top" height="100%">
						<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
							<TR>
								<TD vAlign="top" bgColor="#ffffff" height="319"><FONT face="宋体">
										<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<TR>
												<TD style="WIDTH: 711px">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextOtherTools")%>
																	--&gt;<%=myLanguagesDeal.GetMyString("TextVisitLimitManage")%></SPAN></TD>
															<TD align="right" width="50"></TD>
														</TR>
													</TABLE>
												</TD>
											</TR>
										</TABLE>
										<hr noShade SIZE="1">
										<table width="100%" border="0">
											<tr>
												<td width="25%"><IMG src="../Images/Admin/intromenu-o_03.gif">&nbsp;
													<asp:linkbutton id="lbSel1" runat="server" CausesValidation="false" onclick="lbSel1_Click">IP限制</asp:linkbutton></td>
												<td width="25%"><IMG src="../Images/Admin/intromenu-o_03.gif">&nbsp;
													<asp:linkbutton id="lbSel2" runat="server" CausesValidation="false" onclick="lbSel2_Click">地区语言限制</asp:linkbutton></td>
												<td width="25%"><IMG src="../Images/Admin/intromenu-o_03.gif">&nbsp;
													<asp:linkbutton id="lbSel3" runat="server" CausesValidation="false" onclick="lbSel3_Click">解除限制特权</asp:linkbutton></td>
												<td width="25%"><IMG src="../Images/Admin/intromenu-o_03.gif">&nbsp;
													<asp:linkbutton id="lbSel4" runat="server" CausesValidation="false" onclick="lbSel4_Click">限制说明</asp:linkbutton></td>
											</tr>
										</table>
										<br>
										<hr align="center" width="80%" SIZE="1">
										<asp:panel id="Pan1" runat="server">
											<TABLE cellSpacing="1" cellPadding="3" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#f1f1f1">
													<TD align="center" colSpan="2"><B><%=myLanguagesDeal.GetMyString("VisitLimitTextTypeTitle1")%></B></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("VisitLimitTextStartIP")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
													<TD class="pad" width="75%">
														<asp:textbox id="txtStartIP" runat="server" MaxLength="25" Width="200px" CssClass="wenbenkuang"></asp:textbox>
														<asp:RequiredFieldValidator id="rfvStartIP" runat="server" ErrorMessage="请输入起始IP" ControlToValidate="txtStartIP"
															Display="Dynamic" ForeColor="#FF0000"></asp:requiredfieldvalidator>
														<asp:RegularExpressionValidator id="revStartIP" runat="server" ErrorMessage="请输入正确IP地址" ControlToValidate="txtStartIP"
															ValidationExpression="(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])" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("VisitLimitTextEndIP")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--是否显示：--></TD>
													<TD class="pad">
														<asp:textbox id="txtEndIP" runat="server" MaxLength="25" Width="200px" CssClass="wenbenkuang"></asp:textbox>
														<asp:RequiredFieldValidator id="rfvEndIP" runat="server" ErrorMessage="请输入结束IP" ControlToValidate="txtEndIP"
															Display="Dynamic" ForeColor="#FF0000"></asp:requiredfieldvalidator>
														<asp:RegularExpressionValidator id="revEndIP" runat="server" ErrorMessage="请输入正确IP地址" ControlToValidate="txtEndIP"
															ValidationExpression="(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])" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("VisitLimitTextPermission")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%></TD>
													<TD class="pad">
														<asp:RadioButtonList id="rblPermission" runat="server" RepeatDirection="Horizontal">
															<asp:ListItem Value="0" Selected="True">拦截</asp:ListItem>
															<asp:ListItem Value="1">放行</asp:ListItem>
														</asp:RadioButtonList></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"></TD>
													<TD class="pad">&nbsp;
														<asp:button id="btSubmit1" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit1_Click"></asp:button></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="center" colSpan="2">
														<asp:Label id="lbInfo1" runat="server" ForeColor="Red"></asp:Label></TD>
												</TR>
											</TABLE>
											<DIV align="center"><%=myLanguagesDeal.GetMyString("VisitLimitTextSelTypeMsg1")%></DIV>
											<BR>
											<asp:datagrid id="dgList" runat="server" Width="100%" CssClass="table-shangxia" DataKeyField="vlipID"
												AutoGenerateColumns="False" AllowPaging="false" PageSize="20">
												<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
												<Columns>
													<asp:BoundColumn DataField="StartIP" HeaderText="VisitLimitTextStartIP">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="EndIP" HeaderText="VisitLimitTextEndIP">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="VisitPermission" HeaderText="VisitLimitTextPermission">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:BoundColumn DataField="OperationTime" HeaderText="VisitLimitTextInputTime">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
													</asp:BoundColumn>
													<asp:TemplateColumn HeaderText="TextOperation">
														<HeaderStyle></HeaderStyle>
														<ItemStyle HorizontalAlign="Center"></ItemStyle>
														<ItemTemplate>
															<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"
																CausesValidation="False"></asp:Button>
														</ItemTemplate>
													</asp:TemplateColumn>
												</Columns>
												<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
											</asp:datagrid>
										</asp:panel><asp:panel id="Pan2" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="3" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#f1f1f1">
													<TD align="center" colSpan="2"><B><%=myLanguagesDeal.GetMyString("VisitLimitTextTypeTitle2")%></B></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("VisitLimitTextSelSysLanguages")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
													<TD class="pad" width="70%">
														<asp:CheckBoxList id="cblLanguages" runat="server" RepeatDirection="Horizontal">
															<asp:ListItem Value="zh-cn">简体</asp:ListItem>
															<asp:ListItem Value="zh-tw">繁体</asp:ListItem>
															<asp:ListItem Value="en-us">英文</asp:ListItem>
														</asp:CheckBoxList></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right" width="20%"></TD>
													<TD class="pad">&nbsp;
														<asp:button id="btSubmit2" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit2_Click"></asp:button></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="center" colSpan="2">
														<asp:Label id="lbInfo2" runat="server" ForeColor="Red"></asp:Label></TD>
												</TR>
											</TABLE>
											<DIV align="center"><%=myLanguagesDeal.GetMyString("VisitLimitTextSelTypeMsg2")%></DIV>
										</asp:panel><asp:panel id="Pan3" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="3" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#f1f1f1">
													<TD align="center" colSpan="2"><B><%=myLanguagesDeal.GetMyString("VisitLimitTextTypeTitle3")%></B></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right"><%=myLanguagesDeal.GetMyString("VisitLimitTextPermissionKey")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--名称：--></TD>
													<TD class="pad" width="70%">
														<asp:textbox id="txtVisitLimitKey" runat="server" MaxLength="25" Width="200px" CssClass="wenbenkuang"></asp:textbox>
														<asp:requiredfieldvalidator id="refRelievingKey" runat="server" ErrorMessage="请输入密钥" ControlToValidate="txtVisitLimitKey"
															Display="Dynamic" Enabled="False" ForeColor="#FF0000"></asp:requiredfieldvalidator></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right" width="20%"></TD>
													<TD class="pad">&nbsp;
														<asp:button id="btSubmit3" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit3_Click"></asp:button></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="center" colSpan="2">
														<asp:Label id="lbInfo3" runat="server" ForeColor="Red"></asp:Label></TD>
												</TR>
											</TABLE>
											<DIV align="center"><%=myLanguagesDeal.GetMyString("VisitLimitTextSelTypeMsg3")%></DIV>
										</asp:panel><asp:panel id="Pan4" runat="server" Visible="False">
											<TABLE cellSpacing="1" cellPadding="3" width="650" align="center" bgColor="#cccccc" border="0">
												<TR bgColor="#f1f1f1">
													<TD align="center" colSpan="2"><B><%=myLanguagesDeal.GetMyString("VisitLimitTextTypeTitle4")%></B></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD noWrap align="right" width="20%"><%=myLanguagesDeal.GetMyString("VisitLimitTextTypeTitle4")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%><!--关闭说明：--></TD>
													<TD>
														<textarea id="txtContent" cols="100" rows="8" style="width:500px;height:200px;visibility:hidden;" runat="server" ></textarea></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="right" width="20%"></TD>
													<TD class="pad">&nbsp;
														<asp:button id="btSubmit4" runat="server" CssClass="go-wenbenkuang" Text="提交信息" onclick="btSubmit4_Click"></asp:button></TD>
												</TR>
												<TR bgColor="#ffffff">
													<TD align="center" colSpan="2">
														<asp:Label id="lbInfo4" runat="server" ForeColor="Red"></asp:Label></TD>
												</TR>
											</TABLE>
											<DIV align="center"><%=myLanguagesDeal.GetMyString("VisitLimitTextSelTypeMsg4")%></DIV>
										</asp:panel></FONT></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
