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

<%@ 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>

</head>
<body>
    <form id="form1" runat="server">
    <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>
            <asp:Panel ID="Panel1" runat="server"  >
            <div style="margin-left:auto; margin-right:auto; width:500px; height:auto">
                采集规则节点：<asp:DropDownList ID="DDL_Node" runat="server">
                </asp:DropDownList>
                <asp:Button ID="BT_GoToEdit" runat="server" Text="修改改节点" 
                    OnClick="BT_GoToEdit_Click" CssClass="btn" />
                <br />
                <asp:Button ID="BT_AddNew" runat="server" Text="添加新节点" 
                    OnClick="BT_AddNew_Click" CssClass="btn" /></div>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server" Visible="false">
                <br />
                <fieldset>
                    <legend><strong>栏目匹配规则</strong></legend>
                    <table cellpadding="3" width="98%" align="center">
                        <tr>
                            <td align="right">
                                扫描栏目页范围：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ClassArea" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                                <span class="style1">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                文章页链接：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ShowArticleUrl" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                                <span class="style1">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                栏目下一页：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ClassNextPage" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                栏目上一页： 
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ClassPrePage" runat="server" TextMode="MultiLine" 
                                    Width="528px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                最后一页： 
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ClassLastPage" runat="server" TextMode="MultiLine" 
                                    Width="528px"></asp:TextBox>
                                <asp:CheckBox ID="CB_IsLastPageUrl" runat="server" Text="直接为网址而非规则" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <fieldset>
                    <legend><strong>文章匹配规则</strong></legend>
                    <table cellpadding="3" width="98%" align="center">
                        <tr>
                            <td align="right" width="16%">
                                标题：
                            </td>
                            <td width="84%">
                                <asp:TextBox ID="TB_Title" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                                <span class="style1">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                内容：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_Content" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                                <span class="style1">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                作者：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_Author" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                来源：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_From" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                日期：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_Date" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                文章页下一页地址：
                            </td>
                            <td>
                                <asp:TextBox ID="TB_ShowArticleNextUrl" runat="server" Width="528px" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                &nbsp;
                            </td>
                            <td>
                                <asp:Button ID="BT_OK" runat="server" Text="提交" OnClick="BT_OK_Click" CssClass="btn">
                                </asp:Button>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
