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

76 lines
2.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>栏目管理</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/webajax.js"></script>
  11. <script src="js/global.js"></script>
  12. <script>
  13. function LoadSuns(ctid, tid) {
  14. if ($DE(ctid).innerHTML.length < 10) {
  15. $DE('img' + tid).className = 'fa fa-minus-square-o';
  16. fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
  17. $DE(ctid).innerHTML = d;
  18. });
  19. } else {
  20. showHide(ctid, tid);
  21. }
  22. }
  23. function showHide(objname, tid) {
  24. if ($DE(objname).style.display == "none") {
  25. $DE('img' + tid).className = 'fa fa-minus-square-o';
  26. $DE(objname).style.display = BROWSER.firefox ? "" : "block";
  27. } else {
  28. $DE('img' + tid).className = 'fa fa-plus-square-o';
  29. $DE(objname).style.display = "none";
  30. }
  31. }
  32. </script>
  33. </head>
  34. <body>
  35. <table cellpadding="3" cellspacing="1" align="center" class="maintable my-3">
  36. <tr>
  37. <td bgcolor="#f5f5f5" style="border-bottom:1px solid #dee2e6">
  38. <table cellspacing="0" cellpadding="0" class="table table-borderless w-100">
  39. <tr>
  40. <td width="30%">网站栏目管理</td>
  41. <td width="70%" align="right">
  42. <a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a>
  43. <a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量添加栏目</a>
  44. <a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a>
  45. <?php if (!isset($exallct)) {?>
  46. <a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
  47. <?php } else {?>
  48. <a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
  49. <?php }?>
  50. </td>
  51. </tr>
  52. </table>
  53. </td>
  54. </tr>
  55. <form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
  56. <tr>
  57. <td>
  58. <?php
  59. if (empty($opendir)) $opendir=-1;
  60. if ($userChannel>0) $opendir=$userChannel;
  61. $tu = new TypeUnit();
  62. $tu->ListAllType($userChannel,$opendir);
  63. ?>
  64. </td>
  65. </tr>
  66. </form>
  67. <tr>
  68. <td bgcolor="#f5f5f5" align="right" style="border-top:1px solid #dee2e6">
  69. <button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目</button>
  70. <button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档</button>
  71. <button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button>
  72. </td>
  73. </tr>
  74. </table>
  75. </body>
  76. </html>