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

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