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

272 lines
9.4KB

  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="../static/js/dedeajax2.js"></script>
  8. <script language="javascript" src="js/ieemu.js"></script>
  9. <script language="javascript" src="js/context_menu.js"></script>
  10. <script language="javascript" src="js/main.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 checkArc(aid){
  26. var qstr=getCheckboxItem();
  27. if(aid==0) aid = getOneItem();
  28. location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr;
  29. }
  30. function updateArc(aid){
  31. var qstr=getCheckboxItem();
  32. if(aid==0) aid = getOneItem();
  33. location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr;
  34. }
  35. function moveArc(aid){
  36. var qstr=getCheckboxItem();
  37. if(aid==0) aid = getOneItem();
  38. location="archives_do.php?aid="+aid+"&dopost=moveArchives&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. function adArc(aid){
  46. var qstr=getCheckboxItem();
  47. if(aid==0) aid = getOneItem();
  48. location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr;
  49. }
  50. function moveArc(e, obj, cid){
  51. var qstr=getCheckboxItem();
  52. if(qstr=='')
  53. {
  54. alert('必须选择一个或多个文档!');
  55. return;
  56. }
  57. LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', '450px', '180px');
  58. ChangeFullDiv('show');
  59. }
  60. //上下文菜单
  61. function ShowMenu(evt,obj,aid,atitle)
  62. {
  63. var popupoptions
  64. popupoptions = [
  65. new ContextItem("浏览文档",function(){ viewArc(aid); }),
  66. new ContextItem("编辑文档",function(){ editArc(aid); }),
  67. new ContextSeperator(),
  68. new ContextItem("更新HTML",function(){ updateArc(aid); }),
  69. new ContextItem("审核文档",function(){ checkArc(aid); }),
  70. new ContextItem("推荐文档",function(){ adArc(aid); }),
  71. new ContextItem("删除文档",function(){ delArc(aid); }),
  72. new ContextSeperator(),
  73. new ContextItem("复制(<u>C</u>)",function(){ copyToClipboard(atitle); }),
  74. new ContextItem("重载页面",function(){ location.reload(); }),
  75. new ContextSeperator(),
  76. new ContextItem("全部选择",function(){ selAll(); }),
  77. new ContextItem("取消选择",function(){ noSelAll(); }),
  78. new ContextSeperator(),
  79. new ContextItem("关闭菜单",function(){})
  80. ]
  81. ContextMenu.display(evt,popupoptions);
  82. //location="catalog_main.php";
  83. }
  84. //获得选中文件的文件名
  85. function getCheckboxItem()
  86. {
  87. var allSel="";
  88. if(document.form2.arcID.value) return document.form2.arcID.value;
  89. for(i=0;i<document.form2.arcID.length;i++)
  90. {
  91. if(document.form2.arcID[i].checked)
  92. {
  93. if(allSel=="")
  94. allSel=document.form2.arcID[i].value;
  95. else
  96. allSel=allSel+"`"+document.form2.arcID[i].value;
  97. }
  98. }
  99. return allSel;
  100. }
  101. //获得选中其中一个的id
  102. function getOneItem()
  103. {
  104. var allSel="";
  105. if(document.form2.arcID.value) return document.form2.arcID.value;
  106. for(i=0;i<document.form2.arcID.length;i++)
  107. {
  108. if(document.form2.arcID[i].checked)
  109. {
  110. allSel = document.form2.arcID[i].value;
  111. break;
  112. }
  113. }
  114. return allSel;
  115. }
  116. function selAll()
  117. {
  118. for(i=0;i<document.form2.arcID.length;i++)
  119. {
  120. if(!document.form2.arcID[i].checked)
  121. {
  122. document.form2.arcID[i].checked=true;
  123. }
  124. }
  125. }
  126. function noSelAll()
  127. {
  128. for(i=0;i<document.form2.arcID.length;i++)
  129. {
  130. if(document.form2.arcID[i].checked)
  131. {
  132. document.form2.arcID[i].checked=false;
  133. }
  134. }
  135. }
  136. </script>
  137. </head>
  138. <body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
  139. <table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center">
  140. <tr>
  141. <td align='center' valign='top'>
  142. <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D6D6D6">
  143. <tr>
  144. <td height="26" background="images/newlinebg3.gif">
  145. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  146. <tr>
  147. <td align="center">
  148. <input type='button' class="coolbg np" onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" value='添加文档' />
  149. {dede:if $adminid==$mid }
  150. <input type='button' class="coolbg np" onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" value='全部文档' />
  151. {else}
  152. <input type='button' class="coolbg np" onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" value='我的文档' />
  153. {/dede:if}
  154. <input type='button' class="coolbg np" onClick="location='catalog_main.php';" value='栏目管理' />
  155. <input type='button' class="coolbg np" name='bb1' onClick="location='makehtml_list.php?cid={dede:global.cid/}';" value='更新列表' />
  156. <input type='button' class="coolbg np" name='bb2' onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" value='更新文档' />
  157. <?php echo $CheckUserSend; ?>
  158. </td>
  159. </tr>
  160. </table>
  161. </td>
  162. </tr>
  163. </table>
  164. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  165. <tr bgcolor="#FFFFFF"><td height="4"></td></tr>
  166. </table>
  167. <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf">
  168. <tr bgcolor="#E7E7E7">
  169. <td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">{dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
  170. </td>
  171. </tr>
  172. <form name="form2">
  173. <tr align="center" bgcolor="#FBFCE2" height="25">
  174. <td width="6%">ID</td>
  175. <td width="6%">选择</td>
  176. <td width="26%">文章标题</td>
  177. <td width="11%">更新时间</td>
  178. <td width="11%">类目</td>
  179. <td width="10%">权限</td>
  180. <td width="8%">点击</td>
  181. <td width="10%">发布人</td>
  182. <td width="10%">操作</td>
  183. </tr>
  184. {dede:datalist}
  185. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
  186. <td>{dede:field.id/}</td>
  187. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.aid/}" class="np"></td>
  188. <td align='left'>
  189. <a href='archives_do.php?aid={dede:field.aid/}&dopost=editArchives'
  190. oncontextmenu="ShowMenu(event,this,{dede:field.aid/},'{dede:field.title function="str_replace('\'', '', @me)" /}')">
  191. <u>{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</u>
  192. </a>
  193. </td>
  194. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  195. <td>{dede:field.typename/}</td>
  196. <td>{dede:field.arcrank function="GetRankName(@me)"/}</td>
  197. <td>{dede:field.click/}</td>
  198. <td>{dede:field.mid function=GetMemberName(@me)/}</td>
  199. <td>
  200. <a href="javascript:editArc({dede:field.aid/})">编辑</a> |
  201. <a href="javascript:viewArc({dede:field.aid/})">预览</a>
  202. </td>
  203. </tr>
  204. {/dede:datalist}
  205. <tr bgcolor="#ffffff">
  206. <td height="24" colspan="9">
  207. &nbsp;
  208. <a href="javascript:selAll()" class="coolbg">全选</a>
  209. <a href="javascript:noSelAll()" class="coolbg">取消</a>
  210. <a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
  211. <a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
  212. <a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
  213. <a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" class="coolbg">&nbsp;移动&nbsp;</a>
  214. <a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
  215. </td>
  216. </tr>
  217. </form>
  218. <tr align="right" bgcolor="#F9FCEF">
  219. <td height="20" colspan="9" align="center">
  220. {dede:pagelist listsize=3/}
  221. </td>
  222. </tr>
  223. </table>
  224. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  225. <tr>
  226. <td height="4"></td>
  227. </tr>
  228. <tr bgcolor="#FFFFFF">
  229. <td height="26">
  230. <table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf'>
  231. <tr bgcolor='#EEF4EA'>
  232. <form name='form3' action='content_sg_list.php' method='get'>
  233. <input type='hidden' name='dopost' value='listArchives'>
  234. <td background='images/wbg.gif'>
  235. <table width='600' border='0' cellpadding='0' cellspacing='0'>
  236. <tr>
  237. <td width='90' align='center'>请选择类目:</td>
  238. <td width='160'>
  239. <select name='cid' style='width:150'>
  240. <option value='0'>选择分类...</option>
  241. {dede:global.optionarr/}
  242. </select>
  243. </td>
  244. <td width='70'>
  245. 关键字:
  246. </td>
  247. <td width='160'>
  248. <input type='text' name='keyword' value='{dede:global.keyword/}' style='width:150'>
  249. </td>
  250. <td>
  251. <input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np">
  252. </td>
  253. </tr>
  254. </table>
  255. </td>
  256. </form>
  257. </tr>
  258. </table>
  259. </td>
  260. </tr>
  261. <tr>
  262. <td colspan="2" height="4"></td>
  263. </tr>
  264. </table>
  265. </td>
  266. </tr>
  267. </table>
  268. </body>
  269. </html>