config.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config',
  6. # 显示给用户看的名称
  7. 'lang' => '基本配置',
  8. 'order' => 1,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => '系统ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. ),
  20. 'hr1' => array
  21. (
  22. 'name' => '通用设置',
  23. 'class' => '',//本项必须填写
  24. 'attr' => '',
  25. ),
  26. 'name' => array
  27. (
  28. 'type' => 'varchar-32',
  29. 'name' => '站点名称',
  30. 'default' => '',
  31. 'desc' => '请输入站点名称',
  32. 'match' => 'is_string',
  33. 'update' => 'text',
  34. ),
  35. 'info' => array
  36. (
  37. 'type' => 'text-255',
  38. 'name' => '站点名称',
  39. 'default' => '',
  40. 'desc' => '请输入站点名称',
  41. 'match' => 'option',
  42. 'update' => 'textarea',
  43. ),
  44. 'logo' => array
  45. (
  46. 'type' => 'varchar-150',
  47. 'name' => 'logo图片',
  48. 'default' => '',
  49. 'desc' => 'logo图片',
  50. 'match' => 'option',
  51. 'update' => 'image',
  52. 'key' => '1',
  53. 'place' => '150',
  54. ),
  55. 'foot' => array
  56. (
  57. 'type' => 'text-255',
  58. 'name' => '底部联系信息',
  59. 'default' => '',
  60. 'desc' => '底部联系信息',
  61. 'match' => 'option',
  62. 'update' => 'editor',
  63. ),
  64. 'cdate' => array
  65. (
  66. 'type' => 'int-11',
  67. 'name' => '录入时间',
  68. 'match' => array('is_numeric', time()),
  69. 'desc' => '',
  70. # 只有insert时才生效
  71. 'insert' => true,
  72. ),
  73. ),
  74. 'default' => array
  75. (
  76. 'col' => 'name,info,cdate',
  77. 'value' => array
  78. (
  79. '"读道文旅在线服务","读道文旅在线服务",' . time(),
  80. ),
  81. ),
  82. 'manage' => array
  83. (
  84. # 后台管理不要列表页
  85. 'list' => 'update',
  86. ),
  87. );