info_code.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'info_code',
  6. # 显示给用户看的名称
  7. 'lang' => '活动核销码',
  8. # 后台菜单排序
  9. 'order' => 2,
  10. 'menu' => false,
  11. 'start' => array
  12. (
  13. 'insert' => 'active/lib/manage.insertInfoCode',
  14. ),
  15. 'end' => array
  16. (
  17. 'insert' => 'active/lib/manage.updateInfoCode',
  18. 'update' => 'active/lib/manage.updateInfoCode',
  19. ),
  20. # 数据结构
  21. 'struct' => array
  22. (
  23. 'id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => 'ID',
  27. 'default' => '',
  28. 'desc' => '',
  29. 'match' => 'is_numeric',
  30. 'search' => 'order',
  31. 'list' => true,
  32. 'order' => 'desc',
  33. ),
  34. 'code' => array
  35. (
  36. 'type' => 'varchar-200',
  37. 'name' => '核销码/手机号',
  38. 'default' => '',
  39. 'desc' => '核销码',
  40. 'match' => 'is_string',
  41. 'update' => 'text',
  42. 'value' => '',
  43. // 'search' => 'fulltext',
  44. // 'list' => true,
  45. 'bind' => array('onblur', 'loading', array('url' => Dever::url("active/lib/manage.search"))),
  46. ),
  47. 'state' => array
  48. (
  49. 'type' => 'tinyint-1',
  50. 'name' => '状态',
  51. 'default' => '1',
  52. 'desc' => '请选择状态',
  53. 'match' => 'is_numeric',
  54. ),
  55. 'cdate' => array
  56. (
  57. 'type' => 'int-11',
  58. 'name' => '领取日期',
  59. 'match' => array('is_numeric', time()),
  60. 'desc' => '',
  61. # 只有insert时才生效
  62. 'insert' => true,
  63. 'search' => 'day',
  64. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  65. 'list_order' => 5,
  66. ),
  67. ),
  68. 'manage' => array
  69. (
  70. 'insert' => false,
  71. 'delete' => false,
  72. 'edit' => false,
  73. 'page_list' => 'info_code',
  74. ),
  75. 'request' => array
  76. (
  77. 'getAll' => array
  78. (
  79. # 匹配的正则或函数 选填项
  80. 'option' => array
  81. (
  82. 'join_id' => 'yes',
  83. 'state' => 1,
  84. ),
  85. 'type' => 'all',
  86. 'order' => array('cdate' => 'desc'),
  87. 'col' => '*',
  88. ),
  89. ),
  90. );