<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="IpBlackList.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.ControlPanel.IpBlackList" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="TW" %>
<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!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>IP屏蔽管理</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

    <style type="text/css">
        .RowTitle
        {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td width="50%">
                <img src='../../Images/arrow.gif' alt="" /> 您现在的位置：<asp:Label ID="LB_Path" runat="server"></asp:Label>
            </td>
            <td width="50%">
            </td>
        </tr>
    </table>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td>
                        <asp:RadioButtonList ID="RBL_Select" runat="server">
                            <asp:ListItem Value="1">选择</asp:ListItem>
                            <asp:ListItem Value="2">选择</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td>
                        　IP：<asp:TextBox ID="TB_IP" runat="server"></asp:TextBox>
                        
                        &nbsp;<br />
                        IP段：<asp:TextBox ID="TB_IP0" runat="server"></asp:TextBox>
                        －－<asp:TextBox ID="TB_IP1" runat="server"></asp:TextBox>
                    </td>
                    
                    <td>例如：192.168.1.111或者192.168.1.*<br/>例如：192.168.1.1－－192.168.4.255</td>
                </tr>
            
            </table><asp:Button ID="BT_AddBL" runat="server" Text="添加" CssClass="btn" OnClick="BT_AddBL_Click" />
        
            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                OnRowCancelingEdit="GV_List_RowCancelingEdit" OnRowDeleting="GV_List_RowDeleting"
                OnRowUpdating="GV_List_RowUpdating" OnRowEditing="GV_List_RowEditing" OnRowDataBound="GV_List_RowDataBound">
                <Columns>
                    <asp:BoundField HeaderText="起始ＩＰ" DataField="IPStart" />
                    <asp:BoundField HeaderText="结束ＩＰ" DataField="IPEnd" />
                    <asp:BoundField DataField="updatetime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                        HeaderText="更新" ReadOnly="True">
                        <HeaderStyle Width="106px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowEditButton="True">
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                    <asp:CommandField ShowDeleteButton="True">
                        <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:CommandField>
                </Columns>
                <HeaderStyle CssClass="HeaderStyle" />
            </asp:GridView>
            <TW:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonClass="btn" Width="100%"
                AlwaysShow="True" OnPageChanging="PageNavigation1_PageChanging">
            </TW:PageNavigation>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
