base.php 3.9 KB

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