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

200 line
7.8KB

  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. } else { if(document.all) showHide(ctid); }
  17. }
  18. function showHide(objname)
  19. {
  20. if($DE(objname).style.display=="none") $DE(objname).style.display = "block";
  21. else $DE(objname).style.display="none";
  22. return false;
  23. }
  24. if(moz) {
  25. extendEventObject();
  26. extendElementModel();
  27. emulateAttachEvent();
  28. }
  29. function JumpOneUrl(surl)
  30. {
  31. document.formjump.action=surl;
  32. document.formjump.submit();
  33. }
  34. //普通栏目
  35. function CommonMenu(eobj,obj,tid,tname)
  36. {
  37. var popupoptions
  38. popupoptions = [
  39. new ContextItem("增加内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=addArchives"); }),
  40. new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
  41. new ContextSeperator(),
  42. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  43. new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
  44. new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
  45. new ContextSeperator(),
  46. new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
  47. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  48. new ContextSeperator(),
  49. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  50. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  51. new ContextSeperator(),
  52. new ContextItem("关闭菜单",function(){})
  53. ]
  54. ContextMenu.display(eobj,popupoptions)
  55. }
  56. //封面模板
  57. function CommonMenuPart(eobj,obj,tid,tname)
  58. {
  59. var popupoptions
  60. popupoptions = [
  61. new ContextItem("管理内容",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=listArchives"); }),
  62. new ContextSeperator(),
  63. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  64. new ContextItem("更新HTML",function(){ JumpOneUrl("makehtml_list.php?cid="+tid); }),
  65. new ContextItem("获取JS文件",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=GetJs"); }),
  66. new ContextSeperator(),
  67. new ContextItem("增加子类",function(){ JumpOneUrl("catalog_add.php?id="+tid); }),
  68. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  69. new ContextSeperator(),
  70. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  71. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  72. new ContextSeperator(),
  73. new ContextItem("向上排前一级",function(){ JumpOneUrl("catalog_do.php?cid="+tid+"&dopost=upRank"); }),
  74. new ContextSeperator(),
  75. new ContextItem("关闭菜单",function(){})
  76. ]
  77. ContextMenu.display(eobj,popupoptions)
  78. }
  79. //单个页面
  80. function SingleMenu(eobj,obj,tid,tname)
  81. {
  82. var popupoptions
  83. popupoptions = [
  84. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  85. new ContextSeperator(),
  86. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  87. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  88. new ContextSeperator(),
  89. new ContextItem("关闭菜单",function(){})
  90. ]
  91. ContextMenu.display(eobj,popupoptions)
  92. }
  93. //跳转网址
  94. function JumpMenu(eobj,obj,tid,tname)
  95. {
  96. var popupoptions
  97. popupoptions = [
  98. new ContextItem("修改栏目",function(){ JumpOneUrl("catalog_edit.php?id="+tid); }),
  99. new ContextSeperator(),
  100. new ContextItem("移动栏目",function(){ JumpOneUrl("catalog_move.php?job=movelist&typeid="+tid); }),
  101. new ContextItem("删除栏目",function(){ JumpOneUrl("catalog_del.php?id="+tid+"&typeoldname="+tname); }),
  102. new ContextSeperator(),
  103. new ContextItem("关闭菜单",function(){})
  104. ]
  105. ContextMenu.display(eobj,popupoptions)
  106. }
  107. </script>
  108. <style>
  109. .nbt{
  110. font:12px 宋体; padding: 1px 1px 0 1px ;
  111. vertical-align:middle ;
  112. margin:2px 0 2px 0;
  113. border-left:1px solid #DADF9D;
  114. border-top:1px solid #DADF9D;
  115. border-right:1px solid #666666;
  116. border-bottom:1px solid #666666;
  117. background:#eff6b6; height:21px ;
  118. float:left;
  119. margin-left:3px;
  120. }
  121. div,dd{ margin:0px; padding:0px }
  122. .dlf { margin-right:3px; margin-left:6px; margin-top:2px; float:left }
  123. .dlr { float:left }
  124. .topcc { margin-top:5px }
  125. .suncc { margin-bottom:3px }
  126. dl { clear:left; margin:0px; padding:0px }
  127. .sunct{ }
  128. #items1
  129. {
  130. border-bottom: 1px solid #74c63f;
  131. border-left: 1px solid #74c63f;
  132. border-right: 1px solid #74c63f;
  133. }
  134. .sunlist { width:100%; padding-left:0px; margin:0px; clear:left }
  135. .tdborder {
  136. border-left: 1px solid #43938B;
  137. border-right: 1px solid #43938B;
  138. border-bottom: 1px solid #43938B;
  139. }
  140. .tdline-left {
  141. border-bottom: 1px solid #656363;
  142. border-left: 1px solid #788C47;
  143. }
  144. .tdline-right {
  145. border-bottom: 1px solid #656363;
  146. border-right: 1px solid #788C47;
  147. }
  148. .tdrl {
  149. border-left: 1px solid #788C47;
  150. border-right: 1px solid #788C47;
  151. }
  152. .top { cursor: pointer; }
  153. body
  154. {
  155. padding:3px 0px 0px 0px;
  156. margin:auto;
  157. text-align:center;
  158. background-color:#9ad075;
  159. }
  160. </style>
  161. <base target="main" />
  162. </head>
  163. <body target="main" onLoad="ContextMenu.intializeContextMenu()">
  164. <form name="formjump" method="post" target="main" action=""></form>
  165. <table width='160' border='0' align='center' cellpadding='0' cellspacing='0'>
  166. <tr>
  167. <td height='30' colspan="2" align='center' style='padding-bottom:3px'>
  168. <form name="form1" target="main" action="public_guide.php"><input type='hidden' name='action' value='edit' /></form>
  169. <form name="form2" target="main" action="catalog_main.php"></form>
  170. <form name="form3" target="menu" action="index_menu.php"></form>
  171. <form name="form5" target="main" action="catalog_add.php"><input type="hidden" name="dopost" value="quick" /></form>
  172. <form name="form6" target="main" action="content_list.php"></form>
  173. <input type="button" name="sb5" value="批量增加栏目" class="nbt" style="width:80px" onClick="document.form5.submit();" />
  174. <input type="button" name="sb2" value="栏目管理" class="nbt" style="width:71px" onClick="document.form2.submit();" />
  175. <br>
  176. <input type="button" name="sb3" value="菜单" class="nbt" style="width:36px" onClick="document.form3.submit();" />
  177. <input type="button" name="sb6" value="文档列表" class="nbt" style="width:56px" onClick="document.form6.submit();" />
  178. <input type="button" name="sb1" value="发布向导" class="nbt" style="width:56px" onClick="document.form1.submit();" />
  179. </td>
  180. </tr>
  181. <tr>
  182. <td width="23%" align='center' background='images/mtbg1.gif' style='border-left: 1px solid #74c63f;'>
  183. <a href="javascript:;" onClick="showHide('items1')" target="_self"><img src="images/mtimg1.gif" width="21" height="26" border="0" /></a>
  184. </td>
  185. <td width="77%" background='images/mtbg1.gif' style='border-right: 1px solid #74c63f;'>站点目录树</td>
  186. </tr>
  187. <tr>
  188. <td colspan='2' id='items1' align='left'>
  189. <?php
  190. $tu = new TypeUnit($userChannel);
  191. $tu->ListAllType($userChannel,$opendir);
  192. ?>
  193. </td>
  194. </tr>
  195. </table>
  196. </body>
  197. </html>