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

208 lines
8.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>文档管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="../static/web/js/bootstrap.bundle.min.js"></script>
  12. <script src="../static/web/js/webajax.js"></script>
  13. <script src="js/ieemu.js"></script>
  14. <script src="js/main.js"></script>
  15. <script>
  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', '480px', '180px');
  65. ChangeFullDiv('show');
  66. }
  67. //获得选中文件的文件名
  68. function getCheckboxItem() {
  69. var allSel = "";
  70. if (document.form2.arcID.value) return document.form2.arcID.value;
  71. for (i = 0; i < document.form2.arcID.length; i++) {
  72. if (document.form2.arcID[i].checked) {
  73. if (allSel == "")
  74. allSel = document.form2.arcID[i].value;
  75. else
  76. allSel = allSel + "`" + document.form2.arcID[i].value;
  77. }
  78. }
  79. return allSel;
  80. }
  81. function getCheckboxItem2() {
  82. var allSel = "";
  83. if (document.form2.arcID.value) return document.form2.arcID.value;
  84. for (i = 0; i < document.form2.arcID.length; i++) {
  85. if (document.form2.arcID[i].checked) {
  86. if (allSel == "")
  87. allSel = document.form2.arcID[i].value;
  88. else
  89. allSel = allSel + "," + document.form2.arcID[i].value;
  90. }
  91. }
  92. return allSel;
  93. }
  94. //获得选中其中一个的id
  95. function getOneItem() {
  96. var allSel = "";
  97. if (document.form2.arcID.value) return document.form2.arcID.value;
  98. for (i = 0; i < document.form2.arcID.length; i++) {
  99. if (document.form2.arcID[i].checked) {
  100. allSel = document.form2.arcID[i].value;
  101. break;
  102. }
  103. }
  104. return allSel;
  105. }
  106. function selAll() {
  107. for (i = 0; i < document.form2.arcID.length; i++) {
  108. if (!document.form2.arcID[i].checked) {
  109. document.form2.arcID[i].checked = true;
  110. }
  111. }
  112. }
  113. function noSelAll() {
  114. for (i = 0; i < document.form2.arcID.length; i++) {
  115. if (document.form2.arcID[i].checked) {
  116. document.form2.arcID[i].checked = false;
  117. }
  118. }
  119. }
  120. </script>
  121. </head>
  122. <body>
  123. <table width="98%" align="center" cellspacing="0" cellpadding="0" class="table maintable my-3">
  124. <tr>
  125. <td>
  126. <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';">添加文档</button>
  127. {dede:if $adminid==$mid }
  128. <button type='button' class="btn btn-success btn-sm" onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';">全部文档</button>
  129. {else}
  130. <button type='button' class="btn btn-success btn-sm" onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID();?>';">我的文档</button>
  131. {/dede:if}
  132. <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_main.php';">栏目管理</button>
  133. <button type='button' class="btn btn-success btn-sm" name='bb1' onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button>
  134. <button type='button' class="btn btn-success btn-sm" name='bb2' onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新文档</button>
  135. <?php echo $CheckUserSend;?>
  136. </td>
  137. </tr>
  138. </table>
  139. <form name="form3" action="content_sg_list.php" method="get">
  140. <input type="hidden" name="dopost" value="listArchives">
  141. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable my-3">
  142. <tr bgcolor="#f5f5f5">
  143. <td width="180" align="center">
  144. <select name="cid" class="biz-input-sm">
  145. <option value="0">选择分类</option>
  146. {dede:global.optionarr/}
  147. </select>
  148. </td>
  149. <td width="270"><input type="text" name="keyword" placeholder="请输入关键词" value="{dede:global.keyword/}" class="biz-input-md"></td>
  150. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  151. </tr>
  152. </table>
  153. </form>
  154. <table width="98%" cellpadding="2" cellspacing="1" align="center" class="table maintable mb-3">
  155. <tr>
  156. <td bgcolor="#f5f5f5" colspan="9">{dede:global.positionname/}文档列表</td>
  157. </tr>
  158. <form name="form2">
  159. <tr bgcolor="#fbfce2" align="center">
  160. <td width="6%">id</td>
  161. <td width="6%">选择</td>
  162. <td width="30%">文档标题</td>
  163. <td width="10%">更新时间</td>
  164. <td width="14%">类目</td>
  165. <td width="9%">点击</td>
  166. <td width="9%">权限</td>
  167. <td width="6%">发布人</td>
  168. <td width="10%">操作</td>
  169. </tr>
  170. {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'}
  171. <tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';">
  172. <td>{dede:field.id/}</td>
  173. <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.aid/}"></td>
  174. <td align="left"><a href="archives_do.php?aid={dede:field.aid/}&dopost=editArchives">{dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}</a></td>
  175. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  176. <td>{dede:field.typename/}</td>
  177. <td>{dede:field.arcrank function="GetRankName(@me)"/}</td>
  178. <td>{dede:field.click/}</td>
  179. <td>{dede:field.mid function=GetMemberName(@me)/}</td>
  180. <td>
  181. <a href="javascript:editArc({dede:field.aid/})" class="btn btn-success btn-sm" title="编辑"><i class="fa fa-pencil-square-o"></i></a>
  182. <a href="javascript:viewArc({dede:field.aid/})" class="btn btn-success btn-sm" title="预览"><i class="fa fa-globe"></i></a>
  183. </td>
  184. </tr>
  185. {/dede:datalist}
  186. <tr>
  187. <td colspan="9" class="py-2">
  188. <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a>
  189. <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a>
  190. <a href="javascript:updateArc(0)" class="btn btn-success btn-sm">更新</a>
  191. <a href="javascript:checkArc(0)" class="btn btn-success btn-sm">审核</a>
  192. <a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a>
  193. <a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>)" class="btn btn-success btn-sm">移动</a>
  194. <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a>
  195. <?php
  196. if (!empty($f)) {
  197. ?>
  198. <a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a>
  199. <?php }?>
  200. </td>
  201. </tr>
  202. </form>
  203. <tr>
  204. <td bgcolor="#f5f5f5" class="py-2" colspan="9" align="center">{dede:pagelist listsize='6'/}</td>
  205. </tr>
  206. </table>
  207. </body>
  208. </html>