list.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | 列表页
  5. |--------------------------------------------------------------------------
  6. */
  7. $method = 'list';
  8. include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.php');
  9. $view
  10. ->fetch('#addstyle', 'manage/database.listStyle')
  11. ->fetch('#list-desc', 'manage/database.info#list_desc')
  12. # 新增的链接 @代表属性
  13. ->fetch('#list-add@href', 'manage/database.info#add')
  14. ->fetch('#list-add@style', 'manage/database.info#add_state')
  15. ->fetch('#list-parent@href', 'manage/database.info#parent')
  16. ->fetch('#list-parent@style', 'manage/database.info#parent_state')
  17. # 只对一部分数据进行接管,只接管table
  18. ->fetch('#table_1@style', 'manage/database.page_list_table#s1')
  19. ->fetch('#table_1', 'manage/database.page_list_table#content')
  20. ->fetch('#table_2@style', 'manage/database.page_list_table#s2')
  21. # 数据列表的搜索
  22. ->fetch('#search', 'manage/database.list_search')
  23. ->fetch('#desc', 'manage/database.info#listDesc', 'none')
  24. # 数据列表的标题
  25. ->loop('#list-thead tr', 'manage/database.list_thead')
  26. # 数据列表
  27. ->loop('#list-tbody','manage/database.list_tbody')
  28. # 数据列表
  29. ->fetch('#list-button','manage/database.list_button')
  30. # 批量管理的表单
  31. ->fetch('#mul','manage/database.list_mul')
  32. # 表单的action
  33. ->fetch('#form1@action', 'manage/database.info#list')
  34. # url的值
  35. ->fetch('#url@value', 'manage/database.info#mul')
  36. # 分页
  37. ->fetch('#page','<{Dever::page("current")}>')
  38. ->fetch('#search_option_state@value', 'manage/database.info#state')
  39. ->fetch('#l@value', 'manage/database.info#l')
  40. ->fetch('#project@value', 'manage/database.info#project')
  41. ->fetch('#tables@value', 'manage/database.info#table')
  42. ->fetch('#menu@value', 'manage/database.info#menu')
  43. ->fetch('#menu_id@value', 'manage/database.info#menu_id')
  44. # 总数据 加在头部里吧
  45. ->fetch('#list-desc', '<{Dever::load("manage/database.info#list_desc")}>(共<{Dever::total("current")}>条)')
  46. # 数据结构
  47. ->fetch('#struct', 'manage/database.info#struct')
  48. #banner
  49. ->render('banner:manage/database.banner:banner设定', array
  50. (
  51. '.topbar@style' => array('', 'none'),
  52. '.banner' => 'none',
  53. ))
  54. # 将上边fetch的都显示出来
  55. ->display();