base.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. $type = array
  8. (
  9. 1 => '开放中',
  10. 2 => '维护中',
  11. );
  12. return array
  13. (
  14. # 表名
  15. 'name' => 'base',
  16. # 显示给用户看的名称
  17. 'lang' => '系统配置',
  18. 'order' => 1,
  19. # 数据结构
  20. 'struct' => array
  21. (
  22. 'id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => '平台ID',
  26. 'default' => '',
  27. 'desc' => '',
  28. 'match' => 'is_numeric',
  29. ),
  30. 'name' => array
  31. (
  32. 'type' => 'varchar-32',
  33. 'name' => '系统名称',
  34. 'default' => '',
  35. 'desc' => '请输入系统名称',
  36. 'match' => 'is_string',
  37. 'update' => 'text',
  38. ),
  39. 'phone' => array
  40. (
  41. 'type' => 'varchar-100',
  42. 'name' => '客服电话',
  43. 'default' => '',
  44. 'desc' => '请输入客服电话',
  45. 'match' => 'option',
  46. 'update' => 'text',
  47. ),
  48. 'tax' => array
  49. (
  50. 'type' => 'decimal-11,2',
  51. 'name' => '提现手续费-输入10就是10%',
  52. 'default' => '8',
  53. 'desc' => '提现手续费',
  54. 'match' => 'option',
  55. 'update' => 'text',
  56. ),
  57. 'agreement_sign' => array
  58. (
  59. 'type' => 'varchar-150',
  60. 'name' => '合同盖章图片',
  61. 'default' => '',
  62. 'desc' => '合同盖章图片',
  63. 'match' => 'option',
  64. 'update' => 'image',
  65. 'key' => '1',
  66. 'place' => '150*150',
  67. ),
  68. 'agreement_mobile' => array
  69. (
  70. 'type' => 'varchar-100',
  71. 'name' => '合同代表人电话',
  72. 'default' => '',
  73. 'desc' => '合同代表人电话',
  74. 'match' => 'option',
  75. 'update' => 'text',
  76. ),
  77. 'desc' => array
  78. (
  79. 'type' => 'text-255',
  80. 'name' => '代理加盟介绍',
  81. 'default' => '',
  82. 'desc' => '代理加盟介绍',
  83. 'match' => 'option',
  84. 'update' => 'editor',
  85. 'key' => '1',
  86. ),
  87. 'bank_user' => array
  88. (
  89. 'type' => 'varchar-300',
  90. 'name' => '银行卡开户名称',
  91. 'default' => '',
  92. 'desc' => '银行卡开户名称',
  93. 'match' => 'is_string',
  94. 'update' => 'text',
  95. ),
  96. 'bank_name' => array
  97. (
  98. 'type' => 'varchar-300',
  99. 'name' => '银行卡支行名称',
  100. 'default' => '',
  101. 'desc' => '银行卡支行名称',
  102. 'match' => 'is_string',
  103. 'update' => 'text',
  104. ),
  105. 'bank_card' => array
  106. (
  107. 'type' => 'varchar-300',
  108. 'name' => '银行卡卡号',
  109. 'default' => '',
  110. 'desc' => '银行卡卡号',
  111. 'match' => 'is_string',
  112. 'update' => 'text',
  113. ),
  114. 'type' => array
  115. (
  116. 'type' => 'tinyint-1',
  117. 'name' => '系统是否开放',
  118. 'default' => '1',
  119. 'desc' => '类型',
  120. 'match' => 'is_numeric',
  121. 'option' => $type,
  122. 'update' => 'radio',
  123. 'control' => 'type',
  124. ),
  125. 'type_desc' => array
  126. (
  127. 'type' => 'varchar-2000',
  128. 'name' => '系统维护描述',
  129. 'default' => '',
  130. 'desc' => '系统维护描述',
  131. 'match' => 'is_string',
  132. 'update' => 'textarea',
  133. ),
  134. // 'market_desc' => array
  135. // (
  136. // 'type' => 'text-255',
  137. // 'name' => '提现协议',
  138. // 'default' => '',
  139. // 'desc' => '提现协议',
  140. // 'match' => 'option',
  141. // 'update' => 'editor',
  142. // 'key' => '1',
  143. // ),
  144. 'state' => array
  145. (
  146. 'type' => 'tinyint-1',
  147. 'name' => '状态',
  148. 'default' => '1',
  149. 'desc' => '请选择状态',
  150. 'match' => 'is_numeric',
  151. ),
  152. 'cdate' => array
  153. (
  154. 'type' => 'int-11',
  155. 'name' => '录入时间',
  156. 'match' => array('is_numeric', time()),
  157. 'desc' => '',
  158. # 只有insert时才生效
  159. 'insert' => true,
  160. ),
  161. ),
  162. 'alter' => array
  163. (
  164. 5 => array
  165. (
  166. array('update', 'tax', 'tax', 'decimal-11,2 8 提现手续费'),
  167. ),
  168. 'version' => 5,
  169. ),
  170. 'default' => array
  171. (
  172. 'col' => 'name,cdate',
  173. 'value' => array
  174. (
  175. '"厨人意料",' . time(),
  176. ),
  177. ),
  178. 'manage' => array
  179. (
  180. # 后台管理不要列表页
  181. 'list' => 'update',
  182. ),
  183. );