<%@ page language="C#" autoeventwireup="true" inherits="admin_other_SetFilterWord, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>

    <script type="text/javascript">
        function SelType() {
            var TypeCount = document.getElementsByName("RadioButtonList1");
            var p = 0;
            if (navigator.appName == "Microsoft Internet Explorer") {
                p = 1;
            }

            for (var i = p; i < TypeCount.length; i++) {
                if (TypeCount[i].checked) {
                    if (TypeCount[i].value == "1") {
                        DianCMS_$("RepMore").style.display = "none";
                        DianCMS_$("RepOne").style.display = "";
                    }
                    else {
                        DianCMS_$("RepMore").style.display = "";
                        DianCMS_$("RepOne").style.display = "none";
                    }
                }
            }
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="FilterWordList.aspx">字符过滤管理</a>
                >> 设置字符过滤
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
        <tr runat="server" id="AddType">
            <td class="bqleft">
                添加方式：
            </td>
            <td class="bqright">
                <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                    onclick="SelType()">
                    <asp:ListItem Value="1" Selected="True">单个添加</asp:ListItem>
                    <asp:ListItem Value="2">批量添加</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr id="RepOne">
            <td class="bqleft">
                替换目标：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtSourceWord" runat="server" CssClass="in1"></asp:TextBox><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr id="RepMore" style="display: none">
            <td class="bqleft">
                多个替换目标：
            </td>
            <td class="bqright">
                <asp:TextBox ID="TextBox1" runat="server" Rows="8" Columns="40" TextMode="MultiLine"></asp:TextBox><font
                    color="#ff0066">*一行一个过滤字符</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                替换结果：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtTargetWord" runat="server" CssClass="in1"></asp:TextBox><font
                    color="#ff0066">*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                优先级别：
            </td>
            <td class="bqright">
                <asp:TextBox ID="txtPriority" runat="server" CssClass="in1" Columns="10">0</asp:TextBox><font
                    color="#ff0066">数字越大权重越高越被优先替换*</font>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
                是否启用：
            </td>
            <td class="bqright">
                <asp:RadioButtonList ID="IsEnabled" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="True" Selected="True">启用</asp:ListItem>
                    <asp:ListItem Value="False">禁用</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="40">
                <asp:Button ID="Button1" runat="server" Text=" 确定 " CssClass="btn radius30 pad_0_30" OnClick="Button1_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
