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

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