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

219 lines
8.2KB

  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="js/context_menu.js"></script>
  11. <script language="javascript" src="js/ieemu.js"></script>
  12. <script language="javascript">
  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 leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
  109. <table width="100%" align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6"
  110. class="table maintable table-bordered mt-3">
  111. <tr>
  112. <td height="26" background="images/newlinebg3.gif">
  113. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table-borderless">
  114. <tr>
  115. <td align="center">
  116. <button type='button' class="btn btn-success btn-sm" onClick="location='makehtml_spec.php';">更新专题HTML</button>
  117. <button type='button' class="btn btn-success btn-sm" onClick="location='spec_add.php';">添加专题</button>
  118. <?php echo $CheckUserSend?>
  119. <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_main.php';">频道管理</button>
  120. </td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. </table>
  126. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered">
  127. <tr bgcolor="#E7E7E7">
  128. <td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
  129. <strong>文章列表</strong>
  130. (在文章标题处使用鼠标右键进行常用操作)
  131. </td>
  132. </tr>
  133. <form name="form2">
  134. <tr align="center" bgcolor="#FBFCE2" height="25">
  135. <td width="6%">ID</td>
  136. <td width="4%">选择</td>
  137. <td width="30%">文章标题</td>
  138. <td width="12%">更新时间</td>
  139. <td width="11%">类目</td>
  140. <td width="8%">点击</td>
  141. <td width="7%">HTML</td>
  142. <td width="9%">权限</td>
  143. <td width="12%">属性</td>
  144. </tr>
  145. {dede:datalist}
  146. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  147. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="25"
  148. oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
  149. <td>{dede:field.id/}</td>
  150. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
  151. <td align='left'>
  152. <a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'
  153. oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
  154. {dede:field.title/}
  155. </a>
  156. </td>
  157. <td><?php echo MyDate("Y-m-d H:i",$fields['senddate'])?></td>
  158. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  159. <td>{dede:field.click/}</td>
  160. <td><?php echo IsHtmlArchives($fields['ismake'])?></td>
  161. <td><?php echo GetRankName($fields['arcrank'])?></td>
  162. <td><?php echo IsCommendArchives($fields['flag'])?></td>
  163. </tr>
  164. {/dede:datalist}
  165. <tr bgcolor="#ffffff">
  166. <td height="24" colspan="9">
  167. &nbsp;
  168. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  169. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  170. <a href="javascript:viewArc(0)" class="btn btn-success btn-sm">&nbsp;查看&nbsp;</a>
  171. <a href="javascript:editArc(0)" class="btn btn-success btn-sm">&nbsp;更改&nbsp;</a>
  172. <a href="javascript:updateArc(0)" class="btn btn-success btn-sm">&nbsp;更新&nbsp;</a>
  173. <a href="javascript:checkArc(0)" class="btn btn-success btn-sm">&nbsp;审核&nbsp;</a>
  174. <a href="javascript:adArc(0)" class="btn btn-success btn-sm">&nbsp;推荐&nbsp;</a>
  175. <a href="javascript:delArc(0)" class="btn btn-success btn-sm">&nbsp;删除&nbsp;</a>
  176. </td>
  177. </tr>
  178. </form>
  179. <tr align="right" bgcolor="#F9FCEF">
  180. <td height="20" colspan="9" align="center">
  181. {dede:pagelist listsize=5/}
  182. </td>
  183. </tr>
  184. </table>
  185. <form name='form3' action='content_s_list.php' method='get'>
  186. <input type='hidden' name='dopost' value='listArchives'>
  187. <table width='98%' align="center" border='0' class="mb-3" cellpadding='1' cellspacing='1' class="table-borderless" background="images/wbg.gif">
  188. <tr>
  189. <td width='160' align='center'>请选择类目:</td>
  190. <td width='160'>
  191. <select name='cid' style='width:150'>
  192. <option value='0'>选择分类...</option>
  193. <?php echo $optionarr?>
  194. </select>
  195. </td>
  196. <td width='100'>
  197. 关键字:
  198. </td>
  199. <td width='160'>
  200. <input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
  201. </td>
  202. <td width='100'>
  203. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  204. </td>
  205. </tr>
  206. </table>
  207. </form>
  208. </body>
  209. </html>