国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

246 lignes
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" type="text/css" href="css/base.css">
  7. <script language="javascript" src="js/context_menu.js"></script>
  8. <script language="javascript" src="js/ieemu.js"></script>
  9. <script language="javascript">
  10. if(moz) {
  11. extendEventObject();
  12. extendElementModel();
  13. emulateAttachEvent();
  14. }
  15. function viewArc(aid){
  16. if(aid==0) aid = getOneItem();
  17. window.open("archives_do.php?aid="+aid+"&dopost=viewArchives");
  18. }
  19. function editArc(aid){
  20. if(aid==0) aid = getOneItem();
  21. location="archives_do.php?aid="+aid+"&dopost=editArchives";
  22. }
  23. function updateArc(aid){
  24. var qstr=getCheckboxItem();
  25. if(aid==0) aid = getOneItem();
  26. location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr;
  27. }
  28. function checkArc(aid){
  29. var qstr=getCheckboxItem();
  30. if(aid==0) aid = getOneItem();
  31. location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr;
  32. }
  33. function adArc(aid){
  34. var qstr=getCheckboxItem();
  35. if(aid==0) aid = getOneItem();
  36. location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr;
  37. }
  38. function delArc(aid){
  39. var qstr=getCheckboxItem();
  40. if(aid==0) aid = getOneItem();
  41. location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives";
  42. }
  43. //上下文菜单
  44. function ShowMenu(evt,obj,aid,atitle)
  45. {
  46. var eobj,popupoptions
  47. popupoptions = [
  48. new ContextItem("浏览文档",function(){ viewArc(aid); }),
  49. new ContextItem("编辑文档",function(){ editArc(aid); }),
  50. new ContextSeperator(),
  51. new ContextItem("更新HTML",function(){ updateArc(aid); }),
  52. new ContextItem("审核文档",function(){ checkArc(aid); }),
  53. new ContextItem("推荐文档",function(){ adArc(aid); }),
  54. new ContextSeperator(),
  55. new ContextItem("删除文档",function(){ delArc(aid); }),
  56. new ContextSeperator(),
  57. new ContextItem("全部选择",function(){ selAll(); }),
  58. new ContextItem("取消选择",function(){ noSelAll(); }),
  59. new ContextSeperator(),
  60. new ContextItem("关闭菜单",function(){})
  61. ]
  62. ContextMenu.display(evt,popupoptions)
  63. }
  64. //获得选中文件的文件名
  65. function getCheckboxItem()
  66. {
  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. {
  71. if(document.form2.arcID[i].checked)
  72. {
  73. if(allSel=="")
  74. allSel=document.form2.arcID[i].value;
  75. else
  76. allSel=allSel+"`"+document.form2.arcID[i].value;
  77. }
  78. }
  79. return allSel;
  80. }
  81. //获得选中其中一个的id
  82. function getOneItem()
  83. {
  84. var allSel="";
  85. if(document.form2.arcID.value) return document.form2.arcID.value;
  86. for(i=0;i<document.form2.arcID.length;i++)
  87. {
  88. if(document.form2.arcID[i].checked)
  89. {
  90. allSel = document.form2.arcID[i].value;
  91. break;
  92. }
  93. }
  94. return allSel;
  95. }
  96. function selAll()
  97. {
  98. for(i=0;i<document.form2.arcID.length;i++)
  99. {
  100. if(!document.form2.arcID[i].checked)
  101. {
  102. document.form2.arcID[i].checked=true;
  103. }
  104. }
  105. }
  106. function noSelAll()
  107. {
  108. for(i=0;i<document.form2.arcID.length;i++)
  109. {
  110. if(document.form2.arcID[i].checked)
  111. {
  112. document.form2.arcID[i].checked=false;
  113. }
  114. }
  115. }
  116. </script>
  117. </head>
  118. <body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
  119. <table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>
  120. <tr>
  121. <td align='center' valign='top'>
  122. <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
  123. <tr>
  124. <td height="26" background="images/newlinebg3.gif">
  125. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  126. <tr>
  127. <td align="center">
  128. <input type='button' class="coolbg np" onClick="location='makehtml_spec.php';" value='更新专题HTML' />
  129. <input type='button' class="coolbg np" onClick="location='spec_add.php';" value='添加专题' />
  130. <?php echo $CheckUserSend?>
  131. <input type='button' class="coolbg np" onClick="location='catalog_main.php';" value='频道管理' />
  132. </td>
  133. </tr>
  134. </table>
  135. </td>
  136. </tr>
  137. </table>
  138. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  139. <tr bgcolor="#FFFFFF"><td height="4"></td></tr>
  140. </table>
  141. <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
  142. <tr bgcolor="#E7E7E7">
  143. <td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
  144. <strong>文章列表</strong>
  145. (在文章标题处使用鼠标右键进行常用操作)
  146. </td>
  147. </tr>
  148. <form name="form2">
  149. <tr align="center" bgcolor="#FBFCE2" height="25">
  150. <td width="6%">ID</td>
  151. <td width="4%">选择</td>
  152. <td width="30%">文章标题</td>
  153. <td width="12%">更新时间</td>
  154. <td width="11%">类目</td>
  155. <td width="8%">点击</td>
  156. <td width="7%">HTML</td>
  157. <td width="9%">权限</td>
  158. <td width="12%">属性</td>
  159. </tr>
  160. {dede:datalist}
  161. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="25" oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
  162. <td>{dede:field.id/}</td>
  163. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td>
  164. <td align='left'>
  165. <a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives' oncontextmenu="ShowMenu(event,this,{dede:field.id/},'<?php echo urlencode($fields['title'])?>')">
  166. <u>{dede:field.title/}</u>
  167. </a>
  168. </td>
  169. <td><?php echo MyDate("Y-m-d H:i",$fields['senddate'])?></td>
  170. <td>{dede:field.typeid function='GetTypename(@me)'/}</td>
  171. <td>{dede:field.click/}</td>
  172. <td><?php echo IsHtmlArchives($fields['ismake'])?></td>
  173. <td><?php echo GetRankName($fields['arcrank'])?></td>
  174. <td><?php echo IsCommendArchives($fields['flag'])?></td>
  175. </tr>
  176. {/dede:datalist}
  177. <tr bgcolor="#ffffff">
  178. <td height="24" colspan="9">
  179. &nbsp;
  180. <a href="javascript:selAll()" class="coolbg">全选</a>
  181. <a href="javascript:noSelAll()" class="coolbg">取消</a>
  182. <a href="javascript:viewArc(0)" class="coolbg">&nbsp;查看&nbsp;</a>
  183. <a href="javascript:editArc(0)" class="coolbg">&nbsp;更改&nbsp;</a>
  184. <a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
  185. <a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
  186. <a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
  187. <a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
  188. </td>
  189. </tr>
  190. </form>
  191. <tr align="right" bgcolor="#F9FCEF">
  192. <td height="20" colspan="9" align="center">
  193. {dede:pagelist listsize=5/}
  194. </td>
  195. </tr>
  196. </table>
  197. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  198. <tr>
  199. <td height="4"></td>
  200. </tr>
  201. <tr bgcolor="#FFFFFF">
  202. <td height="28">
  203. <table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf'>
  204. <tr bgcolor='#EEF4EA'>
  205. <form name='form3' action='content_s_list.php' method='get'>
  206. <input type='hidden' name='dopost' value='listArchives'>
  207. <td background='images/wbg.gif'>
  208. <table width='600' border='0' cellpadding='0' cellspacing='0'>
  209. <tr>
  210. <td width='90' align='center'>请选择类目:</td>
  211. <td width='160'>
  212. <select name='cid' style='width:150'>
  213. <option value='0'>选择分类...</option>
  214. <?php echo $optionarr?>
  215. </select>
  216. </td>
  217. <td width='70'>
  218. 关键字:
  219. </td>
  220. <td width='160'>
  221. <input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>
  222. </td>
  223. <td>
  224. <input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np">
  225. </td>
  226. </tr>
  227. </table>
  228. </td>
  229. </form>
  230. </tr>
  231. </table>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td colspan="2" height="4"></td>
  236. </tr>
  237. </table>
  238. </td>
  239. </tr>
  240. </table>
  241. </body>
  242. </html>