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

150 lines
7.1KB

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