config_project.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config_project',
  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. 'order' => 'asc',
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-150',
  27. 'name' => '项目名称',
  28. 'default' => '',
  29. 'desc' => '项目名称',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. 'edit' => true,
  35. ),
  36. 'source' => array
  37. (
  38. 'type' => 'varchar-800',
  39. 'name' => '账户信息来源-一般为用户信息表,直接填写项目/表名即可,如passport/user',
  40. 'default' => '',
  41. 'desc' => '账户信息来源',
  42. 'match' => 'option',
  43. 'update' => 'text',
  44. 'list' => true,
  45. ),
  46. 'source_name' => array
  47. (
  48. 'type' => 'varchar-50',
  49. 'name' => '账户名称字段-账户名称字段,一般为name',
  50. 'default' => '',
  51. 'desc' => '账户名称字段',
  52. 'match' => 'option',
  53. 'update' => 'text',
  54. 'list' => true,
  55. ),
  56. 'reorder' => array
  57. (
  58. 'type' => 'int-11',
  59. 'name' => '排序(数值越大越靠前)',
  60. 'default' => '1',
  61. 'desc' => '请输入排序',
  62. 'match' => 'option',
  63. //'update' => 'text',
  64. 'search' => 'order',
  65. 'list_name' => '排序',
  66. 'list' => true,
  67. 'order' => 'desc',
  68. 'edit' => true,
  69. ),
  70. 'state' => array
  71. (
  72. 'type' => 'tinyint-1',
  73. 'name' => '状态',
  74. 'default' => '1',
  75. 'desc' => '请选择状态',
  76. 'match' => 'is_numeric',
  77. ),
  78. 'cdate' => array
  79. (
  80. 'type' => 'int-11',
  81. 'name' => '录入时间',
  82. 'match' => array('is_numeric', time()),
  83. 'desc' => '',
  84. # 只有insert时才生效
  85. 'insert' => true,
  86. //'search' => 'date',
  87. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  88. ),
  89. ),
  90. 'manage' => array
  91. (
  92. 'insert' => false,
  93. 'edit' => false,
  94. # 自定义快捷新增和编辑
  95. 'button' => array
  96. (
  97. '新增' => array('fast'),
  98. ),
  99. 'list_button' => array
  100. (
  101. 'edit' => array('编辑'),
  102. )
  103. ),
  104. 'default' => array
  105. (
  106. 'col' => 'name,source,source_name,state,cdate',
  107. 'value' => array
  108. (
  109. '"默认项目","user/info","name", 1,' . DEVER_TIME,
  110. ),
  111. ),
  112. 'request' => array
  113. (
  114. )
  115. );