<!--#include file="AspCms_CollectFun.asp" -->
<%CheckAdmin("AspCms_Collect.asp")%>
<%CheckLogin()%>
<!doctype html>
<html>
<head>
<title>数据采集</title>
<meta charset="utf-8"><LINK 
href="style.css" type=text/css rel=stylesheet>
<script>
function SelAll(theForm){
		for ( i = 0 ; i < theForm.elements.length ; i ++ )
		{
			if ( theForm.elements[i].type == "checkbox" && theForm.elements[i].name != "SELALL" )
			{
				theForm.elements[i].checked = ! theForm.elements[i].checked ;
			}
		}
}
</script>
</head>
<body>
<%Select case action
	case "","Scollect"
%>
<form id= name= action="" method=post >
<div class=searchzone>
<table height=30 cellSpacing=0 cellPadding=0 width="100%" border=0>
  <tbody>
  <tr>
    <td height=30>&nbsp;</td>
    <td align=right colSpan=2><span class="piliang">
      <input class=button type=button value=采集发布管理 name=cc2 onClick="window.location.href='AspCms_CollectContentlist.asp'">
     <input class=button type="button" value=采集规则管理 name=cc2 onClick="window.location.href='AspCms_Collect.asp'">
    </span></td>
  </tr></tbody></table></div>
<div class=formzone>
<div class=namezone><font color=#ff0000>1.采集规则编写</font>  →  2.链接过滤  →  3.文章采集储存  →  4.文章归类发布</div>
<div class=tablezone>
<div class=noticediv id=notice></div>
<div id=proplist></div>
<table cellSpacing=0 cellPadding=2 width="100%" align=center border=0>
  <tbody>
   <tr>
    <td align=left width=150 height=30>&nbsp;</td>
    <td width="252" align="center">页码前地址</td>
    <td width="52" align="center">起始页码</td>
    <td width="421" height=30>页码后地址(页码后无地址可留空)</td>
  </tr>
  <tr>
    <td align=left width=150 height=30>采集列表页地址</td>
    <td align="left"><input class=input style="font-size: 12px; wdith: 250px" 
     name=urlb value="<%=Server.HtmlEncode(formvalue(0))%>"></td>
    <td><input class=input style="font-size: 12px; wdith: 50px" 
      maxLength=200 name=pagenum value="<%=Server.HtmlEncode(formvalue(1))%>"></td>
    <td height=30><input class=input style="font-size: 12px; wdith: 50px" 
      maxLength=200 name=urla value="<%=Server.HtmlEncode(formvalue(2))%>"> <font color=#ff0000>*</font></td></tr>
  <tr>
    <td align=left width=150 height=30>采集页数</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 50px" 
      maxLength=200 name=pagelinkcount value="<%=Server.HtmlEncode(formvalue(3))%>"></td>
  </tr>
  <tr>
    <td align=left width=150 height=30>列表区域首尾标识</td>
    <td height=30 align="left" valign="middle"colspan="3"><input class=input style="font-size: 12px; wdith: 200px" 
     name=listpageareab value="<%=Server.HtmlEncode(formvalue(4))%>">
      ----
        <input class=input style="font-size: 12px; wdith: 200px" 
     name=listpageareaa value="<%=Server.HtmlEncode(formvalue(5))%>"></td>
  </tr>
  <tr>
    <td align=left width=150 height=30>标题区域首尾标识</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 200px" 
     name=listtitleb value="<%=Server.HtmlEncode(formvalue(6))%>">
----
  <input class=input style="font-size: 12px; wdith:200px" 
     name=listtitlea value="<%=Server.HtmlEncode(formvalue(7))%>"></td>
  </tr>
  <tr>
    <td align=left height=30>标题区链接位置</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 50px" 
      maxLength=200 name=pagelinknum value="<%=Server.HtmlEncode(formvalue(8))%>">
      <font color=#ff0000>*</font>如果一个标题区域有多个链接,请设置有效文章地址的链接所在所有链接的第几个</td>
  </tr>
  <tr>
    <td align=left height=30>绝对地址前缀</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 250px" 
     name=Purl value="<%=Server.HtmlEncode(formvalue(9))%>">
      <font color=#ff0000>*</font>如果采集链接非完整链接那么请填写绝对地址前缀</td>
  </tr>
  <tr>
    <td align=left height=30>文章标题首尾标识</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 200px" 
     name=articletitb value="<%=Server.HtmlEncode(formvalue(10))%>">
----
  <input class=input style="font-size: 12px; wdith: 200px" 
     name=articletita value="<%=Server.HtmlEncode(formvalue(11))%>"></td>
  </tr>
  <tr>
    <td align=left height=30>文章内容首尾标识</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 200px" 
     name=articleconb value="<%=Server.HtmlEncode(formvalue(12))%>">
----
  <input class=input style="font-size: 12px; wdith: 200px" 
     name=articlecona value="<%=Server.HtmlEncode(formvalue(13))%>"></td>
  </tr>
  <tr>
    <td align=left height=30>文章内容位置</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith: 50px" 
      maxLength=200 name=contentnum value="<%=Server.HtmlEncode(formvalue(14))%>"></td>
  </tr><tr>
    <td align=left height=30>规则名称</td>
    <td height=30 colspan="3"><input class=input style="font-size: 12px; wdith:100px" 
      maxLength=200 name=rulesname value="<%=rulesname%>">
      <span class="adminsubmit">
      <input type="hidden" name="DocollectID" id="DocollectID" value="<%=CollectID%>">
      </span></td>
  </tr>
  </Tbody></table>
</div>
<div class=adminsubmit>
  <input class=button type=submit value=保存 name=cc2 onClick="form.action='?action=save';">
  <input class=button type=submit value=下一步 name=cc3 onClick="form.action='?action=getlinklist';">
</div></div></form>
<%	case "getlinklist","delarrlink"%>

<div class=formzone>
<div class=namezone>1.采集规则编写</font>  → <font color=#ff0000>2.链接过滤</font>  →  3.文章采集储存  →  4.文章归类发布</div>
<form id= name= action="" method=post><div class=tablezone>
<div class=noticediv id=notice></div>
<div id=proplist></div>
<table cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
  <Tbody>
  <tr class=list>
    <td width=60 align="center" class=biaoti>选择</td>
    <td class=biaoti width=50>编号</td>
    <td width="767" 
    height=28 class=biaoti>文章链接 <font color=#ff0000>*</font>请选择符合条件的链接      </td>

    </tr>
    </tbody></table>
<div class=listzone>
<div style="scrollbar-face-color: #9ebfe8; scrollbar-highlight-color: #ffffff; overflow: scroll; width:100%; scrollbar-shadow-color: #ffffff; scrollbar-3dlight-color: #9ebfe8; scrollbar-arrow-color: #ffffff; scrollbar-track-color: #ffffff; scrollbar-darkshadow-color: #9ebfe8; height: 260px; p: left&gt;&lt;font style=" face="Arial">
<table cellSpacing=0 cellPadding=3 width="95%" align=center border=0>
  <Tbody>
	<%linkList%>
    </tbody></table>
</div></div>
<div class=piliang>
<input onClick="SelAll(this.form)" type="checkbox" value="1" name="SELALL" checked> 全选&nbsp;</div>

</div>
<div class=adminsubmit><input class=button type=submit value=下一步 name=cc onClick="form.action='?action=getcontentlist'"> 
<input class="button" type="button" value="返回" onClick="history.go(-1)"/>
</div>
</form></div>
<% case "getcontentlist","gettodo"%>
<div class=formzone>
<div class=namezone>1.采集规则编写</font>  → 2.链接过滤  →  <font color=#ff0000>3.文章采集储存</font>  →  4.文章归类发布</div>
<form name= action="" method=post><div class=tablezone>
<div class=noticediv id=notice></div>
<div id=proplist></div>
<script language=javascript> 
document.write("<div id=loadingDiv><br>&nbsp;信息采集中，" + "请等待 <span id=loading></span> </div>"); 
var s1 = setInterval("loading.innerText+= '·'",300); 
var s2 = setInterval("loading.innerText = ''", 8000); 
window.onload=function(){ 
clearInterval(s1); 
clearInterval(s2); 
loadingDiv.removeNode(true); 
bodyHidden.style.display = ""; 
} 
</script>
<div class=listzone>

<table cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
  <tbody>
  <tr class=list>
    <td width=60 align="center" class=biaoti>选择</td>
    <td class=biaoti width=50>编号</td>
    <td width="767" 
    height=28 class=biaoti>文章标题(内容截取前500字节以供参考)</td>

    </tr>
    </tbody> <tbody>
	<%getcontenttl%>
    </tbody></table>


</div>
<div class=piliang>
<input onClick="SelAll(this.form)" type="checkbox" value="1" name="SELALL"  checked> 
全选&nbsp;<font color=#ff0000>*</font>选择加入临时数据表的采集结果</div>

</div>
<div class=adminsubmit><input class=button type=submit value=下一步 name=cc onClick="form.action='?action=savecontent';"> 
<input class="button" type="button" value="返回" onClick="history.go(-1)"/>
</div>
</form></div>
<%End Select%>
</body>
</html>