c1b693958e3490980c44478c7842230e8d835014.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. # 小标题
  9. ->fetch('#list-name', '数据库管理')
  10. ->fetch('#list-desc', '查看后台操作日志')
  11. # 设置按钮状态
  12. ->fetch(array('.am-btn-default@style', 0), 'display:none')
  13. ->fetch(array('.am-btn-default@style', 1), 'display:none')
  14. ->fetch(array('.am-btn-default@style', 2), 'display:none')
  15. ->fetch(array('.am-btn-default@style', 3), 'display:none')
  16. # 隐藏搜索
  17. ->fetch('#search@style', 'display:none')
  18. # 隐藏分页
  19. ->fetch('#page-list@style', 'display:none')
  20. # config
  21. ->fetch(array('#list-thead th', 0), '表名')
  22. ->fetch(array('#list-thead th', 1), '数据结构')
  23. ->fetch(array('#list-thead th', 2), '请求接口')
  24. ->fetch(array('#list-thead th', 3), '后台管理')
  25. ->fetch
  26. (
  27. '#list-tbody tr',
  28. 'manage/database.manage',
  29. array
  30. (
  31. 'td|0' => '<{$v.lang}>',
  32. 'td|1' => array
  33. (
  34. 'a|0' => array
  35. (
  36. 'href' => '<{Maze::url("project/database/manage?key=$k")}>',
  37. 'title' => '<{$v["lang"]}>-数据结构',
  38. 'html' => '数据结构',
  39. ),
  40. ),
  41. 'td|2' => array
  42. (
  43. 'a|0' => array
  44. (
  45. 'href' => '<{Maze::url("project/database/manage?key=$k")}>',
  46. 'title' => '<{$v["lang"]}>-请求接口',
  47. 'html' => '数据请求接口<br />',
  48. ),
  49. ),
  50. 'td|3' => array
  51. (
  52. 'a|0' => array
  53. (
  54. 'href' => '<{Maze::url("project/database/manage?key=$k")}>',
  55. 'title' => '<{$v["lang"]}>-后台管理',
  56. 'html' => '后台管理<br />',
  57. ),
  58. ),
  59. )
  60. )
  61. # display
  62. ->display();