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

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