65caef410f6480aac2dcb540eac18c467354fdf4.svn-base 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('body@class', 'theme-<{Maze::load("/auth.config#template")}>')
  9. # config
  10. ->fetch('.page-header', 'manage/database.info#main')
  11. ->fetch(array('.item th', 0), '功能')
  12. ->fetch(array('.item th', 1), '结构')
  13. ->fetch(array('.item th', 2), '索引')
  14. ->fetch(array('.item th', 3), '操作')
  15. # data
  16. ->fetch
  17. (
  18. '.content tr',
  19. 'manage/database.config',
  20. array
  21. (
  22. 'td|0' => '<{isset($v["lang"]) ? $v["lang"] : $k}>',
  23. 'td|1' => array
  24. (
  25. 'html' => '<a href="#">点此查看</a>',
  26. 'modal' => 'create struct|<{Helper::table(array("[col]","[info]",""), $v["struct"])}>',
  27. ),
  28. 'td|2' => array
  29. (
  30. 'html' => '<a href="#">点此查看</a>',
  31. 'modal' => 'create struct|<{Helper::table(array("[name]","[value]",""), $v["index"])}>',
  32. ),
  33. 'td|3' => array
  34. (
  35. 'a|0' => array
  36. (
  37. 'html' => '数据列表',
  38. 'href' => '<{Maze::url("project/database/list?key=".Input::get(\'key\')."&table=$k")}>',
  39. 'title' => 'data-list',
  40. ),
  41. 'a|1' => array
  42. (
  43. 'html' => '新增数据',
  44. 'href' => '<{Maze::url("project/database/update?key=".Input::get(\'key\')."&table=$k")}>',
  45. 'title' => 'data-update',
  46. ),
  47. 'a|2' => array
  48. (
  49. 'style' => 'display:none;',
  50. ),
  51. 'a|3' => array
  52. (
  53. 'style' => 'display:none;',
  54. ),
  55. ),
  56. )
  57. )
  58. # display
  59. ->display();