unit.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'unit',
  6. # 显示给用户看的名称
  7. 'lang' => '单位管理',
  8. # 是否显示在后台菜单
  9. 'order' => 10,
  10. 'menu' => false,
  11. # 数据结构
  12. 'struct' => array
  13. (
  14. 'id' => array
  15. (
  16. 'type' => 'int-11',
  17. 'name' => 'ID',
  18. 'default' => '',
  19. 'desc' => '',
  20. 'match' => 'is_numeric',
  21. 'list' => true,
  22. ),
  23. 'name' => array
  24. (
  25. 'type' => 'varchar-150',
  26. 'name' => '单位名称',
  27. 'default' => '',
  28. 'desc' => '单位名称',
  29. 'match' => 'is_string',
  30. 'update' => 'text',
  31. 'search' => 'fulltext',
  32. 'list' => true,
  33. 'edit' => 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_name' => '排序',
  45. 'list' => true,
  46. 'order' => 'desc',
  47. 'edit' => true,
  48. ),
  49. 'state' => array
  50. (
  51. 'type' => 'tinyint-1',
  52. 'name' => '状态',
  53. 'default' => '1',
  54. 'desc' => '请选择状态',
  55. 'match' => 'is_numeric',
  56. ),
  57. 'cdate' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '录入时间',
  61. 'match' => array('is_numeric', time()),
  62. 'desc' => '',
  63. # 只有insert时才生效
  64. 'insert' => true,
  65. //'search' => 'date',
  66. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  67. ),
  68. ),
  69. 'manage' => array
  70. (
  71. ),
  72. 'request' => array
  73. (
  74. )
  75. );