list.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 列表页
  5. |--------------------------------------------------------------------------
  6. */
  7. $method = 'list';
  8. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
  9. $view
  10. ->set('fast', 'Dever::input("fast")')
  11. //->fetch('#dever_submit@value', 'Dever::submit()')
  12. ->fetch('#parent@value', 'manage/database.info#parent_value')
  13. ->fetch('#fast@value', '$fast')
  14. ->fetch('#load_style', 'manage/database.res#css')
  15. ->fetch('#search_param', 'manage/database.info#search_param')
  16. ->fetch('#addstyle', 'manage/database.listStyle')
  17. #->fetch('#list-desc', 'manage/database.info#list_desc')
  18. # 只对一部分数据进行接管,只接管table
  19. ->fetch('#table_1@style', 'manage/database.page_list_table#s1')
  20. ->fetch('#table_1', 'manage/database.page_list_table#content')
  21. ->fetch('#table_2@style', 'manage/database.page_list_table#s2')
  22. # 数据列表的搜索
  23. ->fetch('#search', 'manage/database.list_search')
  24. ->fetch('#search_content', 'manage/database.list_search', 'none')
  25. # 数据列表
  26. //->loop('#list-tbody-data','manage/database.list_tbody_layui')
  27. # 数据列表
  28. ->fetch('#list-tbody','manage/database.list_tbody')
  29. # 数据列表的标题
  30. //->loop('#list-thead-data', 'manage/database.list_thead_layui')
  31. # 数据列表的标题
  32. ->loop('#list-thead tr', 'manage/database.list_thead')
  33. ->fetch('#info', 'manage/database.getConfig#info', 'none')
  34. ->fetch('#desc', 'manage/database.getConfig#desc', 'none')
  35. # 统计数据
  36. ->loop('#stat_data','manage/database.list_data')
  37. ->loop('#stat_data_card@style','manage/database.list_data_show')
  38. # 统计图表
  39. ->loop('#chart','manage/database.list_chart')
  40. ->loop('#chart@style','manage/database.list_chart_show')
  41. # 列表页按钮
  42. ->fetch('#list-button','manage/database.list_button')
  43. # 批量管理的表单
  44. ->fetch('#mul','manage/database.list_mul')
  45. # 表单的action
  46. ->fetch('#form1@action', 'manage/database.info#list')
  47. # url的值
  48. ->fetch('#url@value', 'manage/database.info#mul')
  49. # 分页
  50. ->fetch('#page','<{Dever::page("current")}>')
  51. ->fetch('#dever-name', 'manage/auth.config#title')
  52. ->fetch('#search_option_state@value', 'manage/database.info#state')
  53. ->fetch('#l@value', 'manage/database.info#l')
  54. ->fetch('#project@value', 'manage/database.info#project')
  55. ->fetch('#tables@value', 'manage/database.info#table')
  56. ->fetch('#menu@value', 'manage/database.info#menu')
  57. ->fetch('#menu_id@value', 'manage/database.info#menu_id')
  58. ->fetch('#alias@value', 'manage/database.info#alias')
  59. # 总数据 加在头部里吧
  60. //->fetch('#list-desc', '<{Dever::load("manage/database.info#list_desc")}>(共<{Dever::total("current")}>条)')
  61. #banner
  62. /*
  63. ->render('banner:manage/database.banner:banner设定', array
  64. (
  65. '.topbar@style' => array('', 'none'),
  66. '.banner' => 'none',
  67. ))
  68. */
  69. # 项目列表
  70. /*
  71. ->fetch('.auth-top@style', 'display:none')
  72. ->loop
  73. (
  74. '.auth-top',
  75. 'manage/top.get',
  76. array
  77. (
  78. 'span|0' => '<{$v.name}>',
  79. 'ul' => array
  80. (
  81. 'li|$v.child' => array
  82. (
  83. 'a' => array
  84. (
  85. 'html' => '$v1.name',
  86. 'data-id' => '$v1.id',
  87. 'onclick' => 'topMenu($(this))',
  88. )
  89. ),
  90. ),
  91. )
  92. )*/
  93. # 数据结构
  94. ->fetch('#struct', 'manage/database.info#struct')
  95. # 将上边fetch的都显示出来
  96. ->display();