国内流行的内容管理系统(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.

187 lines
7.3KB

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