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

318 lines
12KB

  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("复制(C)", 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. function getCheckboxItem2() {
  106. var allSel = "";
  107. if (document.form2.arcID.value) return document.form2.arcID.value;
  108. for (i = 0; i < document.form2.arcID.length; i++) {
  109. if (document.form2.arcID[i].checked) {
  110. if (allSel == "")
  111. allSel = document.form2.arcID[i].value;
  112. else
  113. allSel = allSel + "," + document.form2.arcID[i].value;
  114. }
  115. }
  116. return allSel;
  117. }
  118. //获得选中其中一个的id
  119. function getOneItem() {
  120. var allSel = "";
  121. if (document.form2.arcID.value) return document.form2.arcID.value;
  122. for (i = 0; i < document.form2.arcID.length; i++) {
  123. if (document.form2.arcID[i].checked) {
  124. allSel = document.form2.arcID[i].value;
  125. break;
  126. }
  127. }
  128. return allSel;
  129. }
  130. function selAll() {
  131. for (i = 0; i < document.form2.arcID.length; i++) {
  132. if (!document.form2.arcID[i].checked) {
  133. document.form2.arcID[i].checked = true;
  134. }
  135. }
  136. }
  137. function noSelAll() {
  138. for (i = 0; i < document.form2.arcID.length; i++) {
  139. if (document.form2.arcID[i].checked) {
  140. document.form2.arcID[i].checked = false;
  141. }
  142. }
  143. }
  144. function ReturnValue() {
  145. if (window.opener.document.<?php echo $f ?>.value == "") {
  146. window.opener.document.<?php echo $f ?>.value = getCheckboxItem2();
  147. } else {
  148. window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem2();
  149. }
  150. window.opener = null;
  151. window.close();
  152. }
  153. </script>
  154. </head>
  155. <body leftmargin="8" topmargin="8" background='images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">
  156. <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="table table-bordered maintable mt-3">
  157. <tr>
  158. <td align="center">
  159. <button type='button' class="btn btn-success btn-sm"
  160. onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';"
  161. >添加文档</button>
  162. {dede:if $adminid==$mid }
  163. <button type='button' class="btn btn-success btn-sm"
  164. onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';"
  165. >全部文档</button>
  166. {else}
  167. <button type='button' class="btn btn-success btn-sm"
  168. onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';"
  169. >我的文档</button>
  170. {/dede:if}
  171. <button type='button' class="btn btn-success btn-sm" onClick="location='catalog_main.php';"
  172. >栏目管理</button>
  173. <button type='button' class="btn btn-success btn-sm" name='bb1'
  174. onClick="location='makehtml_list.php?cid={dede:global.cid/}';"
  175. >更新列表</button>
  176. <button type='button' class="btn btn-success btn-sm" name='bb2'
  177. onClick="location='makehtml_archives.php?cid={dede:global.cid/}';"
  178. >更新文档</button>
  179. <?php echo $CheckUserSend; ?>
  180. </td>
  181. </tr>
  182. </table>
  183. <table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center" class="mt-3">
  184. <tr>
  185. <td align='center' valign='top'>
  186. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  187. <tr bgcolor="#FFFFFF">
  188. <td height="4"></td>
  189. </tr>
  190. </table>
  191. <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered">
  192. <tr bgcolor="#E7E7E7">
  193. <td height="24" colspan="9" background="images/tbg.gif" style="padding-left:10px;">
  194. {dede:global.positionname/}文档列表 &nbsp;(使用鼠标右键进行常用操作)
  195. </td>
  196. </tr>
  197. <form name="form2">
  198. <tr align="center" bgcolor="#FBFCE2" height="25">
  199. <td width="6%">ID</td>
  200. <td width="6%">选择</td>
  201. <td width="26%">文章标题</td>
  202. <td width="11%">更新时间</td>
  203. <td width="11%">类目</td>
  204. <td width="10%">权限</td>
  205. <td width="8%">点击</td>
  206. <td width="10%">发布人</td>
  207. <td width="10%">操作</td>
  208. </tr>
  209. {dede:datalist}
  210. <tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  211. onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
  212. <td>{dede:field.id/}</td>
  213. <td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.aid/}" class="np">
  214. </td>
  215. <td align='left'>
  216. <a href='archives_do.php?aid={dede:field.aid/}&dopost=editArchives'
  217. oncontextmenu="ShowMenu(event,this,{dede:field.aid/},'{dede:field.title function="
  218. str_replace('\'', '' , @me)" /}')">
  219. {dede:field.title/}{dede:field.flag function='IsCommendArchives(@me)'/}
  220. </a>
  221. </td>
  222. <td>{dede:field.senddate function='GetDateMk(@me)'/}</td>
  223. <td>{dede:field.typename/}</td>
  224. <td>{dede:field.arcrank function="GetRankName(@me)"/}</td>
  225. <td>{dede:field.click/}</td>
  226. <td>{dede:field.mid function=GetMemberName(@me)/}</td>
  227. <td>
  228. <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>
  229. <a href="javascript:viewArc({dede:field.aid/})" class="btn btn-success btn-sm" title="预览"> <i class="fa fa-globe" aria-hidden="true"></i></a>
  230. </td>
  231. </tr>
  232. {/dede:datalist}
  233. <tr bgcolor="#ffffff">
  234. <td height="24" colspan="9">
  235. &nbsp;
  236. <a class="btn btn-success btn-sm" href="javascript:selAll()" class="coolbg">全选</a>
  237. <a class="btn btn-success btn-sm" href="javascript:noSelAll()" class="coolbg">取消</a>
  238. <a class="btn btn-success btn-sm" href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
  239. <a class="btn btn-success btn-sm" href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
  240. <a class="btn btn-success btn-sm" href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
  241. <a class="btn btn-success btn-sm" href="javascript:;"
  242. onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)"
  243. class="coolbg">&nbsp;移动&nbsp;</a>
  244. <a class="btn btn-success btn-sm" href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
  245. <?php
  246. if(!empty($f)) {
  247. ?>
  248. <a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a>
  249. <?php
  250. }
  251. ?>
  252. </td>
  253. </tr>
  254. </form>
  255. <tr align="right" bgcolor="#F9FCEF">
  256. <td height="20" colspan="9" align="center">
  257. {dede:pagelist listsize=3/}
  258. </td>
  259. </tr>
  260. </table>
  261. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  262. <tr>
  263. <td height="4"></td>
  264. </tr>
  265. <tr bgcolor="#FFFFFF">
  266. <td height="26">
  267. <table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' class="table table-bordered">
  268. <tr bgcolor='#F7F7F7'>
  269. <form name='form3' action='content_sg_list.php' method='get'>
  270. <input type='hidden' name='dopost' value='listArchives'>
  271. <td>
  272. <table width='600' border='0' cellpadding='0' cellspacing='0' class="table-borderless">
  273. <tr>
  274. <td width='160' align='center'>请选择类目:</td>
  275. <td width='160'>
  276. <select name='cid' style='width:150'>
  277. <option value='0'>选择分类...</option>
  278. {dede:global.optionarr/}
  279. </select>
  280. </td>
  281. <td width='100'>
  282. 关键字:
  283. </td>
  284. <td width='160'>
  285. <input type='text' name='keyword' value='{dede:global.keyword/}'
  286. style='width:150'>
  287. </td>
  288. <td width='100'>
  289. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  290. </td>
  291. </tr>
  292. </table>
  293. </td>
  294. </form>
  295. </tr>
  296. </table>
  297. </td>
  298. </tr>
  299. <tr>
  300. <td colspan="2" height="4"></td>
  301. </tr>
  302. </table>
  303. </td>
  304. </tr>
  305. </table>
  306. </body>
  307. </html>