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

216 lines
8.0KB

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