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

222 lines
8.1KB

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