1984110a57eca0ab6a2452e1a279cfc0e9c15cd5.svn-base 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | home
  5. |--------------------------------------------------------------------------
  6. */
  7. $view
  8. # 小标题
  9. ->fetch('#list-name', '项目管理')
  10. ->fetch('#list-desc', '对项目进行线上管理')
  11. # 新增的链接 @代表属性
  12. ->fetch('#list-add@onclick', 'none')
  13. # 设置按钮状态
  14. ->fetch(array('.am-btn-default@style', 0), 'display:none')
  15. ->fetch(array('.am-btn-default@style', 1), 'display:none')
  16. ->fetch(array('.am-btn-default@style', 2), 'display:none')
  17. ->fetch(array('.am-btn-default@style', 3), 'display:none')
  18. # 隐藏搜索
  19. ->fetch('#search@style', 'display:none')
  20. # 隐藏分页
  21. ->fetch('#page-list@style', 'display:none')
  22. # config
  23. ->fetch(array('#list-thead th', 0), '名称')
  24. ->fetch(array('#list-thead th', 1), '内容')
  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/config.get',
  31. array
  32. (
  33. 'td|0' => '<{request.name}><br />双击修改<{Maze::$global["temp"]["delete"]}>',
  34. 'td|1' => array
  35. (
  36. 'href' => '#',
  37. 'class' => 'edit',
  38. 'data-url' => '<{Maze::url("config.set?file="+$v.file+"&name="+request.dir+"&md5="+$v.md5+"&key="+$v.key+"")}>',
  39. 'data-type' => 'textarea',
  40. 'html' => '<{highlight_string($v.content)}><span class="edit-content" style="display:none;"><{$v.content}></span>',
  41. ),
  42. 'td|2' => array
  43. (
  44. 'style' => 'display:none;',
  45. ),
  46. 'td|3' => array
  47. (
  48. 'style' => 'display:none;',
  49. ),
  50. )
  51. )
  52. # display
  53. ->display();