feedback_type.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'feedback_type',
  6. # 显示给用户看的名称
  7. 'lang' => '反馈分类设置',
  8. # 后台菜单排序
  9. 'order' => 1,
  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. 'search' => 'order',
  21. 'list' => true,
  22. 'order' => 'desc',
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-32',
  27. 'name' => '分类名称',
  28. 'default' => '',
  29. 'desc' => '请输入名称',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. ),
  35. 'reorder' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => '排序(数值越大越靠前)',
  39. 'default' => '1',
  40. 'desc' => '请输入排序',
  41. 'match' => 'option',
  42. 'update' => 'text',
  43. 'search' => 'order',
  44. 'list' => true,
  45. 'order' => 'desc',
  46. 'edit' => true,
  47. ),
  48. 'state' => array
  49. (
  50. 'type' => 'tinyint-1',
  51. 'name' => '状态',
  52. 'default' => '1',
  53. 'desc' => '请选择状态',
  54. 'match' => 'is_numeric',
  55. ),
  56. 'cdate' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '录入时间',
  60. 'match' => array('is_numeric', time()),
  61. 'desc' => '',
  62. # 只有insert时才生效
  63. 'insert' => true,
  64. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  65. ),
  66. ),
  67. # 默认值
  68. 'default' => array
  69. (
  70. 'col' => 'name,state,cdate',
  71. 'value' => array
  72. (
  73. '"默认分类",1,' . time(),
  74. ),
  75. ),
  76. 'manage' => array
  77. (
  78. 'insert' => false,
  79. 'edit' => false,
  80. # 自定义快捷新增和编辑
  81. 'button' => array
  82. (
  83. '新增' => array('fast'),
  84. ),
  85. # 快捷更新
  86. 'list_button' => array
  87. (
  88. 'edit' => array('编辑'),
  89. ),
  90. ),
  91. 'request' => array
  92. (
  93. 'getAll' => array
  94. (
  95. # 匹配的正则或函数 选填项
  96. 'option' => array
  97. (
  98. 'state' => 1,
  99. ),
  100. 'type' => 'all',
  101. 'order' => array('reorder' => 'desc','id' => 'desc'),
  102. 'col' => '*',
  103. ),
  104. ),
  105. );