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

164 lines
7.0KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <title>栏目管理</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script src="js/global.js"></script>
  10. <script src="js/context_menu.js"></script>
  11. <script src="js/ieemu.js"></script>
  12. <script src="js/dialog.js"></script>
  13. <script src="../static/web/js/webajax.js"></script>
  14. <script>
  15. function LoadSuns(ctid,tid)
  16. {
  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. {
  28. if($DE(objname).style.display=="none")
  29. {
  30. $DE('img'+tid).className = 'fa fa-minus-square-o';
  31. $DE(objname).style.display = BROWSER.firefox? "" : "block";
  32. } else {
  33. $DE('img'+tid).className = 'fa fa-plus-square-o';
  34. $DE(objname).style.display="none";
  35. }
  36. }
  37. if(moz) {
  38. extendEventObject();
  39. extendElementModel();
  40. emulateAttachEvent();
  41. }
  42. //普通栏目
  43. function CommonMenu(eobj,obj,tid,tname)
  44. {
  45. var popupoptions
  46. popupoptions = [
  47. new ContextItem("增加内容",function(){location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
  48. new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
  49. new ContextSeperator(),
  50. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  51. new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
  52. new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
  53. new ContextSeperator(),
  54. new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
  55. new ContextItem("修改栏目",function(){location="catalog_edit.php?id="+tid;}),
  56. new ContextSeperator(),
  57. new ContextItem("合并栏目",function(){location='catalog_do.php?dopost=unitCatalog&typeid='+tid}),
  58. new ContextItem("移动栏目",function(){location='catalog_do.php?dopost=moveCatalog&typeid='+tid}),
  59. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  60. new ContextSeperator(),
  61. new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  62. new ContextItem("关闭菜单(C)",function(){})
  63. ]
  64. ContextMenu.display(eobj,popupoptions)
  65. }
  66. //封面模板
  67. function CommonMenuPart(eobj,obj,tid,tname)
  68. {
  69. var popupoptions
  70. popupoptions = [
  71. new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
  72. new ContextSeperator(),
  73. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  74. new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
  75. new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
  76. new ContextSeperator(),
  77. new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
  78. new ContextItem("修改栏目",function(){location="catalog_edit.php?id="+tid;}),
  79. new ContextSeperator(),
  80. new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
  81. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  82. new ContextSeperator(),
  83. new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  84. new ContextItem("关闭菜单(C)",function(){})
  85. ]
  86. ContextMenu.display(eobj,popupoptions)
  87. }
  88. //跳转栏目
  89. function SingleMenu(eobj,obj,tid,tname)
  90. {
  91. var popupoptions
  92. popupoptions = [
  93. new ContextItem("修改栏目",function(){location="catalog_edit.php?id="+tid;}),
  94. new ContextSeperator(),
  95. new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
  96. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  97. new ContextSeperator(),
  98. new ContextItem("向上排前一级",function(){ window.location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  99. new ContextItem("关闭菜单(C)",function(){})
  100. ]
  101. ContextMenu.display(eobj,popupoptions)
  102. }
  103. </script>
  104. <style>
  105. td,th{padding:.375rem}
  106. .coolbg2{border:1px solid #ccc;background:#F2F5E9;height:18px}
  107. .coolbt2{border-left:2px solid #EFEFEF;border-top:2px solid #EFEFEF;border-right:2px solid #ACACAC;border-bottom:2px solid #ACACAC;background:#F7FCDA}
  108. .bline2{border-bottom:1px solid #eee;background:#f8f8f8}
  109. .nbline{border-bottom:1px solid #eee;background:#ffffff}
  110. .maintable{border:1px solid #DEE2E6}
  111. .fa{color:#424b51}
  112. </style>
  113. </head>
  114. <body onLoad="ContextMenu.intializeContextMenu()">
  115. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="maintable mt-3">
  116. <tr>
  117. <td height="26" style="background:#f8f8f8;border: 1px solid #dee2e6">
  118. <span style="float:left;padding-left:10px;line-height:26px" class="py-3">网站栏目管理</span>
  119. <span style="float:right;padding-right:10px" class="py-3">
  120. <a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a>
  121. <a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量增加栏目</a>
  122. <a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a>
  123. <a href="makehtml_list.php" class="btn btn-success btn-sm">更新栏目</a></a>
  124. </span>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td height="26">
  129. <table width="100%" cellspacing="0" cellpadding="0">
  130. <tr>
  131. <td style="padding-left:10px">
  132. <?php if(!isset($exallct)) { ?>
  133. <a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
  134. <?php } else { ?>
  135. <a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
  136. <?php } ?>
  137. </td>
  138. </tr>
  139. </table>
  140. </td>
  141. </tr>
  142. <form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
  143. <tr>
  144. <td>
  145. <?php
  146. if(empty($opendir)) $opendir=-1;
  147. if($userChannel>0) $opendir=$userChannel;
  148. $tu = new TypeUnit();
  149. $tu->ListAllType($userChannel,$opendir);
  150. ?>
  151. </td>
  152. </tr>
  153. </form>
  154. <tr>
  155. <td align="right" class="py-3" style="padding-right:10px;background:#f8f8f8;border-top:1px solid #dee2e6">
  156. <button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button>
  157. <button type="button" name="sb4" class="btn btn-success btn-sm" onClick="location='makehtml_js.php';">更新脚本</button>
  158. <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目</button>
  159. <button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档</button>
  160. </td>
  161. </tr>
  162. </table>
  163. </body>
  164. </html>