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

166 lines
7.4KB

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