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

<%@ 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>防垃圾策略</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>
    <br />
    <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 width="100%" cellpadding="6" border="1" style="border-collapse: collapse;">
                <tr>
                    <td class="RowTitle">
                        开启提交来源检查：
                    </td>
                    <td>
                        <asp:CheckBoxList ID="CB_CheckPost" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="1">开启（推荐）</asp:ListItem>
                            <asp:ListItem Value="0">关闭</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        开启中文汉字检查：
                    </td>
                    <td>
                        <asp:CheckBoxList ID="CB_CheckCN" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="1">开启（推荐）</asp:ListItem>
                            <asp:ListItem Value="0">关闭</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        允许发布的链接最大数目：
                    </td>
                    <td>
                        <TW:NumericTextBox ID="NTB_LinkNum" runat="server" Width="56px"></TW:NumericTextBox>
                        超过会被禁止发布这条信息
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        单位时间内发布数量限制：
                    </td>
                    <td>
                        <TW:NumericTextBox ID="NTB_PostSpeed" runat="server" Width="56px"></TW:NumericTextBox>
                        超过会被添加进IP黑名单
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="BT_Save" runat="server" CssClass="btn" OnClick="BT_Save_Click" 
                            Text="保存" />
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle" style="vertical-align: top">
                        垃圾广告识别关键字：
                    </td>
                    <td>
                        <asp:TextBox ID="TB_Find" runat="server"></asp:TextBox>
                        <asp:Button ID="BT_AddBL" runat="server" Text="添加" CssClass="btn" OnClick="BT_AddBL_Click" />
                        &nbsp;含有以下关键字将禁止发布这条信息<br />
                        <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="Find" />
                                <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" ShowCustomInfoSection="Never"
                            SubmitButtonClass="btn" Width="100%" AlwaysShow="True" OnPageChanging="PageNavigation1_PageChanging">
                        </TW:PageNavigation>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: left">
                        <div class="WorkArea">
                            该策略同时应用与留言本和评论。</div>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
