config.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <?php
  2. $home_top_type = array
  3. (
  4. 1 => '显示',
  5. 2 => '不显示',
  6. );
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'config',
  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. 'hr1' => array
  26. (
  27. 'name' => '通用设置',
  28. 'class' => '',//本项必须填写
  29. 'attr' => '',
  30. ),
  31. 'name' => array
  32. (
  33. 'type' => 'varchar-32',
  34. 'name' => '站点名称',
  35. 'default' => '',
  36. 'desc' => '站点名称',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. ),
  40. 'keywords' => array
  41. (
  42. 'type' => 'varchar-1000',
  43. 'name' => '站点关键词',
  44. 'default' => '',
  45. 'desc' => '站点关键词',
  46. 'match' => 'option',
  47. 'update' => 'textarea',
  48. ),
  49. 'info' => array
  50. (
  51. 'type' => 'varchar-1000',
  52. 'name' => '站点描述',
  53. 'default' => '',
  54. 'desc' => '站点描述',
  55. 'match' => 'option',
  56. 'update' => 'textarea',
  57. ),
  58. 'logo' => array
  59. (
  60. 'type' => 'varchar-150',
  61. 'name' => '站点LOGO',
  62. 'default' => '',
  63. 'desc' => '站点LOGO',
  64. 'match' => 'option',
  65. 'update' => 'image',
  66. 'key' => '1',
  67. 'place' => '210*80',
  68. ),
  69. 'hr5' => array
  70. (
  71. 'name' => '联系配置',
  72. 'class' => '',//本项必须填写
  73. 'attr' => '',
  74. ),
  75. 'qq' => array
  76. (
  77. 'type' => 'varchar-100',
  78. 'name' => '客服qq',
  79. 'default' => '',
  80. 'desc' => '客服qq',
  81. 'match' => 'option',
  82. 'update' => 'text',
  83. ),
  84. 'email' => array
  85. (
  86. 'type' => 'varchar-100',
  87. 'name' => '客服邮箱',
  88. 'default' => '',
  89. 'desc' => '客服邮箱',
  90. 'match' => 'option',
  91. 'update' => 'text',
  92. ),
  93. 'phone' => array
  94. (
  95. 'type' => 'varchar-100',
  96. 'name' => '客服电话',
  97. 'default' => '',
  98. 'desc' => '请输入客服电话',
  99. 'match' => 'option',
  100. 'update' => 'text',
  101. ),
  102. 'wechat' => array
  103. (
  104. 'type' => 'varchar-150',
  105. 'name' => '微信客服-上传微信客服二维码图片',
  106. 'default' => '',
  107. 'desc' => '微信客服',
  108. 'match' => 'option',
  109. 'update' => 'image',
  110. 'key' => '1',
  111. 'place' => '140*140',
  112. ),
  113. 'wechat_service' => array
  114. (
  115. 'type' => 'varchar-150',
  116. 'name' => '微信公众号-上传微信公众号二维码图片',
  117. 'default' => '',
  118. 'desc' => '微信公众号',
  119. 'match' => 'option',
  120. 'update' => 'image',
  121. 'key' => '1',
  122. 'place' => '140*140',
  123. ),
  124. 'foot' => array
  125. (
  126. 'type' => 'text-255',
  127. 'name' => '底部信息',
  128. 'default' => '',
  129. 'desc' => '底部信息',
  130. 'match' => 'option',
  131. 'update' => 'editor',
  132. 'key' => '1',
  133. ),
  134. 'state' => array
  135. (
  136. 'type' => 'tinyint-1',
  137. 'name' => '状态',
  138. 'default' => '1',
  139. 'desc' => '请选择状态',
  140. 'match' => 'is_numeric',
  141. ),
  142. 'cdate' => array
  143. (
  144. 'type' => 'int-11',
  145. 'name' => '录入时间',
  146. 'match' => array('is_numeric', time()),
  147. 'desc' => '',
  148. # 只有insert时才生效
  149. 'insert' => true,
  150. ),
  151. ),
  152. 'default' => array
  153. (
  154. 'col' => 'name,cdate',
  155. 'value' => array
  156. (
  157. '"神秘城",' . time(),
  158. ),
  159. ),
  160. 'manage' => array
  161. (
  162. # 后台管理不要列表页
  163. 'list' => 'update',
  164. ),
  165. );