国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

285 рядки
11KB

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