config.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config',
  6. # 显示给用户看的名称
  7. 'lang' => '公共参数设置',
  8. //'menu' => 'manage',
  9. //'order' => 10,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => '网站ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. ),
  21. 'hr1' => array
  22. (
  23. 'name' => '基本信息',
  24. 'class' => '',//本项必须填写
  25. 'attr' => '',
  26. ),
  27. 'name' => array
  28. (
  29. 'type' => 'varchar-32',
  30. 'name' => '网站名称',
  31. 'default' => '',
  32. 'desc' => '请输入网站名称',
  33. 'match' => 'is_string',
  34. 'update' => 'text',
  35. ),
  36. 'logo' => array
  37. (
  38. 'type' => 'varchar-150',
  39. 'name' => '网站logo-192X197',
  40. 'default' => '',
  41. 'desc' => '请选择网站logo',
  42. 'match' => 'option',
  43. //'update' => 'image',
  44. 'key' => '1',
  45. 'place' => '160X160',
  46. ),
  47. 'info' => array
  48. (
  49. 'type' => 'text-255',
  50. 'name' => '网站介绍视频-请输入视频代码',
  51. 'default' => '',
  52. 'desc' => '请输入网站介绍',
  53. 'match' => 'option',
  54. 'update' => 'textarea',
  55. ),
  56. 'hr2' => array
  57. (
  58. 'name' => 'SEO信息',
  59. 'class' => '',//本项必须填写
  60. 'attr' => '',
  61. ),
  62. 'title' => array
  63. (
  64. 'type' => 'varchar-50',
  65. 'name' => '网站title',
  66. 'default' => '',
  67. 'desc' => '请输入网站标题',
  68. 'match' => 'is_string',
  69. 'update' => 'text',
  70. ),
  71. 'keyword' => array
  72. (
  73. 'type' => 'varchar-50',
  74. 'name' => '网站keyword',
  75. 'default' => '',
  76. 'desc' => '请输入网站关键词',
  77. 'match' => 'is_string',
  78. 'update' => 'text',
  79. ),
  80. 'description' => array
  81. (
  82. 'type' => 'varchar-150',
  83. 'name' => '网站description',
  84. 'default' => '',
  85. 'desc' => '请输入网站描述',
  86. 'match' => 'is_string',
  87. 'update' => 'textarea',
  88. ),
  89. 'hr3' => array
  90. (
  91. 'name' => '联系信息',
  92. 'class' => '',//本项必须填写
  93. 'attr' => '',
  94. ),
  95. 'icp' => array
  96. (
  97. 'type' => 'varchar-100',
  98. 'name' => '备案信息',
  99. 'default' => '',
  100. 'desc' => '请输入备案信息',
  101. 'match' => 'is_string',
  102. 'update' => 'textarea',
  103. ),
  104. 'code' => array
  105. (
  106. 'type' => 'text-255',
  107. 'name' => '尾部代码-一般为统计代码',
  108. 'default' => '',
  109. 'desc' => '请输入尾部代码',
  110. 'match' => 'option',
  111. 'update' => 'textarea',
  112. ),
  113. 'tel' => array
  114. (
  115. 'type' => 'varchar-50',
  116. 'name' => '客服电话',
  117. 'default' => '',
  118. 'desc' => '请输入客服电话',
  119. 'match' => 'is_string',
  120. 'update' => 'text',
  121. ),
  122. 'reg_tel' => array
  123. (
  124. 'type' => 'varchar-50',
  125. 'name' => '注册电话',
  126. 'default' => '',
  127. 'desc' => '请输入注册电话',
  128. 'match' => 'is_string',
  129. 'update' => 'text',
  130. ),
  131. 'android' => array
  132. (
  133. 'type' => 'varchar-150',
  134. 'name' => '安卓下载连接',
  135. 'default' => '',
  136. 'desc' => '安卓下载连接',
  137. 'match' => 'option',
  138. 'update' => 'text',
  139. ),
  140. 'appstore' => array
  141. (
  142. 'type' => 'varchar-150',
  143. 'name' => 'appstore下载',
  144. 'default' => '',
  145. 'desc' => 'appstore下载',
  146. 'match' => 'option',
  147. 'update' => 'text',
  148. ),
  149. 'cdate' => array
  150. (
  151. 'type' => 'int-11',
  152. 'name' => '录入时间',
  153. 'match' => time(),
  154. 'desc' => '',
  155. ),
  156. ),
  157. 'manage' => array
  158. (
  159. # 后台管理不要列表页
  160. 'list' => 'update',
  161. ),
  162. );