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

181 lines
7.5KB

  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/global.js"></script>
  8. <script language="javascript" src="js/context_menu.js"></script>
  9. <script language="javascript" src="js/ieemu.js"></script>
  10. <script language="javascript" src="js/dialog.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. $DE('img'+tid).src = 'images/dedecontract.gif';
  17. var myajax = new DedeAjax($DE(ctid));
  18. myajax.SendGet('catalog_do.php?dopost=GetSunLists&cid='+tid);
  19. }
  20. else{
  21. showHide(ctid,tid);
  22. }
  23. }
  24. function showHide(objname,tid)
  25. {
  26. if($DE(objname).style.display=="none")
  27. {
  28. $DE('img'+tid).src = 'images/dedecontract.gif';
  29. $DE(objname).style.display = BROWSER.firefox? "" : "block";
  30. } else {
  31. $DE('img'+tid).src = 'images/dedeexplode.gif';
  32. $DE(objname).style.display="none";
  33. }
  34. }
  35. if(moz) {
  36. extendEventObject();
  37. extendElementModel();
  38. emulateAttachEvent();
  39. }
  40. //普通栏目
  41. function CommonMenu(eobj,obj,tid,tname)
  42. {
  43. var popupoptions
  44. popupoptions = [
  45. new ContextItem("增加内容",function(){location="catalog_do.php?cid="+tid+"&dopost=addArchives";}),
  46. new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
  47. new ContextSeperator(),
  48. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  49. new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
  50. new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
  51. new ContextSeperator(),
  52. new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
  53. new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
  54. new ContextSeperator(),
  55. new ContextItem("合并栏目",function(){location='catalog_do.php?dopost=unitCatalog&typeid='+tid}),
  56. new ContextItem("移动栏目",function(){location='catalog_do.php?dopost=moveCatalog&typeid='+tid}),
  57. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  58. new ContextSeperator(),
  59. new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  60. new ContextItem("关闭菜单(<u>C</u>)",function(){})
  61. ]
  62. ContextMenu.display(eobj,popupoptions)
  63. }
  64. //封面模板
  65. function CommonMenuPart(eobj,obj,tid,tname)
  66. {
  67. var popupoptions
  68. popupoptions = [
  69. new ContextItem("管理内容",function(){location="catalog_do.php?cid="+tid+"&dopost=listArchives";}),
  70. new ContextSeperator(),
  71. new ContextItem("预览分类",function(){ window.open("<?php echo $cfg_phpurl; ?>/list.php?tid="+tid); }),
  72. new ContextItem("更新HTML",function(){ location="makehtml_list.php?cid="+tid; }),
  73. new ContextItem("获取JS文件",function(){ location="catalog_do.php?cid="+tid+"&dopost=GetJs"; }),
  74. new ContextSeperator(),
  75. new ContextItem("增加子类",function(){location="catalog_add.php?id="+tid;}),
  76. new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
  77. new ContextSeperator(),
  78. new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
  79. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  80. new ContextSeperator(),
  81. new ContextItem("向上排前一级",function(){ location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  82. new ContextItem("关闭菜单(<u>C</u>)",function(){})
  83. ]
  84. ContextMenu.display(eobj,popupoptions)
  85. }
  86. //跳转栏目
  87. function SingleMenu(eobj,obj,tid,tname)
  88. {
  89. var popupoptions
  90. popupoptions = [
  91. new ContextItem("更改栏目",function(){location="catalog_edit.php?id="+tid;}),
  92. new ContextSeperator(),
  93. new ContextItem("移动栏目",function(){location='catalog_move.php?job=movelist&typeid='+tid}),
  94. new ContextItem("删除栏目",function(){location="catalog_del.php?id="+tid+"&typeoldname="+tname;}),
  95. new ContextSeperator(),
  96. new ContextItem("向上排前一级",function(){ window.location="catalog_do.php?cid="+tid+"&dopost=upRank"; }),
  97. new ContextItem("关闭菜单(<u>C</u>)",function(){})
  98. ]
  99. ContextMenu.display(eobj,popupoptions)
  100. }
  101. </script>
  102. <style>
  103. .coolbg2 {
  104. border: 1px solid #000000;
  105. background-color: #F2F5E9;
  106. height:18px
  107. }
  108. .coolbt2 {
  109. border-left: 2px solid #EFEFEF;
  110. border-top: 2px solid #EFEFEF;
  111. border-right: 2px solid #ACACAC;
  112. border-bottom: 2px solid #ACACAC;
  113. background-color: #F7FCDA
  114. }
  115. .nbline {border-bottom: 1px solid #d6d6d6; background-color:#FFFFFF; }
  116. .bline2 {border-bottom: 1px solid #d6d6d6; background-color:#F9FCEF; }
  117. </style>
  118. </head>
  119. <body background='images/allbg.gif' leftmargin='8' topmargin='8' onLoad="ContextMenu.intializeContextMenu()">
  120. <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center">
  121. <tr>
  122. <td height="28" background='images/tbg.gif' style="padding-left:10px;">
  123. <div style="float:left">
  124. <strong>网站栏目管理 </strong>
  125. </div>
  126. <div style="float:right;padding-right:6px;">
  127. <a href='catalog_add.php?listtype=all' class='np coolbg'>增加顶级栏目</a>
  128. <a href='catalog_add.php?dopost=quick' class='np coolbg'>批量增加栏目</a>
  129. <a href="catalog_do.php?dopost=upcatcache" class='np coolbg'>更新栏目缓存</a>
  130. <a href="makehtml_list.php" class='np coolbg'>更新栏目HTML</a>
  131. </a>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td height="28" bgcolor="#ffffff">
  136. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  137. <tr>
  138. <td width="51%">提示:可使用右键菜单进行操作。</td>
  139. <td width="49%" align="right">
  140. <?php if(!isset($exallct)) { ?>
  141. <a href='catalog_main.php?exallct=all'>[展开全部]</a>
  142. <?php }else{ ?>
  143. <a href='catalog_main.php'>[普通模式]</a>
  144. <?php } ?>
  145. </td>
  146. </tr>
  147. </table>
  148. </td>
  149. </tr>
  150. <form name='form1' method='post' action='catalog_do.php?dopost=upRankAll'>
  151. <tr>
  152. <td height="120" bgcolor="#FFFFFF" valign="top">
  153. <?php
  154. if(empty($opendir)) $opendir=-1;
  155. if($userChannel>0) $opendir=$userChannel;
  156. $tu = new TypeUnit();
  157. $tu->ListAllType($userChannel,$opendir);
  158. ?>
  159. <br/>
  160. </td>
  161. </tr>
  162. </form>
  163. <tr>
  164. <td height="36" bgcolor="#FFFFFF" align="center">
  165. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  166. <tr>
  167. <td align="right">
  168. <input type="button" name="sb1" value="更新排序" style="width:70px" class="coolbt" onClick="document.form1.submit();" />
  169. <input type="button" name="sb4" value="获取JS" style="width:70px" class="coolbt" onClick="location='makehtml_js.php';" />
  170. <input type="button" name="sb2" value="更新栏目HTML" style="width:90px" class="coolbt" onClick="location='makehtml_list.php';" />
  171. <input type="button" name="sb3" value="更新文档HTML" style="width:90px" class="coolbt" onClick="location='makehtml_archives.php';" />
  172. </td>
  173. </tr>
  174. </table>
  175. </td>
  176. </tr>
  177. </table>
  178. </body>
  179. </html>