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

201 lines
8.1KB

  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 href="css/base.css" rel="stylesheet" type="text/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/js/dedeajax2.js"></script>
  10. <script language="javascript">
  11. function LoadSuns(ctid,tid)
  12. {
  13. if($DE(ctid).innerHTML.length < 10){
  14. var myajax = new DedeAjax($DE(ctid),true,true,'','x','...');
  15. myajax.SendGet('catalog_do.php?dopost=GetSunListsMenu&cid='+tid);
  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. .nbt{
  111. font:12px 宋体; padding: 1px 1px 0 1px ;
  112. vertical-align:middle ;
  113. margin:2px 0 2px 0;
  114. border-left:1px solid #DADF9D;
  115. border-top:1px solid #DADF9D;
  116. border-right:1px solid #666666;
  117. border-bottom:1px solid #666666;
  118. background:#eff6b6; height:21px ;
  119. float:left;
  120. margin-left:3px;
  121. }
  122. div,dd{ margin:0px; padding:0px }
  123. .dlf { margin-right:3px; margin-left:6px; margin-top:2px; float:left }
  124. .dlr { float:left }
  125. .topcc { margin-top:5px }
  126. .suncc { margin-bottom:3px }
  127. dl { clear:left; margin:0px; padding:0px }
  128. .sunct{ }
  129. #items1
  130. {
  131. border-bottom: 1px solid #74c63f;
  132. border-left: 1px solid #74c63f;
  133. border-right: 1px solid #74c63f;
  134. }
  135. .sunlist { width:100%; padding-left:0px; margin:0px; clear:left }
  136. .tdborder {
  137. border-left: 1px solid #43938B;
  138. border-right: 1px solid #43938B;
  139. border-bottom: 1px solid #43938B;
  140. }
  141. .tdline-left {
  142. border-bottom: 1px solid #656363;
  143. border-left: 1px solid #788C47;
  144. }
  145. .tdline-right {
  146. border-bottom: 1px solid #656363;
  147. border-right: 1px solid #788C47;
  148. }
  149. .tdrl {
  150. border-left: 1px solid #788C47;
  151. border-right: 1px solid #788C47;
  152. }
  153. .top { cursor: pointer; }
  154. body
  155. {
  156. padding:3px 0px 0px 0px;
  157. margin:auto;
  158. text-align:center;
  159. background-color:#9ad075;
  160. }
  161. </style>
  162. <base target="main" />
  163. </head>
  164. <body target="main" onLoad="ContextMenu.intializeContextMenu()">
  165. <form name="formjump" method="post" target="main" action=""></form>
  166. <table width='160' border='0' align='center' cellpadding='0' cellspacing='0'>
  167. <tr>
  168. <td height='32' colspan="2" align='center' style='padding-bottom:3px'>
  169. <form name="form1" target="main" action="public_guide.php"><input type='hidden' name='action' value='edit' /></form>
  170. <form name="form2" target="main" action="catalog_main.php"></form>
  171. <form name="form3" target="menu" action="index_menu.php"></form>
  172. <form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick" /></form>
  173. <form name="form6" target="main" action="content_list.php"></form>
  174. <input type="button" name="sb5" value="批量增加栏目" class="nbt" style="width:80px" onClick="document.form5.submit();" />
  175. <input type="button" name="sb2" value="栏目管理" class="nbt" style="width:71px" onClick="document.form2.submit();" />
  176. <br />
  177. <input type="button" name="sb3" value="菜单" class="nbt" style="width:36px" onClick="document.form3.submit();" />
  178. <input type="button" name="sb6" value="文档列表" class="nbt" style="width:56px" onClick="document.form6.submit();" />
  179. <input type="button" name="sb1" value="发布向导" class="nbt" style="width:56px" onClick="document.form1.submit();" />
  180. </td>
  181. </tr>
  182. <tr>
  183. <td width="23%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #74c63f;'>
  184. <a href="#" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="24" border="0" /></a>
  185. </td>
  186. <td width="77%" background='images/mtbg1.gif' style='border-right: 1px solid #74c63f;'>站点目录树</td>
  187. </tr>
  188. <tr>
  189. <td colspan='2' id='items1' align='left' style="background:#ffffff url(images/mmenubg2.gif) no-repeat;padding-left:8px;">
  190. <?php
  191. $tu = new TypeUnit($userChannel);
  192. $tu->ListAllType($userChannel,$opendir);
  193. ?>
  194. </td>
  195. </tr>
  196. </table>
  197. </body>
  198. </html>