国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

186 lines
7.1KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <title>专题文档管理</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script src="js/context_menu.js"></script>
  10. <script src="js/ieemu.js"></script>
  11. <script>
  12. if (moz) {
  13. extendEventObject();
  14. extendElementModel();
  15. emulateAttachEvent();
  16. }
  17. function viewArc(aid) {
  18. if (aid == 0) aid = getOneItem();
  19. window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives");
  20. }
  21. function editArc(aid) {
  22. if (aid == 0) aid = getOneItem();
  23. location = "archives_do.php?aid=" + aid + "&dopost=editArchives";
  24. }
  25. function updateArc(aid) {
  26. var qstr = getCheckboxItem();
  27. if (aid == 0) aid = getOneItem();
  28. location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr;
  29. }
  30. function checkArc(aid) {
  31. var qstr = getCheckboxItem();
  32. if (aid == 0) aid = getOneItem();
  33. location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr;
  34. }
  35. function adArc(aid) {
  36. var qstr = getCheckboxItem();
  37. if (aid == 0) aid = getOneItem();
  38. location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr;
  39. }
  40. function delArc(aid) {
  41. var qstr = getCheckboxItem();
  42. if (aid == 0) aid = getOneItem();
  43. location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives";
  44. }
  45. //上下文菜单
  46. function ShowMenu(evt, obj, aid, atitle) {
  47. var eobj, popupoptions
  48. popupoptions = [
  49. new ContextItem("浏览文档", function () { viewArc(aid); }),
  50. new ContextItem("编辑文档", function () { editArc(aid); }),
  51. new ContextSeperator(),
  52. new ContextItem("更新HTML", function () { updateArc(aid); }),
  53. new ContextItem("审核文档", function () { checkArc(aid); }),
  54. new ContextItem("推荐文档", function () { adArc(aid); }),
  55. new ContextSeperator(),
  56. new ContextItem("删除文档", function () { delArc(aid); }),
  57. new ContextSeperator(),
  58. new ContextItem("全部选择", function () { selAll(); }),
  59. new ContextItem("取消选择", function () { noSelAll(); }),
  60. new ContextSeperator(),
  61. new ContextItem("关闭菜单", function () { })
  62. ]
  63. ContextMenu.display(evt, popupoptions)
  64. }
  65. //获得选中文件的文件名
  66. function getCheckboxItem() {
  67. var allSel = "";
  68. if (document.form2.arcID.value) return document.form2.arcID.value;
  69. for (i = 0; i < document.form2.arcID.length; i++) {
  70. if (document.form2.arcID[i].checked) {
  71. if (allSel == "")
  72. allSel = document.form2.arcID[i].value;
  73. else
  74. allSel = allSel + "`" + document.form2.arcID[i].value;
  75. }
  76. }
  77. return allSel;
  78. }
  79. //获得选中其中一个的id
  80. function getOneItem() {
  81. var allSel = "";
  82. if (document.form2.arcID.value) return document.form2.arcID.value;
  83. for (i = 0; i < document.form2.arcID.length; i++) {
  84. if (document.form2.arcID[i].checked) {
  85. allSel = document.form2.arcID[i].value;
  86. break;
  87. }
  88. }
  89. return allSel;
  90. }
  91. function selAll() {
  92. for (i = 0; i < document.form2.arcID.length; i++) {
  93. if (!document.form2.arcID[i].checked) {
  94. document.form2.arcID[i].checked = true;
  95. }
  96. }
  97. }
  98. function noSelAll() {
  99. for (i = 0; i < document.form2.arcID.length; i++) {
  100. if (document.form2.arcID[i].checked) {
  101. document.form2.arcID[i].checked = false;
  102. }
  103. }
  104. }
  105. </script>
  106. </head>
  107. <body onLoad="ContextMenu.intializeContextMenu()">
  108. <table width="98%" cellspacing="0" cellpadding="0" align="center" class="table maintable mt-3 mb-3">
  109. <tr>
  110. <td>
  111. <button type="button" class="btn btn-success btn-sm" onClick="location='spec_add.php';">添加专题</button>
  112. <?php echo $CheckUserSend?>
  113. <button type="button" class="btn btn-success btn-sm" onClick="location='catalog_main.php';">频道管理</button>
  114. <button type="button" class="btn btn-success btn-sm" onClick="location='makehtml_spec.php';">更新专题</button>
  115. </td>
  116. </tr>
  117. </table>
  118. <form name="form3" action="content_s_list.php" method="get">
  119. <input type="hidden" name="dopost" value="listArchives">
  120. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="mt-3 mb-3" style="border:1px solid #dee2e6">
  121. <tr>
  122. <td height="36" bgcolor="#f8f8f8">
  123. <table cellpadding="0" cellspacing="0">
  124. <tr>
  125. <td width="180" align="center">
  126. <select name="cid" style="width:160px">
  127. <option value="0">选择分类</option>
  128. <?php echo $optionarr?>
  129. </select>
  130. </td>
  131. <td width="270"><input type="text" name="keyword" placeholder="请输入关键词" value="<?php echo $keyword?>" style="width:260px"></td>
  132. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  133. </tr>
  134. </table>
  135. </td>
  136. </tr>
  137. </table>
  138. </form>
  139. <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable" style="margin-top:10px">
  140. <tr>
  141. <td height="26" colspan="10" style="margin-left:10px;background:#f8f8f8">文章列表(在文章标题处使用鼠标右键进行常用操作)</td>
  142. </tr>
  143. <form name="form2">
  144. <tr align="center" bgcolor="#F8FCF1" height="26">
  145. <td width="6%">ID</td>
  146. <td width="4%">选择</td>
  147. <td width="30%">文章标题</td>
  148. <td width="10%">更新时间</td>
  149. <td width="10%">类目</td>
  150. <td width="10%">点击</td>
  151. <td width="10%">HTML</td>
  152. <td width="10%">权限</td>
  153. <td width="10%">属性</td>
  154. </tr>
  155. {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'}
  156. <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" height="26" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
  157. <td>{dede:field.id/}</td>
  158. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
  159. <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">{dede:field.title/}</a></td>
  160. <td><?php echo MyDate("Y-m-d H:i",$fields['senddate'])?></td>
  161. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  162. <td>{dede:field.click/}</td>
  163. <td><?php echo IsHtmlArchives($fields['ismake'])?></td>
  164. <td><?php echo GetRankName($fields['arcrank'])?></td>
  165. <td><?php echo IsCommendArchives($fields['flag'])?></td>
  166. </tr>
  167. {/dede:datalist}
  168. <tr>
  169. <td colspan="9" class="py-3" style="margin-left:10px">
  170. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  171. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  172. <a href="javascript:viewArc(0)" class="btn btn-success btn-sm">查看</a>
  173. <a href="javascript:editArc(0)" class="btn btn-success btn-sm">修改</a>
  174. <a href="javascript:updateArc(0)" class="btn btn-success btn-sm">更新</a>
  175. <a href="javascript:checkArc(0)" class="btn btn-success btn-sm">审核</a>
  176. <a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a>
  177. <a href="javascript:delArc(0)" class="btn btn-success btn-sm">删除</a>
  178. </td>
  179. </tr>
  180. </form>
  181. <tr>
  182. <td bgcolor="#f8f8f8" height="36" colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
  183. </tr>
  184. </table>
  185. </body>
  186. </html>