config.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. 'info' => array
  41. (
  42. 'type' => 'varchar-1000',
  43. 'name' => '系统描述',
  44. 'default' => '',
  45. 'desc' => '请输入系统描述',
  46. 'match' => 'option',
  47. 'update' => 'textarea',
  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. 'home_top' => array
  61. (
  62. 'type' => 'varchar-150',
  63. 'name' => '首页顶部图片',
  64. 'default' => '',
  65. 'desc' => '首页顶部图片',
  66. 'match' => 'option',
  67. 'update' => 'image',
  68. 'key' => '1',
  69. 'place' => '690*228',
  70. ),
  71. 'home_top_type' => array
  72. (
  73. 'type' => 'int-11',
  74. 'name' => '首页顶部图片显示文字',
  75. 'default' => '1',
  76. 'desc' => '首页顶部图片显示文字',
  77. 'match' => 'is_numeric',
  78. 'update' => 'radio',
  79. 'option' => $home_top_type,
  80. 'search' => 'select',
  81. //'list' => true,
  82. ),
  83. 'hr5' => array
  84. (
  85. 'name' => '分享配置',
  86. 'class' => '',//本项必须填写
  87. 'attr' => '',
  88. ),
  89. 'share_title' => array
  90. (
  91. 'type' => 'varchar-100',
  92. 'name' => '分享标题-{name}为当前系统名称,{username}为当前登录的用户名',
  93. 'default' => '',
  94. 'desc' => '分享标题',
  95. 'match' => 'option',
  96. 'update' => 'text',
  97. ),
  98. 'share_pic' => array
  99. (
  100. 'type' => 'varchar-150',
  101. 'name' => '分享图片-图片尺寸570*570px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
  102. 'default' => '',
  103. 'desc' => '分享图片',
  104. 'match' => 'option',
  105. 'update' => 'image',
  106. 'key' => '1',
  107. 'place' => '150',
  108. //'upload' => 'qiniu',
  109. //'large' => true,
  110. ),
  111. 'share_content' => array
  112. (
  113. 'type' => 'varchar-200',
  114. 'name' => '分享内容',
  115. 'default' => '',
  116. 'desc' => '分享内容',
  117. 'match' => 'option',
  118. 'update' => 'textarea',
  119. ),
  120. 'cdate' => array
  121. (
  122. 'type' => 'int-11',
  123. 'name' => '录入时间',
  124. 'match' => array('is_numeric', time()),
  125. 'desc' => '',
  126. # 只有insert时才生效
  127. 'insert' => true,
  128. ),
  129. ),
  130. 'default' => array
  131. (
  132. 'col' => 'name,info,cdate',
  133. 'value' => array
  134. (
  135. '"合小记","合小记",' . time(),
  136. ),
  137. ),
  138. 'manage' => array
  139. (
  140. # 后台管理不要列表页
  141. 'list' => 'update',
  142. ),
  143. );