list.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')
  9. ->fetch('#wrapper@class', 'manage/database.cookie#wrapper')
  10. # 小标题
  11. ->fetch('#list-name', '日志管理')
  12. ->fetch('#list-project', '快捷管理')
  13. ->fetch('#list-desc', '查看后台操作日志')
  14. # 新增的链接 @代表属性
  15. ->fetch('#list-add@style', 'display:none')
  16. # 隐藏搜索
  17. ->fetch('#search@style', 'display:none')
  18. # config
  19. ->fetch(array('#list-thead th', 0), '项目')
  20. ->fetch(array('#list-thead th', 1), '功能')
  21. ->fetch(array('#list-thead th', 2), '管理员')
  22. ->fetch(array('#list-thead th', 3), '日志记录')
  23. ->fetch
  24. (
  25. '#list-tbody tr',
  26. 'manage/log-list',
  27. array
  28. (
  29. 'td|0' => '<{Dever::load("manage/project.name", $v.project)}>',
  30. 'td|1' => '<{Dever::load("manage/database.getTableName", array($v.project, $v.table))}>',
  31. 'td|2' => '<{Dever::load("manage/admin-one#username", $v.admin)}>',
  32. 'td|3' => array
  33. (
  34. 'a' => array
  35. (
  36. 'modal' => '<{$v.info}>',
  37. 'html' => '查看详情',
  38. ),
  39. )
  40. )
  41. )
  42. # 分页
  43. ->fetch('#page','<{Dever::page("current")}>')
  44. # 总数据
  45. //->fetch('#total','<{Dever::total("current")}>')
  46. # display
  47. ->display();