nav.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 头部
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('#load_style', 'manage/database.res#css')
  9. ->fetch('#nav@style', '<{Dever::load("manage/auth.loading") ? "display:none;" : ""}>')
  10. # 定义名称
  11. ->fetch('#dever-name', 'manage/auth.config#title')
  12. ->fetch('#manage-name', 'manage/auth.info#username')
  13. ->fetch('#logout-url@href', 'manage/menu.link#logout')
  14. //->fetch('#edit@href', 'edit')
  15. /*
  16. ->fetch('.auth-top@style', 'display:none')
  17. # 项目列表
  18. ->loop
  19. (
  20. '.auth-top',
  21. 'manage/top.get',
  22. array
  23. (
  24. 'span|0' => '<{$v.name}>',
  25. 'ul' => array
  26. (
  27. 'li|$v.child' => array
  28. (
  29. 'a' => array
  30. (
  31. 'html' => '$v1.name',
  32. 'data-id' => '$v1.id',
  33. 'onclick' => 'topMenu($(this))',
  34. )
  35. ),
  36. ),
  37. )
  38. )*/
  39. # 项目列表
  40. ->loop
  41. (
  42. '.auth-top',
  43. 'manage/company.get',
  44. array
  45. (
  46. 'span|0' => '<{$v.name}>',
  47. 'ul' => array
  48. (
  49. 'li|$v.child' => array
  50. (
  51. 'a' => array
  52. (
  53. 'html' => '$v1.name',
  54. 'data-id' => '$v1.id',
  55. 'onclick' => 'topMenu($(this))',
  56. )
  57. ),
  58. ),
  59. )
  60. )
  61. # display
  62. ->display();