config.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. 'site' => array
  41. (
  42. 'type' => 'varchar-200',
  43. 'name' => '网站地址',
  44. 'default' => '',
  45. 'desc' => '网站地址',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. ),
  49. 'logo' => array
  50. (
  51. 'type' => 'varchar-150',
  52. 'name' => '网站LOGO',
  53. 'default' => '',
  54. 'desc' => '平台LOGO',
  55. 'match' => 'option',
  56. 'update' => 'image',
  57. 'key' => '1',
  58. 'place' => '150',
  59. ),
  60. 'hr2' => array
  61. (
  62. 'name' => '网站SEO信息',
  63. 'class' => '',//本项必须填写
  64. 'attr' => '',
  65. ),
  66. 'seo_keyword' => array
  67. (
  68. 'type' => 'varchar-1000',
  69. 'name' => 'SEO关键词',
  70. 'default' => '',
  71. 'desc' => 'SEO关键词',
  72. 'match' => 'option',
  73. 'update' => 'textarea',
  74. ),
  75. 'seo_desc' => array
  76. (
  77. 'type' => 'varchar-1000',
  78. 'name' => 'SEO描述',
  79. 'default' => '',
  80. 'desc' => 'SEO描述',
  81. 'match' => 'option',
  82. 'update' => 'textarea',
  83. ),
  84. 'hr3' => array
  85. (
  86. 'name' => '联系信息',
  87. 'class' => '',//本项必须填写
  88. 'attr' => '',
  89. ),
  90. 'phone' => array
  91. (
  92. 'type' => 'varchar-100',
  93. 'name' => '客服电话',
  94. 'default' => '',
  95. 'desc' => '请输入客服电话',
  96. 'match' => 'option',
  97. 'update' => 'text',
  98. ),
  99. 'worktime' => array
  100. (
  101. 'type' => 'varchar-100',
  102. 'name' => '工作时间',
  103. 'default' => '',
  104. 'desc' => '请输入工作时间',
  105. 'match' => 'option',
  106. 'update' => 'text',
  107. ),
  108. 'wechat' => array
  109. (
  110. 'type' => 'varchar-150',
  111. 'name' => '公众号',
  112. 'default' => '',
  113. 'desc' => '公众号',
  114. 'match' => 'option',
  115. 'update' => 'image',
  116. 'key' => '1',
  117. 'place' => '150*150',
  118. ),
  119. 'foot' => array
  120. (
  121. 'type' => 'text-255',
  122. 'name' => '底部信息',
  123. 'default' => '',
  124. 'desc' => '底部信息',
  125. 'match' => 'option',
  126. 'update' => 'editor',
  127. 'key' => '1',
  128. ),
  129. 'state' => array
  130. (
  131. 'type' => 'tinyint-1',
  132. 'name' => '状态',
  133. 'default' => '1',
  134. 'desc' => '请选择状态',
  135. 'match' => 'is_numeric',
  136. ),
  137. 'cdate' => array
  138. (
  139. 'type' => 'int-11',
  140. 'name' => '录入时间',
  141. 'match' => array('is_numeric', time()),
  142. 'desc' => '',
  143. # 只有insert时才生效
  144. 'insert' => true,
  145. ),
  146. ),
  147. 'default' => array
  148. (
  149. 'col' => 'name,cdate',
  150. 'value' => array
  151. (
  152. '"厨人易料",' . time(),
  153. ),
  154. ),
  155. 'manage' => array
  156. (
  157. # 后台管理不要列表页
  158. 'list' => 'update',
  159. ),
  160. );