国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

203 řádky
7.2KB

  1. {dede:config.pagesize value="20"/}
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  6. <title>采集节点管理</title>
  7. <script language="javascript" src="js/context_menu.js"></script>
  8. <script language="javascript" src="js/ieemu.js"></script>
  9. <script language="javascript">
  10. if(moz) {
  11. extendEventObject();
  12. extendElementModel();
  13. emulateAttachEvent();
  14. }
  15. //编辑节点
  16. function EditNote(nid)
  17. {
  18. if(nid=="") nid = getOneItem();
  19. if(nid==""){ alert("请选择一个节点!"); return;}
  20. location.href = "co_edit.php?nid="+nid;
  21. }
  22. //编辑节点配置
  23. function EditNoteText(nid)
  24. {
  25. if(nid=="") nid = getOneItem();
  26. if(nid==""){ alert("请选择一个节点!"); return;}
  27. location.href = "co_edit_text.php?nid="+nid;
  28. }
  29. //清空节点
  30. function ClearNote(nid)
  31. {
  32. if(nid=="") nid = getOneItem();
  33. if(nid==""){ alert("请选择一个节点!"); return;}
  34. location.href = "co_do.php?dopost=clear&nid="+nid;
  35. }
  36. //删除节点
  37. function DelNote(nid)
  38. {
  39. if(nid=="") nid = getOneItem();
  40. if(nid==""){ alert("请选择一个节点!"); return;}
  41. if(window.confirm('你确定要删除这个节点吗?'))
  42. { location.href = "co_do.php?dopost=delete&nid="+nid; }
  43. }
  44. //查看已下载的内容
  45. function ViewDown(nid)
  46. {
  47. if(nid=="") nid = getOneItem();
  48. location.href = "co_url.php?nid="+nid;
  49. }
  50. //测试规则
  51. function TestRule(nid)
  52. {
  53. if(nid=="") nid = getOneItem();
  54. if(nid==""){ alert("请选择一个节点!"); return;}
  55. location.href = "co_test_rule.php?nid="+nid;
  56. }
  57. //导出采集
  58. function ExportDown(nid)
  59. {
  60. if(nid=="") nid = getOneItem();
  61. if(nid==""){ alert("请选择一个节点!"); return;}
  62. location.href = "co_export.php?nid="+nid;;
  63. }
  64. //导入规则
  65. function GetRule()
  66. {
  67. location.href = "co_get_corule.php";
  68. }
  69. //导出规则
  70. function ExportRule(nid)
  71. {
  72. if(nid=="") nid = getOneItem();
  73. if(nid==""){ alert("请选择一个节点!"); return;}
  74. location.href = "co_export_corule.php?nid="+nid;
  75. }
  76. //采集所选节点
  77. function GatherSel(nid)
  78. {
  79. if(nid=="") nid = getOneItem();
  80. if(nid==""){ alert("请选择一个节点!"); return;}
  81. location.href = "co_gather_start.php?nid="+nid;
  82. }
  83. //复制所选节点
  84. function CopyNote(nid)
  85. {
  86. if(nid=="") nid = getOneItem();
  87. if(nid==""){ alert("请选择一个节点!"); return;}
  88. location.href = "co_do.php?dopost=copy&nid="+nid;
  89. }
  90. //上下文菜单
  91. function ShowMenu(evt,obj,nid)
  92. {
  93. var eobj,popupoptions
  94. popupoptions = [
  95. new ContextItem("测试当前节点",function(){ TestRule(nid); }),
  96. new ContextItem("采集当前节点",function(){ GatherSel(nid); }),
  97. new ContextSeperator(),
  98. new ContextItem("更改当前节点",function(){ EditNote(nid); }),
  99. new ContextItem("更改节点配置",function(){ EditNoteText(nid); }),
  100. new ContextSeperator(),
  101. new ContextItem("查看采集内容",function(){ ViewDown(nid); }),
  102. new ContextItem("导出采集",function(){ ExportDown(nid); }),
  103. new ContextSeperator(),
  104. new ContextItem("清空已下载信息",function(){ ClearNote(nid); }),
  105. new ContextItem("删除当前节点",function(){ DelNote(nid); }),
  106. new ContextSeperator(),
  107. new ContextItem("复制当前节点",function(){ CopyNote(nid); }),
  108. new ContextSeperator(),
  109. new ContextItem("导出配置规则",function(){ ExportRule(nid); }),
  110. new ContextItem("关闭菜单(<u>C</u>)",function(){})
  111. ]
  112. ContextMenu.display(evt,popupoptions)
  113. }
  114. //获得选中其中一个的id
  115. function getOneItem()
  116. {
  117. var allSel="";
  118. if(document.form1.nids.value) return document.form1.nids.value;
  119. for(i=0;i<document.form1.nids.length;i++)
  120. {
  121. if(document.form1.nids[i].checked)
  122. {
  123. allSel = document.form1.nids[i].value;
  124. break;
  125. }
  126. }
  127. return allSel;
  128. }
  129. </script>
  130. <link href="css/base.css" rel="stylesheet" type="text/css">
  131. </head>
  132. <body background='images/allbg.gif' leftmargin='8' topmargin='8' onLoad="ContextMenu.intializeContextMenu()">
  133. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center">
  134. <tr>
  135. <td height="20" colspan="7" background='images/tbg.gif'> <table width="100%" border="0" cellpadding="0" cellspacing="0">
  136. <tr>
  137. <td width="20%" height="18" style="padding-left:10px;"><strong>采集节点管理:</strong></td>
  138. <td width="80%" align="right">
  139. <input type="button" name="ba" value="添加新节点" onClick="location='co_add.php?action=select';" class="coolbg np" style="width:100px" />
  140. </td>
  141. </tr>
  142. </table></td>
  143. </tr>
  144. <tr align="center" height="26" bgcolor="#FBFCE2">
  145. <td width="8%">选择</td>
  146. <td width="32%">节点名称</td>
  147. <td width="18%">针对规则</td>
  148. <td width="10%">最后采集日期</td>
  149. <td width="10%">加入日期</td>
  150. <td width="10%">编码</td>
  151. <td width="10%">网址数</td>
  152. </tr>
  153. <form name="form1">
  154. {dede:datalist}
  155. <tr bgcolor="#FFFFFF" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  156. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22" oncontextmenu="ShowMenu(event,this,{dede:field.nid /});">
  157. <td><input type='checkbox' name='nids' value='{dede:field.nid /}' class='np'></td>
  158. <td><a href='co_url.php?nid={dede:field.nid /}'>{dede:field.notename /}</a></td>
  159. <td>{dede:field.typename /}</td>
  160. <td>{dede:field.cotime function='GetDatePage(@me)' /}</td>
  161. <td>{dede:field.uptime function='GetDatePage(@me)' /}</td>
  162. <td>{dede:field.sourcelang /}</td>
  163. <td>{dede:field.nid function='TjUrlNum(@me)' /}</td>
  164. </tr>
  165. {/dede:datalist}
  166. </form>
  167. <tr bgcolor="#ffffff">
  168. <td height="24" colspan="7">
  169. <table width="90%" border="0" cellspacing="0" cellpadding="0">
  170. <tr>
  171. <td>
  172. &nbsp;
  173. <a href="#" onClick="location='co_add.php?action=select';" class='coolbg np'>增加新节点</a>
  174. <a href="javascript:GetRule();" class='coolbg np'>导入配置</a>
  175. <a href="javascript:ExportRule('');" class='coolbg np'>导出配置</a>
  176. |
  177. <a href="javascript:GatherSel('');" class='coolbg np' style='color:red'>采集</a>
  178. <a href="javascript:ExportDown('');" class='coolbg np'>导出数据</a>
  179. |
  180. <a href="javascript:EditNote('');" class='coolbg np'>更改</a>
  181. <a href="javascript:EditNoteText('');" class='coolbg np'>更改配置</a>
  182. <a href="javascript:TestRule('');" class='coolbg np'>测试</a>
  183. |
  184. <a href="javascript:ViewDown('');" class='coolbg np'>查看已下载</a>
  185. |
  186. <a href="javascript:CopyNote('');" class='coolbg np'>复制</a>
  187. <a href="javascript:ClearNote('');" class='coolbg np'>清空</a>
  188. |
  189. <a href="javascript:DelNote('');" class='coolbg np'>删除</a>
  190. </td>
  191. </tr>
  192. </table>
  193. </td>
  194. </tr>
  195. <tr bgcolor="#F9FCEF">
  196. <td height="24" colspan="7" align="center">
  197. {dede:pagelist size='5' /}
  198. </td>
  199. </tr>
  200. </table>
  201. </body>
  202. </html>