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

283 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. </head>
  128. <body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
  129. <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="table table-bordered maintable mt-3">
  130. <tr>
  131. <td align="center">
  132. <input type='button' class="coolbg np"
  133. onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
  134. value='添加文档' />
  135. {dede:if $adminid==$mid }
  136. <input type='button' class="coolbg np"
  137. onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';"
  138. value='全部文档' />
  139. {else}
  140. <input type='button' class="coolbg np"
  141. onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
  142. value='我的文档' />
  143. {/dede:if}
  144. <input type='button' class="coolbg np" onClick="location='catalog_main.php';"
  145. value='栏目管理' />
  146. <input type='button' class="coolbg np" name='bb1'
  147. onClick="location='makehtml_list.php?cid={dede:global.cid/}';"
  148. value='更新列表' />
  149. <input type='button' class="coolbg np" name='bb2'
  150. onClick="location='makehtml_archives.php?cid={dede:global.cid/}';"
  151. value='更新文档' />
  152. <?php echo $CheckUserSend; ?>
  153. </td>
  154. </tr>
  155. </table>
  156. <table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center" class="mt-3">
  157. <tr>
  158. <td align='center' valign='top'>
  159. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  160. <tr bgcolor="#FFFFFF">
  161. <td height="4"></td>
  162. </tr>
  163. </table>
  164. <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered">
  165. <tr bgcolor="#E7E7E7">
  166. <td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
  167. {dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
  168. </td>
  169. </tr>
  170. <form name="form2">
  171. <tr align="center" bgcolor="#FBFCE2" height="25">
  172. <td width="6%">ID</td>
  173. <td width="6%">选择</td>
  174. <td width="26%">文章标题</td>
  175. <td width="11%">更新时间</td>
  176. <td width="11%">类目</td>
  177. <td width="10%">权限</td>
  178. <td width="8%">点击</td>
  179. <td width="10%">发布人</td>
  180. <td width="10%">操作</td>
  181. </tr>
  182. {dede:datalist}
  183. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  184. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
  185. <td>{dede:field.id/}</td>
  186. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.aid/}" class="np">
  187. </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="
  191. str_replace('\'', '' , @me)" /}')">
  192. <u>{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</u>
  193. </a>
  194. </td>
  195. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  196. <td>{dede:field.typename/}</td>
  197. <td>{dede:field.arcrank function="GetRankName(@me)"/}</td>
  198. <td>{dede:field.click/}</td>
  199. <td>{dede:field.mid function=GetMemberName(@me)/}</td>
  200. <td>
  201. <a href="javascript:editArc({dede:field.aid/})">编辑</a> |
  202. <a href="javascript:viewArc({dede:field.aid/})">预览</a>
  203. </td>
  204. </tr>
  205. {/dede:datalist}
  206. <tr bgcolor="#ffffff">
  207. <td height="24" colspan="9">
  208. &nbsp;
  209. <a href="javascript:selAll()" class="coolbg">全选</a>
  210. <a href="javascript:noSelAll()" class="coolbg">取消</a>
  211. <a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
  212. <a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
  213. <a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
  214. <a href="javascript:;"
  215. onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)"
  216. class="coolbg">&nbsp;移动&nbsp;</a>
  217. <a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
  218. </td>
  219. </tr>
  220. </form>
  221. <tr align="right" bgcolor="#F9FCEF">
  222. <td height="20" colspan="9" align="center">
  223. {dede:pagelist listsize=3/}
  224. </td>
  225. </tr>
  226. </table>
  227. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  228. <tr>
  229. <td height="4"></td>
  230. </tr>
  231. <tr bgcolor="#FFFFFF">
  232. <td height="26">
  233. <table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' class="table table-bordered">
  234. <tr bgcolor='#F7F7F7'>
  235. <form name='form3' action='content_sg_list.php' method='get'>
  236. <input type='hidden' name='dopost' value='listArchives'>
  237. <td>
  238. <table width='600' border='0' cellpadding='0' cellspacing='0' class="table-borderless">
  239. <tr>
  240. <td width='90' align='center'>请选择类目:</td>
  241. <td width='160'>
  242. <select name='cid' style='width:150'>
  243. <option value='0'>选择分类...</option>
  244. {dede:global.optionarr/}
  245. </select>
  246. </td>
  247. <td width='70'>
  248. 关键字:
  249. </td>
  250. <td width='160'>
  251. <input type='text' name='keyword' value='{dede:global.keyword/}'
  252. style='width:150'>
  253. </td>
  254. <td>
  255. <input name="imageField" type="image"
  256. src="images/button_search.gif" width="60" height="22"
  257. border="0" class="np">
  258. </td>
  259. </tr>
  260. </table>
  261. </td>
  262. </form>
  263. </tr>
  264. </table>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td colspan="2" height="4"></td>
  269. </tr>
  270. </table>
  271. </td>
  272. </tr>
  273. </table>
  274. </body>
  275. </html>