nav.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. ->fetch('.auth-top@style', 'display:none')
  16. # 项目列表
  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. # display
  41. ->display();