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

<%@ Import Namespace="D.BLL" %>
<!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" src="../../js/<%=B_Lang.getLang() %>/Copy.js"></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="CollectionFilterList.aspx">采集过滤列表</a>
                >> 设置采集过滤
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
                <tr>
                    <td width="30%" class="bqleft">
                        过滤名称：
                    </td>
                    <td colspan="2" class="bqright">
                        <asp:TextBox ID="txtName" runat="server" CssClass="in1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        过滤类型：
                    </td>
                    <td colspan="2" class="bqright">
                        <asp:RadioButtonList ID="RadType" runat="server" 
                            RepeatDirection="Horizontal" AutoPostBack="True" 
                            onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
                            <asp:ListItem Value="1" Selected="True">简单过滤</asp:ListItem>
                            <asp:ListItem Value="2">高级过滤</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        <font color="red">*</font><asp:Literal ID="LitBegin" runat="server" Text="要过滤的代码"></asp:Literal>：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtBeginCode" runat="server" TextMode="MultiLine" Style="width: 98%;
                            height: 80px;word-break: break-all; word-wrap: break-word;"></asp:TextBox>
                    </td>
                    <td rowspan="4" class="bqright" width="50%">
                        要测试的代码：↓<br />
                        <asp:TextBox ID="txtHtml" runat="server" TextMode="MultiLine" Style="width: 100%;
                            height: 240px;word-break: break-all; word-wrap: break-word;"></asp:TextBox><br />
                        <table width="99%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td bgcolor="#e0dfe3" align="right">
                                    <a href="javascript:" onclick="runEx('txtHtml')">
                                        <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                            onclick="copyToClipboard(document.form1.txtHtml.value)">
                                            <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                    <a href="javascript:" onclick="SizePlus('txtHtml')" title="增加编辑高度">
                                        <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                    <a href="javascript:" onclick="SizeMinus('txtHtml')">
                                        <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px;
                                            margin-right: 20px" /></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server" id="EndCode" style="display:none">
                    <td class="bqleft">
                        <font color="red">*</font>要过滤的结束代码：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtEndCode" runat="server" TextMode="MultiLine" Style="width: 98%;
                            height: 80px;word-break: break-all; word-wrap: break-word;"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        要替换的代码：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtReplace" runat="server" TextMode="MultiLine" Style="width: 98%;
                            height: 80px;word-break: break-all; word-wrap: break-word;"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="40">
                        <span style="float: left">
                            <asp:Button ID="Button1" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" 
                            onclick="Button1_Click" /></span><span
                                style="float: right; margin-right: 10px;"><asp:Button ID="Button3" runat="server"
                                    Text=" 浏览 " style="margin-left: 10px;" CssClass="btn radius30 pad_0_30" 
                            onclick="Button3_Click" /></span>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
