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

315 lines
12KB

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