base.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'base',
  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. 'name' => array
  21. (
  22. 'type' => 'varchar-32',
  23. 'name' => '系统名称',
  24. 'default' => '',
  25. 'desc' => '请输入系统名称',
  26. 'match' => 'is_string',
  27. 'update' => 'text',
  28. ),
  29. 'phone' => array
  30. (
  31. 'type' => 'varchar-100',
  32. 'name' => '客服电话',
  33. 'default' => '',
  34. 'desc' => '请输入客服电话',
  35. 'match' => 'option',
  36. 'update' => 'text',
  37. ),
  38. 'state' => array
  39. (
  40. 'type' => 'tinyint-1',
  41. 'name' => '状态',
  42. 'default' => '1',
  43. 'desc' => '请选择状态',
  44. 'match' => 'is_numeric',
  45. ),
  46. 'cdate' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '录入时间',
  50. 'match' => array('is_numeric', time()),
  51. 'desc' => '',
  52. # 只有insert时才生效
  53. 'insert' => true,
  54. ),
  55. ),
  56. 'default' => array
  57. (
  58. 'col' => 'name,cdate',
  59. 'value' => array
  60. (
  61. '"商学院",' . time(),
  62. ),
  63. ),
  64. 'manage' => array
  65. (
  66. # 后台管理不要列表页
  67. 'list' => 'update',
  68. ),
  69. );