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

286 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 src="../static/js/bootstrap.bundle.js"></script>
  12. <script language="javascript" src="../static/js/dedeajax2.js"></script>
  13. <script language="javascript" src="js/ieemu.js"></script>
  14. <script language="javascript" src="js/context_menu.js"></script>
  15. <script language="javascript" src="js/main.js"></script>
  16. <script language="javascript">
  17. if (moz) {
  18. extendEventObject();
  19. extendElementModel();
  20. emulateAttachEvent();
  21. }
  22. function viewArc(aid) {
  23. if (aid == 0) aid = getOneItem();
  24. window.open("archives_do.php?aid=" + aid + "&dopost=viewArchives");
  25. }
  26. function editArc(aid) {
  27. if (aid == 0) aid = getOneItem();
  28. location = "archives_do.php?aid=" + aid + "&dopost=editArchives";
  29. }
  30. function checkArc(aid) {
  31. var qstr = getCheckboxItem();
  32. if (aid == 0) aid = getOneItem();
  33. location = "archives_do.php?aid=" + aid + "&dopost=checkArchives&qstr=" + qstr;
  34. }
  35. function updateArc(aid) {
  36. var qstr = getCheckboxItem();
  37. if (aid == 0) aid = getOneItem();
  38. location = "archives_do.php?aid=" + aid + "&dopost=makeArchives&qstr=" + qstr;
  39. }
  40. function moveArc(aid) {
  41. var qstr = getCheckboxItem();
  42. if (aid == 0) aid = getOneItem();
  43. location = "archives_do.php?aid=" + aid + "&dopost=moveArchives&qstr=" + qstr;
  44. }
  45. function delArc(aid) {
  46. var qstr = getCheckboxItem();
  47. if (qstr == '') {
  48. ShowMsg('必须选择一个或多个文档!');
  49. return;
  50. }
  51. if (aid == 0) aid = getOneItem();
  52. location = "archives_do.php?qstr=" + qstr + "&aid=" + aid + "&dopost=delArchives";
  53. }
  54. function adArc(aid) {
  55. var qstr = getCheckboxItem();
  56. if (aid == 0) aid = getOneItem();
  57. location = "archives_do.php?aid=" + aid + "&dopost=commendArchives&qstr=" + qstr;
  58. }
  59. function moveArc(e, obj, cid) {
  60. var qstr = getCheckboxItem();
  61. if (qstr == '') {
  62. ShowMsg('必须选择一个或多个文档!');
  63. return;
  64. }
  65. LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr=' + qstr + '&channelid=' + cid + '&rnd=' + Math.random(), 'moveArchives', '450px', '180px');
  66. ChangeFullDiv('show');
  67. }
  68. //上下文菜单
  69. function ShowMenu(evt, obj, aid, atitle) {
  70. var popupoptions
  71. popupoptions = [
  72. new ContextItem("浏览文档", function () { viewArc(aid); }),
  73. new ContextItem("编辑文档", function () { editArc(aid); }),
  74. new ContextSeperator(),
  75. new ContextItem("更新HTML", function () { updateArc(aid); }),
  76. new ContextItem("审核文档", function () { checkArc(aid); }),
  77. new ContextItem("推荐文档", function () { adArc(aid); }),
  78. new ContextItem("删除文档", function () { delArc(aid); }),
  79. new ContextSeperator(),
  80. new ContextItem("复制(<u>C</u>)", function () { copyToClipboard(atitle); }),
  81. new ContextItem("重载页面", function () { location.reload(); }),
  82. new ContextSeperator(),
  83. new ContextItem("全部选择", function () { selAll(); }),
  84. new ContextItem("取消选择", function () { noSelAll(); }),
  85. new ContextSeperator(),
  86. new ContextItem("关闭菜单", function () { })
  87. ]
  88. ContextMenu.display(evt, popupoptions);
  89. //location="catalog_main.php";
  90. }
  91. //获得选中文件的文件名
  92. function getCheckboxItem() {
  93. var allSel = "";
  94. if (document.form2.arcID.value) return document.form2.arcID.value;
  95. for (i = 0; i < document.form2.arcID.length; i++) {
  96. if (document.form2.arcID[i].checked) {
  97. if (allSel == "")
  98. allSel = document.form2.arcID[i].value;
  99. else
  100. allSel = allSel + "`" + document.form2.arcID[i].value;
  101. }
  102. }
  103. return allSel;
  104. }
  105. //获得选中其中一个的id
  106. function getOneItem() {
  107. var allSel = "";
  108. if (document.form2.arcID.value) return document.form2.arcID.value;
  109. for (i = 0; i < document.form2.arcID.length; i++) {
  110. if (document.form2.arcID[i].checked) {
  111. allSel = document.form2.arcID[i].value;
  112. break;
  113. }
  114. }
  115. return allSel;
  116. }
  117. function selAll() {
  118. for (i = 0; i < document.form2.arcID.length; i++) {
  119. if (!document.form2.arcID[i].checked) {
  120. document.form2.arcID[i].checked = true;
  121. }
  122. }
  123. }
  124. function noSelAll() {
  125. for (i = 0; i < document.form2.arcID.length; i++) {
  126. if (document.form2.arcID[i].checked) {
  127. document.form2.arcID[i].checked = false;
  128. }
  129. }
  130. }
  131. </script>
  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. <button type='button' class="btn btn-secondary btn-sm"
  138. onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
  139. >添加文档</button>
  140. {dede:if $adminid==$mid }
  141. <button type='button' class="btn btn-secondary btn-sm"
  142. onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';"
  143. >全部文档</button>
  144. {else}
  145. <button type='button' class="btn btn-secondary btn-sm"
  146. onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
  147. >我的文档</button>
  148. {/dede:if}
  149. <button type='button' class="btn btn-secondary btn-sm" onClick="location='catalog_main.php';"
  150. >栏目管理</button>
  151. <button type='button' class="btn btn-secondary btn-sm" name='bb1'
  152. onClick="location='makehtml_list.php?cid={dede:global.cid/}';"
  153. >更新列表</button>
  154. <button type='button' class="btn btn-secondary btn-sm" name='bb2'
  155. onClick="location='makehtml_archives.php?cid={dede:global.cid/}';"
  156. >更新文档</button>
  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/})" class="btn btn-secondary btn-sm" title="编辑"> <i class="fa fa-pencil-square-o" aria-hidden="true"></i> </a>
  207. <a href="javascript:viewArc({dede:field.aid/})" class="btn btn-secondary btn-sm" title="预览"> <i class="fa fa-globe" aria-hidden="true"></i></a>
  208. </td>
  209. </tr>
  210. {/dede:datalist}
  211. <tr bgcolor="#ffffff">
  212. <td height="24" colspan="9">
  213. &nbsp;
  214. <a class="btn btn-secondary btn-sm" href="javascript:selAll()" class="coolbg">全选</a>
  215. <a class="btn btn-secondary btn-sm" href="javascript:noSelAll()" class="coolbg">取消</a>
  216. <a class="btn btn-secondary btn-sm" href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
  217. <a class="btn btn-secondary btn-sm" href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
  218. <a class="btn btn-secondary btn-sm" href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
  219. <a class="btn btn-secondary btn-sm" href="javascript:;"
  220. onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)"
  221. class="coolbg">&nbsp;移动&nbsp;</a>
  222. <a class="btn btn-secondary btn-sm" 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. <button type="submit" class="btn btn-secondary">搜索</button>
  261. </td>
  262. </tr>
  263. </table>
  264. </td>
  265. </form>
  266. </tr>
  267. </table>
  268. </td>
  269. </tr>
  270. <tr>
  271. <td colspan="2" height="4"></td>
  272. </tr>
  273. </table>
  274. </td>
  275. </tr>
  276. </table>
  277. </body>
  278. </html>