list.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. ->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')
  9. # 小标题
  10. ->fetch('#list-name', '项目管理')
  11. ->fetch('#list-project', '快捷管理')
  12. ->fetch('#list-desc', '对项目进行线上管理')
  13. # 新增的链接 @代表属性
  14. ->fetch('#list-add@style', 'display:none')
  15. # 隐藏搜索
  16. ->fetch('#search@style', 'display:none')
  17. # 隐藏分页
  18. ->fetch('#page@style', 'display:none')
  19. # config
  20. ->fetch(array('#list-thead th', 0), '项目名(双击修改)')
  21. ->fetch(array('#list-thead th', 1), '排序')
  22. ->fetch(array('#list-thead th', 2), '项目KEY(唯一)')
  23. ->fetch(array('#list-thead th', 3), '项目根目录')
  24. //->fetch(array('#list-thead th@style', 2), 'display:none')
  25. //->fetch(array('#list-thead th@style', 3), 'display:none')
  26. ->fetch
  27. (
  28. '#list-tbody tr',
  29. 'manage/project.get',
  30. array
  31. (
  32. 'td|0' => array
  33. (
  34. 'href' => '#',
  35. 'class' => 'edit',
  36. 'data-url' => '<{Dever::url("project.set?key=$k")}>',
  37. 'data-content' => '<{$v["lang"]}>',
  38. 'html' => '<{$v["lang"]}>',
  39. ),
  40. 'td|1' => array
  41. (
  42. 'href' => '#',
  43. 'class' => 'edit',
  44. 'data-url' => '<{Dever::url("project.set?key=$k&index=order")}>',
  45. 'data-content' => '<{$v.order}>',
  46. 'html' => '<{$v.order}>',
  47. ),
  48. 'td|2' => '<{$k}>',
  49. 'td|3' => '<{$v.path}>',
  50. /*
  51. 'td|2' => array
  52. (
  53. 'style' => 'display:none',
  54. 'a|0' => array
  55. (
  56. 'href' => '<{Dever::url("project/config?key=$k")}>',
  57. 'title' => '<{$v["lang"]}>-基本配置',
  58. 'html' => '基本配置<br />',
  59. ),
  60. 'a|1' => array
  61. (
  62. 'href' => '<{Dever::url("project/config?key=$k&type=database")}>',
  63. 'title' => '<{$v["lang"]}>-数据库管理',
  64. 'html' => '数据库管理<br />',
  65. ),
  66. 'a|2' => array
  67. (
  68. 'href' => '<{Dever::url("project/config?key=$k&type=view")}>',
  69. 'title' => '<{$v["lang"]}>-模板列表',
  70. 'html' => '模板列表<br />',
  71. ),
  72. 'a|3' => array
  73. (
  74. 'href' => '<{Dever::url("project/config?key=$k&type=api")}>',
  75. 'title' => '<{$v["lang"]}>-接口管理',
  76. 'html' => '接口管理',
  77. ),
  78. ),
  79. */
  80. /*
  81. 'td|3' => array
  82. (
  83. 'style' => 'display:none',
  84. 'a|0' => array
  85. (
  86. 'href' => '<{Dever::url("template.index?key=$k")}>',
  87. 'title' => '移除<{$v["lang"]}>',
  88. 'html' => '移除项目<br />',
  89. ),
  90. 'a|1' => array
  91. (
  92. 'href' => '<{Dever::url("project/database/manage?key=$k")}>',
  93. 'title' => '<{$v["lang"]}>-数据库管理',
  94. 'html' => '数据库管理<br />',
  95. ),
  96. 'a|2' => array
  97. (
  98. 'href' => '<{Dever::url("project/database/manage?key=$k")}>',
  99. 'title' => '<{$v["lang"]}>-清理模板缓存',
  100. 'html' => '清理模板缓存<br />',
  101. ),
  102. ),
  103. */
  104. )
  105. )
  106. # display
  107. ->display();