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

41 lines
1.2KB

  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/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <link rel="stylesheet" href="css/menu.min.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. </head>
  12. <body class="menu-box">
  13. <ul id="menu" class="menu">
  14. <?php
  15. $openitem=100;
  16. GetMenus($cuserLogin->getUserRank(),'main');
  17. ?>
  18. </ul>
  19. <script>
  20. $(function() {
  21. var menu = function(el, multiple) {
  22. this.el = el || {};
  23. this.multiple = multiple || false;
  24. var links = this.el.find('.link');
  25. links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
  26. }
  27. menu.prototype.dropdown = function(e) {
  28. var $el = e.data.el;
  29. $this = $(this),
  30. $next = $this.next();
  31. $next.slideToggle();
  32. $this.parent().toggleClass('open');
  33. if (!e.data.multiple) {
  34. $el.find('.submenu').not($next).slideUp().parent().removeClass('open');
  35. };
  36. }
  37. var menu = new menu($('#menu'), false);
  38. });
  39. </script>
  40. </body>
  41. </html>