nav.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 头部
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('#top', 'manage/menu.getTop')
  9. ->fetch('#load_style', 'manage/database.res#css')
  10. ->fetch('#nav@style', '<{Dever::load("manage/auth.loading") ? "display:none;" : ""}>')
  11. # 定义名称
  12. ->fetch('#dever-name', 'manage/auth.config#title')
  13. ->fetch('#manage-name', 'manage/auth.info#username')
  14. ->fetch('#logout-url@href', 'manage/menu.link#logout')
  15. //->fetch('#edit@href', 'edit')
  16. ->fetch('#front-url a@href', 'manage/auth.config#front_url')
  17. ->fetch('#front-url a@title', 'manage/auth.config#front_name')
  18. ->fetch('#front-url@style', 'manage/auth.config#front_display')
  19. ->loop
  20. (
  21. '.auth-top li',
  22. 'manage/company.getList',
  23. array
  24. (
  25. 'a' => array
  26. (
  27. 'html' => '$v.name',
  28. 'data-id' => '$v.id',
  29. 'onclick' => 'topCMenu($(this))',
  30. )
  31. )
  32. )
  33. ->fetch('.auth-top span', 'manage/company.getCur', 'none')
  34. ->fetch('.auth-top@style', '<{Dever::load("manage/company.getCur") ? "" : "display:none;"}>')
  35. # display
  36. ->display();