menu.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. # 项目列表中的管理选项:
  3. # 数据库基本配置与数据管理、模板列表与生成、项目基本配置与管理等
  4. # 这里面很多都是demo
  5. $view
  6. ->fetch('#dever-name', 'manage/auth.config#title')
  7. # 首页的链接
  8. ->fetch('#console-url@lay-href', 'manage/menu.link#console')
  9. # 项目列表
  10. ->fetch('#LAY-system-side-menu', 'manage/menu.getHtml')
  11. /*
  12. ->loop
  13. (
  14. '#LAY-system-side-menu li',
  15. 'manage/menu.all',
  16. array
  17. (
  18. 'a' => array
  19. (
  20. 'data-target' => '.<{$v.key}>-menu',
  21. 'class++' => '<{if(Dever::input("menu") == $v.key || !Dever::input("menu")):?>layui-nav-itemed<{endif;}>',
  22. 'lay-tips' => '<{$v.name}>',
  23. ),
  24. 'self' => array
  25. (
  26. 'class++' => '<{if(Dever::input("menu") == $v.key || (!Dever::input("menu_id") && $k == "console")):?> layui-nav-itemed<{endif;}>',
  27. ),
  28. 'cite' => array
  29. (
  30. 'html' => '<{$v.name}>',
  31. ),
  32. 'i' => array
  33. (
  34. 'class' => '<{$v.icon ? "layui-icon " . $v.icon : "layui-icon layui-icon-home"}>',
  35. ),
  36. 'dl' => array
  37. (
  38. 'id' => '<{$v.key}>-menu',
  39. 'dd|$v.child' => array
  40. (
  41. 'class--' => 'layui-this', //菜单关闭状态
  42. 'class++' => '<{if(Dever::input("menu_id") == $v1.id):?>layui-this<{elseif(!Dever::input("menu_id") && $k1 == "console.index"):}>layui-this<{endif;}>',
  43. 'a' => array
  44. (
  45. 'lay-href' => '<{$v1.link}>',
  46. 'html' => '<{$v1.name}>',
  47. )
  48. ),
  49. ),
  50. )
  51. )
  52. */
  53. # display
  54. ->display();