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

214 lines
7.4KB

  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="js/global.js"></script>
  11. <script src="js/context_menu.js"></script>
  12. <script src="js/ieemu.js"></script>
  13. <script src="js/dialog.js"></script>
  14. <script src="../static/web/js/webajax.js"></script>
  15. <script>
  16. function LoadSuns(ctid, tid) {
  17. if ($DE(ctid).innerHTML.length < 10) {
  18. $DE('img' + tid).className = 'fa fa-minus-square-o';
  19. fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
  20. $DE(ctid).innerHTML = d;
  21. });
  22. } else {
  23. showHide(ctid, tid);
  24. }
  25. }
  26. function showHide(objname, tid) {
  27. if ($DE(objname).style.display == "none") {
  28. $DE('img' + tid).className = 'fa fa-minus-square-o';
  29. $DE(objname).style.display = BROWSER.firefox ? "" : "block";
  30. } else {
  31. $DE('img' + tid).className = 'fa fa-plus-square-o';
  32. $DE(objname).style.display = "none";
  33. }
  34. }
  35. if (moz) {
  36. extendEventObject();
  37. extendElementModel();
  38. emulateAttachEvent();
  39. }
  40. //普通栏目
  41. function CommonMenu(eobj, obj, tid, tname) {
  42. var popupoptions
  43. popupoptions = [
  44. new ContextItem("增加内容", function() {
  45. location = "catalog_do.php?cid=" + tid + "&dopost=addArchives";
  46. }),
  47. new ContextItem("管理内容", function() {
  48. location = "catalog_do.php?cid=" + tid + "&dopost=listArchives";
  49. }),
  50. new ContextSeperator(),
  51. new ContextItem("预览分类", function() {
  52. window.open("<?php echo $cfg_phpurl; ?>/list.php?tid=" + tid);
  53. }),
  54. new ContextItem("更新HTML", function() {
  55. location = "makehtml_list.php?cid=" + tid;
  56. }),
  57. new ContextItem("获取JS文件", function() {
  58. location = "catalog_do.php?cid=" + tid + "&dopost=GetJs";
  59. }),
  60. new ContextSeperator(),
  61. new ContextItem("增加子类", function() {
  62. location = "catalog_add.php?id=" + tid;
  63. }),
  64. new ContextItem("修改栏目", function() {
  65. location = "catalog_edit.php?id=" + tid;
  66. }),
  67. new ContextSeperator(),
  68. new ContextItem("合并栏目", function() {
  69. location = 'catalog_do.php?dopost=unitCatalog&typeid=' + tid
  70. }),
  71. new ContextItem("移动栏目", function() {
  72. location = 'catalog_do.php?dopost=moveCatalog&typeid=' + tid
  73. }),
  74. new ContextItem("删除栏目", function() {
  75. location = "catalog_del.php?id=" + tid + "&typeoldname=" + tname;
  76. }),
  77. new ContextSeperator(),
  78. new ContextItem("向上排前一级", function() {
  79. location = "catalog_do.php?cid=" + tid + "&dopost=upRank";
  80. }),
  81. new ContextItem("关闭菜单(C)", function() {})
  82. ]
  83. ContextMenu.display(eobj, popupoptions)
  84. }
  85. //封面模板
  86. function CommonMenuPart(eobj, obj, tid, tname) {
  87. var popupoptions
  88. popupoptions = [
  89. new ContextItem("管理内容", function() {
  90. location = "catalog_do.php?cid=" + tid + "&dopost=listArchives";
  91. }),
  92. new ContextSeperator(),
  93. new ContextItem("预览分类", function() {
  94. window.open("<?php echo $cfg_phpurl; ?>/list.php?tid=" + tid);
  95. }),
  96. new ContextItem("更新HTML", function() {
  97. location = "makehtml_list.php?cid=" + tid;
  98. }),
  99. new ContextItem("获取JS文件", function() {
  100. location = "catalog_do.php?cid=" + tid + "&dopost=GetJs";
  101. }),
  102. new ContextSeperator(),
  103. new ContextItem("增加子类", function() {
  104. location = "catalog_add.php?id=" + tid;
  105. }),
  106. new ContextItem("修改栏目", function() {
  107. location = "catalog_edit.php?id=" + tid;
  108. }),
  109. new ContextSeperator(),
  110. new ContextItem("移动栏目", function() {
  111. location = 'catalog_move.php?job=movelist&typeid=' + tid
  112. }),
  113. new ContextItem("删除栏目", function() {
  114. location = "catalog_del.php?id=" + tid + "&typeoldname=" + tname;
  115. }),
  116. new ContextSeperator(),
  117. new ContextItem("向上排前一级", function() {
  118. location = "catalog_do.php?cid=" + tid + "&dopost=upRank";
  119. }),
  120. new ContextItem("关闭菜单(C)", function() {})
  121. ]
  122. ContextMenu.display(eobj, popupoptions)
  123. }
  124. //跳转栏目
  125. function SingleMenu(eobj, obj, tid, tname) {
  126. var popupoptions
  127. popupoptions = [
  128. new ContextItem("修改栏目", function() {
  129. location = "catalog_edit.php?id=" + tid;
  130. }),
  131. new ContextSeperator(),
  132. new ContextItem("移动栏目", function() {
  133. location = 'catalog_move.php?job=movelist&typeid=' + tid
  134. }),
  135. new ContextItem("删除栏目", function() {
  136. location = "catalog_del.php?id=" + tid + "&typeoldname=" + tname;
  137. }),
  138. new ContextSeperator(),
  139. new ContextItem("向上排前一级", function() {
  140. window.location = "catalog_do.php?cid=" + tid + "&dopost=upRank";
  141. }),
  142. new ContextItem("关闭菜单(C)", function() {})
  143. ]
  144. ContextMenu.display(eobj, popupoptions)
  145. }
  146. </script>
  147. <style>
  148. td,
  149. th {
  150. padding: .375rem
  151. }
  152. .bline2,
  153. .nbline {
  154. border-bottom: 1px solid #eee
  155. }
  156. .coolbg2,
  157. .coolbt2,
  158. .maintable {
  159. border: 1px solid #dee2e6
  160. }
  161. .fa {
  162. color: #424b51
  163. }
  164. </style>
  165. </head>
  166. <body onLoad="ContextMenu.intializeContextMenu()">
  167. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="maintable mt-3 mb-3">
  168. <tr>
  169. <td height="26" style="background:#f8f8f8;border: 1px solid #dee2e6">
  170. <span style="float:left;padding-left:10px;line-height:26px" class="py-3">网站栏目管理</span>
  171. <span style="float:right;padding-right:10px" class="py-3">
  172. <a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a>
  173. <a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量增加栏目</a>
  174. <a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a>
  175. </span>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td height="26">
  180. <table width="100%" cellspacing="0" cellpadding="0">
  181. <tr>
  182. <td style="padding-left:10px">
  183. <?php if(!isset($exallct)) { ?>
  184. <a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
  185. <?php } else { ?>
  186. <a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
  187. <?php } ?>
  188. </td>
  189. </tr>
  190. </table>
  191. </td>
  192. </tr>
  193. <form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
  194. <tr>
  195. <td>
  196. <?php
  197. if(empty($opendir)) $opendir=-1;
  198. if($userChannel>0) $opendir=$userChannel;
  199. $tu = new TypeUnit();
  200. $tu->ListAllType($userChannel,$opendir);
  201. ?>
  202. </td>
  203. </tr>
  204. </form>
  205. <tr>
  206. <td align="right" class="py-3" style="padding-right:10px;background:#f8f8f8;border-top:1px solid #dee2e6">
  207. <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目</button>
  208. <button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档</button>
  209. <button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button>
  210. </td>
  211. </tr>
  212. </table>
  213. </body>
  214. </html>