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

165 lines
7.6KB

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