list.php 3.6 KB

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