common.php 993 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. $view
  3. ->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')
  4. # 对以下的所有数据和展示进行接管
  5. ->fetch('#content_1@style', 'manage/database.page_'.$method.'#s1')
  6. ->fetch('#content_1', 'manage/database.page_'.$method.'#content')
  7. ->fetch('#content_2@style', 'manage/database.page_'.$method.'#s2')
  8. ->fetch('#wrapper@class', 'manage/database.cookie#wrapper')
  9. # top菜单
  10. ->loop
  11. (
  12. '.data-auth-top',
  13. 'manage/top.get',
  14. array
  15. (
  16. 'span|0' => '<{$v.name}>',
  17. 'ul' => array
  18. (
  19. 'li|$v.child' => array
  20. (
  21. 'a' => array
  22. (
  23. 'html' => '$v1.name',
  24. 'data-id' => '$v1.id',
  25. 'onclick' => 'topMenu($(this))',
  26. )
  27. ),
  28. ),
  29. )
  30. )
  31. # 小标题
  32. ->fetch('#list-name', 'manage/database.info#'.$method.'_header')
  33. ->fetch('#list-project', 'manage/database.info#project_name');