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

203 lines
8.2KB

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