nav.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. ->loop
  18. (
  19. '.auth-top',
  20. 'manage/top.get',
  21. array
  22. (
  23. 'span|0' => '<{$v.name}>',
  24. 'ul' => array
  25. (
  26. 'li|$v.child' => array
  27. (
  28. 'a' => array
  29. (
  30. 'html' => '$v1.name',
  31. 'data-id' => '$v1.id',
  32. 'onclick' => 'topMenu($(this))',
  33. )
  34. ),
  35. ),
  36. )
  37. )
  38. # display
  39. ->display();