<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="infoCj.aspx.cs" Inherits="web.admin.infoCj" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>ProductField</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK href="images/adminstyle.css" type="text/css" rel="stylesheet"></LINK>
<style type="text/css">
body {margin:0px; height:768px}
</style>
		<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
function showDishPic(id){
    document.getElementById(id).style.display='block';
}
function hideDishPic(id){
    document.getElementById(id).style.display='none';
}

//-->
</script>
	</HEAD>
	<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form2" method="post" runat="server" onsubmit="Window_Load(0);">
		
<table width="100%" height="550"  cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td height="33" class="tl"></td>
		      <td class="tm"><span class="tt">信息管理 &gt;&gt; 文章采集配置<asp:Label ID="bt" runat="server">添加</asp:Label>
                </span></td>
		      <td class="tm2"><span class="tt"></span></td>
		<td class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td class="ml"></td>
              <td  class="mm" align="left" valign="top"><br>
                <table width="98%" border="0" align="center">
                  <tr>
                    <td><span class="tt"><span style="color: #ff0033">说明:<br>
                      1、带*号的必须填写 2、点击表单旁边的问号图标查看说明文字<br>
                      3、复制这个配置的意思是当你采集同一个站点的不同栏目内容的时候，因为各个栏目的采集标签规则一样，所以为了防止重复填写配置内容，可采用复制这个配置进行新添加一个配置，然后稍做修改即可使用!<br>
                      </span></span></td>
                  </tr>
                </table>
                <br>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > 
                      <table width="100%"  cellspacing="0" cellpadding="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
<table cellSpacing="1" cellPadding="1" width="100%" align="center" border="0"
				id="Table4">
                              <tr>
					            <td height="145"> 
                                  <table width="100%" height="228" border="0" align="left" cellPadding="6" cellSpacing="0" bgcolor="#CCCCCC"
							id="Table5">
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">采集名称：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; 
                                        <asp:textbox id="cm" CssClass="input" Width="200px" Runat="server"></asp:textbox> 
                                        <span style="color: #ff3300">*</span></td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">编码格式：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp;&nbsp; <asp:DropDownList ID="bmgs" runat="server"> 
                                          <asp:ListItem>UTF-8</asp:ListItem>
                                          <asp:ListItem>GB2312</asp:ListItem>
                                        </asp:DropDownList> <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a  onclick="showDishPic('sm');" onclick="hideDishPic('sm');" ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                        <div id="sm" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('sm');" >[ 关闭 ]</a></div>
                                        这里的编码设置选择,请通过查看你所采集的站点的编码格式决定,可通过查看meta 
                                       &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;决定是UTF-8或者是GB2312
                                          </div></td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">选择添加到的类别：</div></td>
                                      <td bgcolor="#FFFFFF" > &nbsp; <asp:dropdownlist id="ddlNewsCategories" runat="server"></asp:dropdownlist> 
                                        &nbsp;&nbsp;<a onclick="showDishPic('Div1');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                         <div id="Div1" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div1');" >[ 关闭 ]</a></div>
                                         你想把采集的信息放在什么类别里面,就选择什么类别</div>
                                      </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">所采集新闻列表第一页URL地址：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:textbox id="url" CssClass="input" Width="316px" Runat="server"></asp:textbox> 
                                        
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div2');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                      <div id="Div2" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                      <div><a onclick="hideDishPic('Div2');">[ 关闭 ]</a></div>
                                      一般新闻列表都存在好多页,这里填写所要采集的新闻列表第一页的URL地址</div>

                                        
                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">所采集新闻列表分页地址规则式：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; 
                                        <asp:textbox id="furl" CssClass="input" Width="316px" Runat="server"></asp:textbox>
                                        &nbsp; 采集页数: 
                                        <asp:TextBox ID="ys" runat="server" Width="29px">1</asp:TextBox>
                                        页<span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div3');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                       <div id="Div3" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                       <div><a onclick="hideDishPic('Div3');" >[ 关闭 ]</a></div>
                                       一般新闻列表都存在好多页,这里填写代表所有分页页面的通配URL地址,页码用$p代替,比如一个新闻列表
                                       第一页URL地址是：http://www.1wsoft.cn/new.aspx?page=1；第二页的URL地址是：http://www.1wsoft.cn/new.aspx?page=2，那么这个代表各个分页URL地址的通配表达式是：http://www.1wsoft.cn/new.aspx?page=$p
                                       ,采集功能只支持分页页码是1、2、3......这种形式</div>

                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻列表起始标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="sb" runat="server" Width="266px"></asp:TextBox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div4');" ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                     <div id="Div4" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                     <div><a onclick="hideDishPic('Div4');"  >[ 关闭 ]</a></div>
                                     <img src="images/sm-1.jpg" border=0 /><br>
                                          <br>
                                          信息列表起始标签可通过查看页面的HTML代码获得，比如： 图中黄色底上的HTML代码就是被选中的起始和结束标签，选择什么标签的原则是：做为标签的代码在整页HTML代码中是唯一的</div>

                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻列表结束标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="eb" runat="server" Width="264px"></asp:TextBox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div5');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a>
                                       <div id="Div5" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                       <div><a onclick="hideDishPic('Div5');" >[ 关闭 ]</a></div>
                                       同上，请参照信息列表页起始和结束标签的说明</div>
                                         </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻内容所对应的URL地址：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:textbox id="nurl" CssClass="input" Width="313px" Runat="server"></asp:textbox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div6');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                        <div id="Div6" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div6');" >[ 关闭 ]</a></div>
                                      这里也可以通过查看页面HTML代码获得，比如：你通过查看HTML代码，看到新闻列表中某个新闻的连接是&lt;a href=&quot;/news/24569.html&quot;&gt;某新闻&lt;/a&gt; ;你在点新闻标题打开页面，看到URL地址是：http://www.1wsoft.cn/mylist/news/24569.html,那么这个新闻内容所对应的URL地址就是http://www.1wsoft.cn/mylist/</div>
                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻标题开始标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="tsb" runat="server" Width="265px"></asp:TextBox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div7');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                        <div id="Div7" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div7');" >[ 关闭 ]</a></div>
                                        同上，请参照信息列表页起始和结束标签的说明</div>
                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻标题结束标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="teb" runat="server" Width="264px">&nbsp;&nbsp;</asp:TextBox> 
                                        <span style="color: #ff3300">*</span><a onclick="showDishPic('Div8');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                        <div id="Div8" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div8');" >[ 关闭 ]</a></div>
                                        同上，请参照信息列表页起始和结束标签的说明</div>
                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻内容开始标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="nsb" runat="server" Width="263px"></asp:TextBox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div9');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a> 
                                        <div id="Div9" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div9');" >[ 关闭 ]</a></div>
                                        同上，请参照信息列表页起始和结束标签的说明</div>
                                        </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" bgcolor="#FFFFFF" > <div align="right">新闻内容结束标签：</div></td>
                                      <td bgcolor="#FFFFFF" >&nbsp; <asp:TextBox ID="neb" runat="server" Width="263px"></asp:TextBox> 
                                        <span style="color: #ff3300">*</span>&nbsp;&nbsp;<a onclick="showDishPic('Div10');"  ><img src="images/dot4.gif" width="17" height="17" style="cursor:pointer;"></a>
                                        <div id="Div10" style="display:none;border:1px #DADADA solid; background-color:#F3F3F3;padding: 15px 15px 15px 15px;margin-top:10px;">
                                        <div><a onclick="hideDishPic('Div10');" >[ 关闭 ]</a></div>
                                        同上，请参照信息列表页起始和结束标签的说明</div>
                                         </td>
                                    </tr>
                                    <tr> 
                                      <td width="334" height="40" bgcolor="#FFFFFF"> 
                                        <div align="right"></div></td>
                                      <td bgcolor="#FFFFFF" > &nbsp;&nbsp;&nbsp; 
                                        <asp:button id="btnSubmit" CssClass="btn" runat="server" Text="添加采集配置" OnClick="btnSubmit_Click" ></asp:button> 
                                          <asp:button id="Button1" CssClass="btn" runat="server" Text="复制这个配置" OnClick="btnSubmit1_Click"  Enabled="false"></asp:button> 
                                      </td>
                                    </tr>
                                  </table>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl" style="height: 15px"></td>
		<td class="bm" style="height: 15px">&nbsp;</td>
		<td class="br" style="height: 15px"></td>
	</tr>
</table>
</div>
    </td>
  </tr>
</table>

		</form>
	</body>
</HTML>
