b456314183335a13915d06f7f240b328ea61e8b5.svn-base 934 B

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