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

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