<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Gather2.aspx.cs" Inherits="TotCms.Web.Admin.Gather2" ValidateRequest="false" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" 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 id="Head1" runat="server">
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
    <title>添加采集</title>
  <link href="style/Global.css" rel="stylesheet" type="text/css" />
  <script src="js/common.js" type="text/javascript"></script>
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
    </style>
    <script type="text/javascript">
    function checkdiv(obj){
	    if(obj==1){
		    document.getElementById('urlreplace').style.display='';
	    }else{
		    document.getElementById('urlreplace').style.display='none';
	    }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td>
          采集设置(第二步)</td>
    </tr>
    <tr>
      <td class="fields_text">
        <table cellpadding="0" cellspacing="0" class="style1">
          <tr>
            <td width="50%" valign="top">
              读取到的内容：<br />
              <asp:TextBox ID="ReadContent" runat="server" CssClass="text_content_big" 
                TextMode="MultiLine"></asp:TextBox>
                <br />
              采集的段落：<br />
              <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>
              <asp:TextBox ID="GetArea" runat="server" CssClass="text_content_default" 
                TextMode="MultiLine"></asp:TextBox>
              </ContentTemplate>
              
                <Triggers>
                  <asp:AsyncPostBackTrigger ControlID="Button2" EventName="Click" />
                </Triggers>
              
              </asp:UpdatePanel>
              
                </td>
                <td valign="top">
                  列表规则设置：<br />
                  <table cellpadding="0" cellspacing="0" class="style1">
                    <tr>
                      <td height="50%">
                        列表起始标记：</td>
                      <td>
                        <asp:TextBox ID="ListLabelStart" runat="server" CssClass="text_content" 
                          TextMode="MultiLine" AutoPostBack="false"></asp:TextBox>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        列表结束标记：</td>
                      <td>
                        <asp:TextBox ID="ListLabelEnd" runat="server" CssClass="text_content" 
                          TextMode="MultiLine" AutoPostBack="false"></asp:TextBox>
                      </td>
                    </tr>
                    <tr>
                      <td align="center" colspan="2">
                        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="查看标记设置结果" />
                        <br />
                        提示：在采集的段落中可以看到将要采集的区域</td>
                    </tr>
                    <tr>
                      <td>
                        替换链接：</td>
                      <td>
                        <asp:RadioButtonList ID="ReplaceUrl" runat="server" 
                          RepeatDirection="Horizontal" RepeatLayout="Flow">
                          <asp:ListItem Selected="True" Value="0">否</asp:ListItem>
                          <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:RadioButtonList>
                        <div id="urlreplace" style="display:none;">将<asp:TextBox ID="UrlFrom" runat="server"></asp:TextBox>
                          替换为<asp:TextBox ID="UrlTo" runat="server"></asp:TextBox>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <td>
                        过滤设置：</td>
                      <td>
                        过滤包含<asp:TextBox ID="ReplaceStr" runat="server"></asp:TextBox>
                        的链接</td>
                    </tr>
                    <tr>
                      <td>
                        分页设置：</td>
                      <td>
                        <asp:TextBox ID="PageSplitSet" runat="server"></asp:TextBox>
                        页数从<asp:TextBox ID="PageStart" runat="server" CssClass="input_mini">1</asp:TextBox>
                        到<asp:TextBox ID="PageEnd" runat="server" CssClass="input_mini">10</asp:TextBox>
                      </td>
                    </tr>
                  </table>
            </td>
              </tr>
            </table>
          </td>
    </tr>
    <tr>
      <td align="center" height="40">
        <asp:Button ID="Button1" runat="server" Text="下一步" onclick="Button1_Click" />
        
      </td>
    </tr>
  </table>
    </form>
</body>
</html>
