nav.php 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 头部
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('#nav@style', '<{Dever::load("manage/auth.loading") ? "display:none;" : ""}>')
  9. # 定义名称
  10. ->fetch('#maze-name', 'manage/auth.config#title')
  11. ->fetch('#manage-name', 'manage/auth.info#username')
  12. ->fetch('#logout-url@href', 'manage/menu.link#logout')
  13. //->fetch('#edit@href', 'edit')
  14. # 项目列表
  15. ->fetch
  16. (
  17. '.auth-top',
  18. 'manage/top.get',
  19. array
  20. (
  21. 'span|0' => '<{$v.name}>',
  22. 'ul' => array
  23. (
  24. 'li' => array
  25. (
  26. # 数据处理
  27. '{data}' => '$v.child',
  28. 'a' => array
  29. (
  30. 'html' => '<{$vi.name}>',
  31. 'data-id' => '<{$vi.id}>',
  32. 'onclick' => 'topMenu($(this))',
  33. )
  34. ),
  35. ),
  36. )
  37. )
  38. # display
  39. ->display();