project.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'project',
  6. # 显示给用户看的名称
  7. 'lang' => '项目管理',
  8. 'order' => -10,
  9. 'check' => 'key',
  10. 'end' => array
  11. (
  12. 'insert' => 'log/lib/manage.create',
  13. 'update' => 'log/lib/manage.create',
  14. ),
  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. //'search' => 'order',
  26. 'order' => 'desc',
  27. 'list' => true,
  28. ),
  29. 'name' => array
  30. (
  31. 'type' => 'varchar-60',
  32. 'name' => '项目名称',
  33. 'default' => '',
  34. 'desc' => '请输入项目名称',
  35. 'match' => 'is_string',
  36. 'update' => 'text',
  37. 'search' => 'fulltext',
  38. 'list' => true,
  39. ),
  40. 'key' => array
  41. (
  42. 'type' => 'varchar-60',
  43. 'name' => '项目标识',
  44. 'default' => '',
  45. 'desc' => '请输入项目标识',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'search' => 'fulltext',
  49. 'list' => true,
  50. ),
  51. 'state' => array
  52. (
  53. 'type' => 'tinyint-1',
  54. 'name' => '状态',
  55. 'default' => '1',
  56. 'desc' => '请选择状态',
  57. 'match' => 'is_numeric',
  58. ),
  59. 'cdate' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '录入时间',
  63. 'match' => array('is_numeric', time()),
  64. 'desc' => '',
  65. # 只有insert时才生效
  66. 'insert' => true,
  67. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  68. ),
  69. ),
  70. 'manage' => array
  71. (
  72. ),
  73. # 默认值
  74. 'default' => array
  75. (
  76. 'col' => 'name,`key`,state,cdate',
  77. 'value' => array
  78. (
  79. '"默认项目","default",1,' . time(),
  80. ),
  81. ),
  82. # request 请求接口定义
  83. 'request' => array
  84. (
  85. ),
  86. );