<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="spidersiteedit.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.spidersiteedit" ValidateRequest="false" %>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>采集管理-搜易站内搜索引擎系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span> <a href="spidersitelist.aspx">采集点管理</a> | <a href="spidermodellist.aspx">采集模型管理</a></div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>采集点</a></li>
</ul>
<div id="sdcms_right_b">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0">
   <tr>
      <td width="100" class="tdbg" colspan="2"><strong>基本设置：</strong></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">采集点名称：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSiteName" CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">首页URL：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtSiteUrl" CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">网站编码：</td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtEncodingName" CssClass="input" Width="370px" /></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">列表开始标签：</td>
      <td  class="tdbg"><asp:TextBox runat="server" TextMode="MultiLine" Rows="5" ID="txtStartTag" CssClass="input" Width="370px" Height="50px" /></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">列表结束标签：</td>
      <td  class="tdbg"><asp:TextBox runat="server" TextMode="MultiLine" Rows="5" ID="txtCloseTag" CssClass="input" Width="370px" Height="50px" /></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">列表URL：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtListUrl" CssClass="input" Width="370px" /> 可以用{pno}表示页码 <br />
      开始页码：<asp:TextBox runat="server" ID="txtStartPageNo" CssClass="input" Width="120px" />   结束页码：<asp:TextBox runat="server" ID="txtEndPageNo" CssClass="input" Width="120px" />
      </td>
   </tr>
</table> 
  <asp:DataGrid runat="server" ID="dgSiteColumnList" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="TableColumnName" 
        onitemcreated="dgSiteColumnList_ItemCreated" Width="95%">
     <Columns>
        <asp:TemplateColumn HeaderText="字段名称" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "ColumnName")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="开始标签" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <asp:TextBox CssClass="input" TextMode="MultiLine" Rows="3" Width="180px" Height="60px" runat="server" ID="txtStartTag" />
           </ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderText="结束标签" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <asp:TextBox CssClass="input" TextMode="MultiLine" Rows="3" Width="180px" Height="60px" runat="server" ID="txtCloseTag" />
           </ItemTemplate>
        </asp:TemplateColumn>
        
        <asp:TemplateColumn HeaderText="过滤选项" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <asp:TextBox CssClass="input" TextMode="MultiLine" Rows="3" Width="180px" Height="60px" runat="server" ID="txtFilterOptions" />
           </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid>
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
  <tr>
     <td colspan="9" class="tdbg">
     <asp:Button CssClass="bnt" ID="btnSave" runat="server" Text="保 存" 
             onclick="btnSave_Click" />
     </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>
