config.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. $code = array
  3. (
  4. 1 => '用户ID',
  5. 2 => '随机数字',
  6. 3 => '随机数字+字母',
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'config',
  12. # 显示给用户看的名称
  13. 'lang' => '基本配置',
  14. 'order' => 1,
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => '系统ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. ),
  26. 'hr1' => array
  27. (
  28. 'name' => '通用设置',
  29. 'class' => '',//本项必须填写
  30. 'attr' => '',
  31. ),
  32. 'name' => array
  33. (
  34. 'type' => 'varchar-32',
  35. 'name' => '系统名称',
  36. 'default' => '',
  37. 'desc' => '请输入系统名称',
  38. 'match' => 'is_string',
  39. 'update' => 'text',
  40. ),
  41. 'info' => array
  42. (
  43. 'type' => 'text-255',
  44. 'name' => '系统介绍',
  45. 'default' => '',
  46. 'desc' => '请输入系统介绍',
  47. 'match' => 'option',
  48. 'update' => 'textarea',
  49. ),
  50. 'logo' => array
  51. (
  52. 'type' => 'varchar-150',
  53. 'name' => 'logo图片',
  54. 'default' => '',
  55. 'desc' => 'logo图片',
  56. 'match' => 'option',
  57. 'update' => 'image',
  58. 'key' => '1',
  59. 'place' => '150',
  60. ),
  61. 'cdate' => array
  62. (
  63. 'type' => 'int-11',
  64. 'name' => '录入时间',
  65. 'match' => array('is_numeric', time()),
  66. 'desc' => '',
  67. # 只有insert时才生效
  68. 'insert' => true,
  69. ),
  70. ),
  71. 'default' => array
  72. (
  73. 'col' => 'name,info,cdate',
  74. 'value' => array
  75. (
  76. '"精美时尚内容平台","精美时尚内容平台",' . time(),
  77. ),
  78. ),
  79. /*
  80. 'alter' => array
  81. (
  82. 2 => array
  83. (
  84. array('update', 'task_id', 'task_id', 'varchar-800 软装任务链接'),
  85. //array('add', 'config', 'config', 'int-11 1 配置'),
  86. ),
  87. 'version' => 2,
  88. ),
  89. */
  90. 'manage' => array
  91. (
  92. # 后台管理不要列表页
  93. 'list' => 'update',
  94. ),
  95. );