config.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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-desc', '对项目进行线上管理')
  12. # 新增的链接 @代表属性
  13. ->fetch('#list-add@onclick', 'none')
  14. # 设置按钮状态
  15. ->fetch(array('.am-btn-default@style', 0), 'display:none')
  16. ->fetch(array('.am-btn-default@style', 1), 'display:none')
  17. ->fetch(array('.am-btn-default@style', 2), 'display:none')
  18. ->fetch(array('.am-btn-default@style', 3), 'display:none')
  19. # 隐藏搜索
  20. ->fetch('#search@style', 'display:none')
  21. # 隐藏分页
  22. ->fetch('#page-list@style', 'display:none')
  23. # config
  24. ->fetch(array('#list-thead th', 0), '类型')
  25. ->fetch(array('#list-thead th', 1), '名称')
  26. ->fetch(array('#list-thead th@style', 2), 'display:none')
  27. ->fetch(array('#list-thead th@style', 3), 'display:none')
  28. ->fetch
  29. (
  30. '#list-tbody tr',
  31. 'manage/config.get',
  32. array
  33. (
  34. 'td|0' => '<{if(strstr($v,\'.\')){$config = "file";echo "文件";}else{$config = "config";echo "目录";}}>',
  35. 'td|1' => '<a href="<{Dever::url("project/".$config."?key=".Dever::input(\'key\')."&dir=".Dever::input(\'dir\')."&name=$v")}>"><{$v}></a>',
  36. 'td|2' => array
  37. (
  38. 'style' => 'display:none;',
  39. ),
  40. 'td|3' => array
  41. (
  42. 'style' => 'display:none;',
  43. ),
  44. )
  45. )
  46. # display
  47. ->display();