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

107 lines
3.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>栏目管理</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="js/global.js"></script>
  11. <script src="js/ieemu.js"></script>
  12. <script src="js/dialog.js"></script>
  13. <script src="../static/web/js/webajax.js"></script>
  14. <script>
  15. function LoadSuns(ctid, tid) {
  16. if ($DE(ctid).innerHTML.length < 10) {
  17. $DE('img' + tid).className = 'fa fa-minus-square-o';
  18. fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
  19. $DE(ctid).innerHTML = d;
  20. });
  21. } else {
  22. showHide(ctid, tid);
  23. }
  24. }
  25. function showHide(objname, tid) {
  26. if ($DE(objname).style.display == "none") {
  27. $DE('img' + tid).className = 'fa fa-minus-square-o';
  28. $DE(objname).style.display = BROWSER.firefox ? "" : "block";
  29. } else {
  30. $DE('img' + tid).className = 'fa fa-plus-square-o';
  31. $DE(objname).style.display = "none";
  32. }
  33. }
  34. if (moz) {
  35. extendEventObject();
  36. extendElementModel();
  37. emulateAttachEvent();
  38. }
  39. </script>
  40. <style>
  41. td,
  42. th {
  43. padding: .375rem
  44. }
  45. .bline2,
  46. .nbline {
  47. border-bottom: 1px solid #eee
  48. }
  49. .coolbg2,
  50. .coolbt2,
  51. .maintable {
  52. border: 1px solid #dee2e6
  53. }
  54. .fa {
  55. color: #424b51
  56. }
  57. </style>
  58. </head>
  59. <body>
  60. <table width="98%" cellpadding="3" cellspacing="1" align="center" class="maintable mt-3 mb-3">
  61. <tr>
  62. <td style="background:#f8f8f8;border: 1px solid #dee2e6">
  63. <span style="float:left;padding-left:10px;line-height:26px" class="py-3">网站栏目管理</span>
  64. <span style="float:right;padding-right:10px" class="py-3">
  65. <a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a>
  66. <a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量增加栏目</a>
  67. <a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a>
  68. </span>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td>
  73. <table width="100%" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td>
  76. <?php if(!isset($exallct)) { ?>
  77. <a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
  78. <?php } else { ?>
  79. <a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
  80. <?php } ?>
  81. </td>
  82. </tr>
  83. </table>
  84. </td>
  85. </tr>
  86. <form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
  87. <tr>
  88. <td>
  89. <?php
  90. if(empty($opendir)) $opendir=-1;
  91. if($userChannel>0) $opendir=$userChannel;
  92. $tu = new TypeUnit();
  93. $tu->ListAllType($userChannel,$opendir);
  94. ?>
  95. </td>
  96. </tr>
  97. </form>
  98. <tr>
  99. <td align="right" class="py-3" style="padding-right:10px;background:#f8f8f8;border-top:1px solid #dee2e6">
  100. <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目</button>
  101. <button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档</button>
  102. <button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button>
  103. </td>
  104. </tr>
  105. </table>
  106. </body>
  107. </html>