option_exercise.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'option_exercise',
  6. # 显示给用户看的名称
  7. 'lang' => '行权条件',
  8. # 后台菜单排序
  9. 'order' => 2,
  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. 'search' => 'order',
  22. 'list' => true,
  23. 'order' => 'desc',
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-200',
  28. 'name' => '条件名',
  29. 'default' => '',
  30. 'desc' => '条件名',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. 'search' => 'fulltext',
  34. 'list' => true,
  35. ),
  36. 'reorder' => array
  37. (
  38. 'type' => 'int-11',
  39. 'name' => '排序-数值越大越靠前',
  40. 'default' => '1',
  41. 'desc' => '请输入排序',
  42. 'match' => 'option',
  43. 'update' => 'text',
  44. 'search' => 'order',
  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. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  66. ),
  67. ),
  68. 'manage' => array
  69. (
  70. //'insert' => false,
  71. // 'delete' => false,
  72. // 'edit' => false,
  73. ),
  74. 'request' => array
  75. (
  76. 'getSearch' => array
  77. (
  78. # 匹配的正则或函数 选填项
  79. 'option' => array
  80. (
  81. 'col' => array('yes-mobile,name', 'like'),
  82. ),
  83. 'type' => 'all',
  84. 'col' => '*|id',
  85. ),
  86. ),
  87. );