config.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?php
  2. $ios_pay = array
  3. (
  4. 1 => '关闭小程序支付',
  5. 2 => '开启公众号支付',
  6. 3 => '开启小程序支付',
  7. );
  8. $video = array
  9. (
  10. 1 => '显示',
  11. 2 => '不显示',
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'config',
  17. # 显示给用户看的名称
  18. 'lang' => '基本配置',
  19. 'order' => 1,
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => '系统ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. ),
  31. 'hr1' => array
  32. (
  33. 'name' => '通用设置',
  34. 'class' => '',//本项必须填写
  35. 'attr' => '',
  36. ),
  37. 'name' => array
  38. (
  39. 'type' => 'varchar-32',
  40. 'name' => '系统名称',
  41. 'default' => '',
  42. 'desc' => '请输入系统名称',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. ),
  46. 'info' => array
  47. (
  48. 'type' => 'text-255',
  49. 'name' => '系统介绍',
  50. 'default' => '',
  51. 'desc' => '请输入系统介绍',
  52. 'match' => 'option',
  53. 'update' => 'textarea',
  54. ),
  55. 'logo' => array
  56. (
  57. 'type' => 'varchar-150',
  58. 'name' => 'logo图片',
  59. 'default' => '',
  60. 'desc' => 'logo图片',
  61. 'match' => 'option',
  62. 'update' => 'image',
  63. 'key' => '1',
  64. 'place' => '150',
  65. ),
  66. 'hr2' => array
  67. (
  68. 'name' => '课程相关',
  69. 'class' => '',//本项必须填写
  70. 'attr' => '',
  71. ),
  72. 'server' => array
  73. (
  74. 'type' => 'text-800',
  75. 'name' => '上门服务介绍',
  76. 'default' => '',
  77. 'desc' => '上门服务介绍',
  78. 'match' => 'option',
  79. 'update' => 'editor',
  80. 'key' => '1',
  81. ),
  82. 'bonus' => array
  83. (
  84. 'type' => 'text-800',
  85. 'name' => '绩效规则介绍',
  86. 'default' => '',
  87. 'desc' => '绩效规则介绍',
  88. 'match' => 'option',
  89. 'update' => 'editor',
  90. 'key' => '1',
  91. ),
  92. 'deposit' => array
  93. (
  94. 'type' => 'text-800',
  95. 'name' => '押金说明',
  96. 'default' => '',
  97. 'desc' => '押金说明',
  98. 'match' => 'option',
  99. 'update' => 'editor',
  100. 'key' => '1',
  101. ),
  102. 'cdate' => array
  103. (
  104. 'type' => 'int-11',
  105. 'name' => '录入时间',
  106. 'match' => array('is_numeric', time()),
  107. 'desc' => '',
  108. # 只有insert时才生效
  109. 'insert' => true,
  110. ),
  111. ),
  112. 'default' => array
  113. (
  114. 'col' => 'name,info,cdate',
  115. 'value' => array
  116. (
  117. '"赛课系统","赛课系统",' . time(),
  118. ),
  119. ),
  120. 'manage' => array
  121. (
  122. # 后台管理不要列表页
  123. 'list' => 'update',
  124. ),
  125. );