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

151 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/context_menu.js"></script>
  10. <script src="js/ieemu.js"></script>
  11. <script src="../static/web/js/webajax.js"></script>
  12. <script>
  13. function LoadSuns(ctid,tid)
  14. {
  15. if($DE(ctid).innerHTML.length < 10){
  16. fetch('catalog_do.php?dopost=GetSunListsMenu&cid='+tid).then(resp=>resp.text()).then((d)=>{
  17. $DE(ctid).innerHTML = d;
  18. });
  19. }
  20. else{ if(document.all) showHide(ctid); }
  21. }
  22. function showHide(objname)
  23. {
  24. if($DE(objname).style.display=="none") $DE(objname).style.display = "revert";
  25. else $DE(objname).style.display="none";
  26. return false;
  27. }
  28. if(moz) {
  29. extendEventObject();
  30. extendElementModel();
  31. emulateAttachEvent();
  32. }
  33. function JumpOneUrl(surl) {
  34. document.formjump.action=surl;
  35. document.formjump.submit();
  36. }
  37. //普通栏目
  38. function CommonMenu(eobj,obj,tid,tname)
  39. {
  40. var popupoptions
  41. popupoptions = [
  42. new ContextItem("增加内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=addArchives"); }),
  43. new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
  44. new ContextSeperator(),
  45. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  46. new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
  47. new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
  48. new ContextSeperator(),
  49. new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
  50. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  51. new ContextSeperator(),
  52. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  53. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  54. new ContextSeperator(),
  55. new ContextItem("关闭菜单",function(){})
  56. ]
  57. ContextMenu.display(eobj,popupoptions)
  58. }
  59. //封面模板
  60. function CommonMenuPart(eobj,obj,tid,tname)
  61. {
  62. var popupoptions
  63. popupoptions = [
  64. new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
  65. new ContextSeperator(),
  66. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  67. new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
  68. new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
  69. new ContextSeperator(),
  70. new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
  71. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  72. new ContextSeperator(),
  73. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  74. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  75. new ContextSeperator(),
  76. new ContextItem("向上排前一级",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=upRank"); }),
  77. new ContextSeperator(),
  78. new ContextItem("关闭菜单",function(){})
  79. ]
  80. ContextMenu.display(eobj,popupoptions)
  81. }
  82. //单个页面
  83. function SingleMenu(eobj,obj,tid,tname)
  84. {
  85. var popupoptions
  86. popupoptions = [
  87. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  88. new ContextSeperator(),
  89. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  90. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  91. new ContextSeperator(),
  92. new ContextItem("关闭菜单",function(){})
  93. ]
  94. ContextMenu.display(eobj,popupoptions)
  95. }
  96. //跳转网址
  97. function JumpMenu(eobj,obj,tid,tname)
  98. {
  99. var popupoptions
  100. popupoptions = [
  101. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  102. new ContextSeperator(),
  103. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  104. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  105. new ContextSeperator(),
  106. new ContextItem("关闭菜单",function(){})
  107. ]
  108. ContextMenu.display(eobj,popupoptions)
  109. }
  110. </script>
  111. <style>
  112. body{margin:0;background:#f8f8f8}
  113. dl{clear:left}
  114. .dlf{float:left;margin-top:12px;margin-left:10px}
  115. .dlr{float:left;margin-top:10px}
  116. .sunlist{display:inline-block;margin-top:10px;width:100%}
  117. </style>
  118. <base target="main">
  119. </head>
  120. <body onLoad="ContextMenu.intializeContextMenu()">
  121. <table width="100%" cellpadding="0" cellspacing="0">
  122. <tr>
  123. <td height="36" colspan="2" style="padding:10px">
  124. <form name="form1" target="main" action="public_guide.php"><input type="hidden" name="action" value="edit"></form>
  125. <form name="form2" target="main" action="catalog_main.php"></form>
  126. <form name="form3" target="menu" action="index_menu.php"></form>
  127. <form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick"></form>
  128. <form name="form6" target="main" action="content_list.php"></form>
  129. <button type="button" name="sb5" class="btn btn-success btn-sm" onClick="document.form5.submit();">批量增加栏目</button>
  130. <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="document.form2.submit();">栏目管理</button>
  131. <br>
  132. <button type="button" name="sb3" class="btn btn-success btn-sm mt-2" onClick="document.form3.submit();">菜单</button>
  133. <button type="button" name="sb6" class="btn btn-success btn-sm mt-2" onClick="document.form6.submit();">文档列表</button>
  134. <button type="button" name="sb1" class="btn btn-success btn-sm mt-2" onClick="document.form1.submit();">发布向导</button>
  135. </td>
  136. </tr>
  137. <tr>
  138. <td width="20%" align="center" background="../static/web/img/mtbg1.gif"><a href="javascript:;" onClick="showHide('items1')" target="_self"><img src="../static/web/img/mtimg1.gif"></a></td>
  139. <td width="80%" background="../static/web/img/mtbg1.gif">站点目录树</td>
  140. </tr>
  141. <tr>
  142. <td colspan="2" id="items1" align="center">
  143. <?php
  144. $tu = new TypeUnit($userChannel);
  145. $tu->ListAllType($userChannel,$opendir);
  146. ?>
  147. </td>
  148. </tr>
  149. </table>
  150. </body>
  151. </html>