<%@ Page language="c#" Codebehind="lockip.aspx.cs" AutoEventWireup="false" Inherits="baoge.Admin.lockip" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>lockip</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<table class="Tablebody" cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
				<tr align="center">
					<td colSpan="2" height="20">锁定IP地址管理</td>
				</tr>
				<tr>
					<td align="right" width="50%" bgColor="#ffffff">IP地址
						<asp:textbox id="Textbox1" style="DISPLAY: none; VISIBILITY: hidden" tabIndex="9" runat="server"
							EnableViewState="False"></asp:textbox><asp:textbox id="ipaddress" runat="server" EnableViewState="False"></asp:textbox></td>
					<td bgColor="#ffffff"><asp:button CssClass="button" id="add_ip" runat="server" EnableViewState="False" Text="添 加"></asp:button><asp:customvalidator id="Cv_id" runat="server" EnableViewState="False" Display="Dynamic" ErrorMessage="此ip地址已存在"
							ControlToValidate="ipaddress"></asp:customvalidator></td>
				</tr>
				<tr>
					<td align="center" bgColor="#ffffff" colSpan="2"><asp:datagrid id="allip" runat="server" OnDeleteCommand="allip_delete" DataKeyField="id" PageSize="20"
							OnItemCreated="pageset" AutoGenerateColumns="False" Width="200px" HorizontalAlign="Center" BorderColor="#CCCCCC" BorderWidth="1px" CellPadding="2"
							BorderStyle="None" BackColor="White" AllowPaging="True" AllowCustomPaging="True" OnPageIndexChanged="change_page">
							<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
							<ItemStyle ForeColor="#000066"></ItemStyle>
							<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="1px" ForeColor="White" BackColor="#006699"></HeaderStyle>
							<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
							<Columns>
								<asp:BoundColumn DataField="ip" HeaderText="分类名称"></asp:BoundColumn>
								<asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
									<ItemStyle Wrap="False"></ItemStyle>
								</asp:ButtonColumn>
							</Columns>
							<PagerStyle HorizontalAlign="Right" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
						</asp:datagrid></td>
				</tr>
			</table>
			</TD></TR></TABLE>
			<DIV></DIV>
			<asp:requiredfieldvalidator id="checkname" runat="server" EnableViewState="False" Display="None" ErrorMessage="ip地址栏不能为空"
				ControlToValidate="ipaddress"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" EnableViewState="False" Display="None"
				ErrorMessage="ip地址格式不正确" ControlToValidate="ipaddress" ValidationExpression="([0-9]{1,3})([.]{1})([0-9]{1,3})([.]{1})([0-9]{1,3})([.]{1})([0-9]{1,3})"></asp:regularexpressionvalidator><asp:validationsummary id="show_error" runat="server" EnableViewState="False" ShowMessageBox="true" ShowSummary="False"></asp:validationsummary></form>
	</body>
</HTML>
