国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

article_coonepage_rule.htm 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <!DOCTYPE html
  2. 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. <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  8. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" type="text/css" href="css/base.css">
  10. <script language="javascript" src="../static/js/jquery.js"></script>
  11. <script src="../static/js/bootstrap.bundle.js"></script>
  12. <script language='javascript' src='js/main.js'></script>
  13. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  14. <script language="javascript">
  15. function ShowAddNode() {
  16. $DE('addNode').style.display = 'block';
  17. }
  18. function CloseAddNode() {
  19. $DE('addNode').style.display = 'none';
  20. }
  21. function CloseEditNode() {
  22. $DE('editNode').style.display = 'none';
  23. }
  24. //编辑
  25. function EditNode(nid) {
  26. $DE('editNode').style.display = 'block';
  27. var myajax = new DedeAjax($DE('editNodeBody'), false, true, "", "", "请稍候,正在载入...");
  28. myajax.SendGet2('article_coonepage_rule.php?action=editload&id=' + nid);
  29. DedeXHTTP = null;
  30. }
  31. //获得选中文件的文件名
  32. function getCheckboxItem() {
  33. var allSel = "";
  34. if (document.form2.ids.value) return document.form2.ids.value;
  35. for (i = 0; i < document.form2.ids.length; i++) {
  36. if (document.form2.ids[i].checked) {
  37. allSel = (allSel == '' ? document.form2.ids[i].value : allSel + "," + document.form2.ids[i].value);
  38. }
  39. }
  40. return allSel;
  41. }
  42. function selAll() {
  43. for (i = 0; i < document.form2.ids.length; i++) {
  44. if (!document.form2.ids[i].checked) {
  45. document.form2.ids[i].checked = true;
  46. }
  47. }
  48. }
  49. function noSelAll() {
  50. for (i = 0; i < document.form2.ids.length; i++) {
  51. if (document.form2.ids[i].checked) {
  52. document.form2.ids[i].checked = false;
  53. }
  54. }
  55. }
  56. //删除节点
  57. function DelNode(selid) {
  58. if (selid == 0) selid = getCheckboxItem();
  59. if (selid != '') {
  60. if (window.confirm("你确实要删除这些条目么?")) location = "article_coonepage_rule.php?ids=" + selid + "&action=del";
  61. } else {
  62. ShowMsg("你没选择任何条目!");
  63. }
  64. }
  65. </script>
  66. <style type="text/css">
  67. #addNode {
  68. position: absolute;
  69. left: 20px;
  70. top: 20px;
  71. width: 430px;
  72. z-index: 2;
  73. background-color: #F2FDDB;
  74. border: 1px solid #889D8F;
  75. padding: 6px;
  76. display: none
  77. }
  78. #editNode {
  79. position: absolute;
  80. left: 20px;
  81. top: 20px;
  82. width: 430px;
  83. z-index: 1;
  84. background-color: #F2FDDB;
  85. border: 1px solid #889D8F;
  86. padding: 6px;
  87. display: none
  88. }
  89. </style>
  90. </head>
  91. <body leftmargin="8" topmargin="8" background='images/allbg.gif'>
  92. <table width="100%" border="0" cellpadding="2" align="center" cellspacing="1" bgcolor="#D6D6D6"
  93. class="table maintable table-bordered mt-3">
  94. <tr bgcolor="#F3FAD3">
  95. <td height="26" colspan="6">
  96. <div style="float:left;padding-left:6px"><b>单页采集规则管理:</b></div>
  97. <div style="float:right;padding-right:10px"><a href='javascript:ShowAddNode();'
  98. class="btn btn-success btn-sm">增加新网址</a>
  99. </div>
  100. </td>
  101. </tr>
  102. <form name="form2">
  103. <tr align="center" bgcolor="#FAFAF1" height="22">
  104. <td width="8%">ID</td>
  105. <td width="8%">选择</td>
  106. <td width="20%">网址</td>
  107. <td width="12%">编码</td>
  108. <td width="20%">网站名称</td>
  109. <td width="12%">操作</td>
  110. </tr>
  111. {dede:datalist}
  112. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  113. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="24">
  114. <td><?php echo $fields['id']?></td>
  115. <td><input name="ids" type="checkbox" id="ids" value="<?php echo $fields['id']?>" class="np"></td>
  116. <td align='left'>
  117. <?php echo $fields['url']; ?>
  118. </td>
  119. <td><?php echo $fields['lang']; ?></td>
  120. <td><?php echo $fields['title']; ?></td>
  121. <td>
  122. <a href="javascript:EditNode(<?php echo $fields['id']?>)" class="btn btn-success btn-sm">编辑</a>
  123. <a href="javascript:DelNode(<?php echo $fields['id']?>)" class="btn btn-success btn-sm">删除</a>
  124. </td>
  125. </tr>
  126. {/dede:datalist}
  127. <tr bgcolor="#FAFAF1">
  128. <td height="24" colspan="6">
  129. &nbsp;
  130. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  131. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  132. <a href="javascript:DelNode(0)" class="btn btn-success btn-sm">&nbsp;删除&nbsp;</a>
  133. </td>
  134. </tr>
  135. </form>
  136. <tr align="right" bgcolor="#F3FAD3">
  137. <td height="28" colspan="6" align="center">
  138. {dede:pagelist listsize=5/}
  139. </td>
  140. </tr>
  141. </table>
  142. <!-- 下面是隐藏的栏目增加/修改表单 -->
  143. <div id="editNode">
  144. <span id='editNodeBody'>请稍候,正在载入...</span>
  145. </div>
  146. <div id="addNode">
  147. <form name='addform' action='article_coonepage_rule.php' method='post'>
  148. <input type='hidden' name='action' value='add' />
  149. <table width="430" border="0" cellspacing="0" cellpadding="0">
  150. <tr>
  151. <td width="102" height="30">网站名称:</td>
  152. <td width="302"><input name="title" type="text" id="title" style="width:200px" /></td>
  153. <td width="26" align="center"><a href="javascript:CloseAddNode()" class="mr-3"><img
  154. src="images/close.gif" width="12" height="12" border="0" /></a></td>
  155. </tr>
  156. <tr>
  157. <td height="30">原内容编码:</td>
  158. <td colspan="2">
  159. <label><input type="radio" name="lang" value="utf-8" checked="checked" />
  160. UTF-8</label>
  161. <label>
  162. <input type="radio" name="lang" value="gb2312" />
  163. GB2312/GBK</label>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td height="30">用作文章来源:</td>
  168. <td colspan="2">
  169. <label><input type="radio" name="issource" value="0" />
  170. 否</label>
  171. <label><input name="issource" type="radio" value="1" checked="checked" />
  172. 是</label></td>
  173. </tr>
  174. <tr>
  175. <td height="30">网站网址:</td>
  176. <td colspan="2"><input name="url" type="text" id="url" style="width:200px" /></td>
  177. </tr>
  178. <tr>
  179. <td height="30">&nbsp;</td>
  180. <td colspan="2">使用不带http及任何附加目录的网址<br />
  181. 如:news.dedebiz.com</td>
  182. </tr>
  183. <tr>
  184. <td height="30">采集规则:</td>
  185. <td colspan="2">仅针对文章内容,格式:前面HTML{@body}后面HMTL</td>
  186. </tr>
  187. <tr>
  188. <td height="90">&nbsp;</td>
  189. <td colspan="2"><textarea name="rule" style="width:300px;height:80px">{@body}</textarea></td>
  190. </tr>
  191. <tr>
  192. <td height="32">&nbsp;</td>
  193. <td colspan="2"><button class="btn btn-success btn-sm" type="submit" name="Submit"
  194. value="">保存规则</button>
  195. <button type="reset" class="btn btn-success btn-sm" name="Submit2">重置</button></td>
  196. </tr>
  197. </table>
  198. </form>
  199. </div>
  200. </body>
  201. </html>