config.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config',
  6. # 显示给用户看的名称
  7. 'lang' => '站点信息设置',
  8. 'menu' => 'manage',
  9. 'order' => 30,
  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. 'info' => array
  37. (
  38. 'type' => 'text-255',
  39. 'name' => '网站介绍视频-请输入视频代码',
  40. 'default' => '',
  41. 'desc' => '请输入网站介绍',
  42. 'match' => 'option',
  43. 'update' => 'textarea',
  44. ),
  45. 'hr2' => array
  46. (
  47. 'name' => 'SEO信息',
  48. 'class' => '',//本项必须填写
  49. 'attr' => '',
  50. ),
  51. 'title' => array
  52. (
  53. 'type' => 'varchar-50',
  54. 'name' => '网站title',
  55. 'default' => '',
  56. 'desc' => '请输入网站标题',
  57. 'match' => 'is_string',
  58. 'update' => 'text',
  59. ),
  60. 'keyword' => array
  61. (
  62. 'type' => 'varchar-50',
  63. 'name' => '网站keyword',
  64. 'default' => '',
  65. 'desc' => '请输入网站关键词',
  66. 'match' => 'is_string',
  67. 'update' => 'text',
  68. ),
  69. 'description' => array
  70. (
  71. 'type' => 'varchar-150',
  72. 'name' => '网站description',
  73. 'default' => '',
  74. 'desc' => '请输入网站描述',
  75. 'match' => 'is_string',
  76. 'update' => 'textarea',
  77. ),
  78. 'hr3' => array
  79. (
  80. 'name' => '联系信息',
  81. 'class' => '',//本项必须填写
  82. 'attr' => '',
  83. ),
  84. 'icp' => array
  85. (
  86. 'type' => 'varchar-100',
  87. 'name' => '备案信息',
  88. 'default' => '',
  89. 'desc' => '请输入备案信息',
  90. 'match' => 'is_string',
  91. 'update' => 'textarea',
  92. ),
  93. 'code' => array
  94. (
  95. 'type' => 'text-255',
  96. 'name' => '尾部代码-一般为统计代码',
  97. 'default' => '',
  98. 'desc' => '请输入尾部代码',
  99. 'match' => 'option',
  100. 'update' => 'textarea',
  101. ),
  102. 'tel' => array
  103. (
  104. 'type' => 'varchar-50',
  105. 'name' => '客服电话',
  106. 'default' => '',
  107. 'desc' => '请输入客服电话',
  108. 'match' => 'is_string',
  109. 'update' => 'text',
  110. ),
  111. 'reg_tel' => array
  112. (
  113. 'type' => 'varchar-50',
  114. 'name' => '注册电话',
  115. 'default' => '',
  116. 'desc' => '请输入注册电话',
  117. 'match' => 'is_string',
  118. 'update' => 'text',
  119. ),
  120. 'android' => array
  121. (
  122. 'type' => 'varchar-150',
  123. 'name' => '安卓下载连接',
  124. 'default' => '',
  125. 'desc' => '安卓下载连接',
  126. 'match' => 'option',
  127. 'update' => 'text',
  128. ),
  129. 'appstore' => array
  130. (
  131. 'type' => 'varchar-150',
  132. 'name' => 'appstore下载',
  133. 'default' => '',
  134. 'desc' => 'appstore下载',
  135. 'match' => 'option',
  136. 'update' => 'text',
  137. ),
  138. 'cdate' => array
  139. (
  140. 'type' => 'int-11',
  141. 'name' => '录入时间',
  142. 'match' => time(),
  143. 'desc' => '',
  144. ),
  145. ),
  146. 'manage' => array
  147. (
  148. # 后台管理不要列表页
  149. 'list' => 'update',
  150. ),
  151. );