info.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php
  2. return array
  3. (
  4. 'list' => array
  5. (
  6. 'field' => array
  7. (
  8. 'sort' => array
  9. (
  10. 'type' => 'input',
  11. ),
  12. 'name' => array
  13. (
  14. //'tip' => false,
  15. ),
  16. 'cate' => array
  17. (
  18. 'show' => 'Dever::call("content/cate.getInfo", array("content", "{cate}"))',
  19. ),
  20. 'status' => array
  21. (
  22. 'type' => 'switch',
  23. 'show' => '{status}',
  24. 'active_value' => 1,
  25. 'inactive_value' => 2,
  26. ),
  27. 'cdate',
  28. ),
  29. 'button' => array
  30. (
  31. '新增' => array('add'),
  32. ),
  33. 'data_button' => array
  34. (
  35. '编辑' => 'edit',
  36. /*
  37. '推广素材' => array('route', array
  38. (
  39. 'path' => 'set_zone_source/source_info_data',
  40. 'param' => array
  41. (
  42. 'set' => array('info_id' => 'id', 'menu' => 'set_zone_source/source_info', 'parent' => 'set_zone_source/source_info'),
  43. ),
  44. ), 'ChatLineSquare'),
  45. */
  46. ),
  47. 'search' => array
  48. (
  49. 'cate' => array
  50. (
  51. 'type' => 'cascader',
  52. 'option' => 'Dever::call("content/cate.getList", array("content"))',
  53. ),
  54. 'status',
  55. 'name',
  56. ),
  57. ),
  58. 'update' => array
  59. (
  60. 'tab' => array
  61. (
  62. '基本信息' => 'name,cate,content',
  63. '附件信息' => 'content/value',
  64. '价格设置' => 'price,password,content/price',
  65. ),
  66. //'desc' => '原创声明:',
  67. 'field' => array
  68. (
  69. 'name' => array
  70. (
  71. 'rules' => true,
  72. ),
  73. 'cate' => array
  74. (
  75. 'rules' => true,
  76. 'type' => 'cascader',
  77. 'option' => 'Dever::call("content/cate.getList", array("content"))',
  78. ),
  79. 'info' => array
  80. (
  81. 'type' => 'textarea',
  82. //'rows' => 4,
  83. 'autosize' => array('minRows' => 4),
  84. ),
  85. 'content' => array
  86. (
  87. 'rules' => true,
  88. 'type' => 'editor',
  89. 'editorMenu' => array
  90. (
  91. 'uploadImage' => 1,
  92. 'uploadVideo' => 3,
  93. ),
  94. ),
  95. 'content/value' => array
  96. (
  97. 'name' => '附件',
  98. 'where' => array('info_id' => 'id'),
  99. ),
  100. 'price' => array
  101. (
  102. 'desc' => '下载附件的价格',
  103. ),
  104. 'password' => array
  105. (
  106. 'desc' => '输入密码后,可以免费下载附件',
  107. ),
  108. 'content/price' => array
  109. (
  110. 'name' => '会员设置',
  111. 'where' => array('info_id' => 'id'),
  112. 'desc' => '可以按照会员和代理等级设置,设置专享后,仅该等级的会员或代理可以下载',
  113. ),
  114. ),
  115. 'end' => 'content/info.update',
  116. ),
  117. );