base.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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' => 'float-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. 'state' => array
  110. (
  111. 'type' => 'tinyint-1',
  112. 'name' => '状态',
  113. 'default' => '1',
  114. 'desc' => '请选择状态',
  115. 'match' => 'is_numeric',
  116. ),
  117. 'cdate' => array
  118. (
  119. 'type' => 'int-11',
  120. 'name' => '录入时间',
  121. 'match' => array('is_numeric', time()),
  122. 'desc' => '',
  123. # 只有insert时才生效
  124. 'insert' => true,
  125. ),
  126. ),
  127. 'default' => array
  128. (
  129. 'col' => 'name,cdate',
  130. 'value' => array
  131. (
  132. '"厨人意料",' . time(),
  133. ),
  134. ),
  135. 'manage' => array
  136. (
  137. # 后台管理不要列表页
  138. 'list' => 'update',
  139. ),
  140. );