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

72 lines
2.5KB

  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. <style>.admin-td{border-bottom:1px solid #dee2e6!important}</style>
  11. <script src="../static/web/js/jquery.min.js"></script>
  12. <script src="../static/web/js/webajax.js"></script>
  13. <script src="js/global.js"></script>
  14. </head>
  15. <body>
  16. <table align="center" class="table maintable my-3">
  17. <tr>
  18. <td>
  19. <a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">添加栏目</a>
  20. <a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量添加</a>
  21. <a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新缓存</a>
  22. <button type="button" name="sb1" class="btn btn-success btn-sm" onclick="document.form1.submit();">更新排序</button>
  23. </td>
  24. <td align="right">
  25. <?php if (!isset($exallct)) {?>
  26. <a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a>
  27. <?php } else {?>
  28. <a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a>
  29. <?php }?>
  30. </td>
  31. </tr>
  32. </table>
  33. <form name="form1" method="post" action="catalog_do.php?dopost=upRankAll">
  34. <table align="center" class="maintable mb-3">
  35. <tr>
  36. <td bgcolor="#f5f5f5" class="admin-td">网站栏目管理</td>
  37. </tr>
  38. <tr>
  39. <td>
  40. <?php
  41. if (empty($opendir)) $opendir=-1;
  42. if ($userChannel>0) $opendir=$userChannel;
  43. $tu = new TypeUnit();
  44. $tu->ListAllType($userChannel,$opendir);
  45. ?>
  46. </td>
  47. </tr>
  48. </table>
  49. </form>
  50. <script>
  51. function LoadSuns(ctid, tid) {
  52. if ($DE(ctid).innerHTML.length < 10) {
  53. $DE('img' + tid).className = 'fa fa-minus-square';
  54. fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => {
  55. $DE(ctid).innerHTML = d;
  56. });
  57. } else {
  58. showHide(ctid, tid);
  59. }
  60. }
  61. function showHide(objname, tid) {
  62. if ($DE(objname).style.display == "none") {
  63. $DE('img' + tid).className = 'fa fa-minus-square';
  64. $DE(objname).style.display = BROWSER.firefox ? "" : "block";
  65. } else {
  66. $DE('img' + tid).className = 'fa fa-plus-square';
  67. $DE(objname).style.display = "none";
  68. }
  69. }
  70. </script>
  71. </body>
  72. </html>