msg_form.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. $time = time()+(3600*24*7);
  3. return array
  4. (
  5. # 表名
  6. 'name' => 'msg_form',
  7. # 显示给用户看的名称
  8. 'lang' => '模板form_id收集表',
  9. 'menu' => false,
  10. # 数据结构
  11. 'struct' => array
  12. (
  13. 'id' => array
  14. (
  15. 'type' => 'int-11',
  16. 'name' => 'ID',
  17. 'default' => '',
  18. 'desc' => '',
  19. 'match' => 'is_numeric',
  20. 'search' => 'order',
  21. 'list' => true,
  22. ),
  23. 'project_id' => array
  24. (
  25. 'type' => 'int-11',
  26. 'name' => '项目',
  27. 'default' => '',
  28. 'desc' => '请输入项目',
  29. 'match' => 'is_numeric',
  30. ),
  31. 'openid' => array
  32. (
  33. 'type' => 'varchar-120',
  34. 'name' => '用户openid',
  35. 'default' => '',
  36. 'desc' => '用户openid',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. 'list' => true,
  40. ),
  41. 'form_id' => array
  42. (
  43. 'type' => 'varchar-200',
  44. 'name' => 'form_id',
  45. 'default' => '',
  46. 'desc' => 'form_id',
  47. 'match' => 'is_string',
  48. 'update' => 'text',
  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. 'default' => '',
  66. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  67. ),
  68. ),
  69. 'top' => Dever::config('base', 'applet')->top,
  70. 'manage' => array
  71. (
  72. //'delete' => false,
  73. 'insert' => false,
  74. 'edit' => false,
  75. ),
  76. 'request' => array
  77. (
  78. 'getAll' => array
  79. (
  80. # 匹配的正则或函数 选填项
  81. 'option' => array
  82. (
  83. 'openid' => 'yes',
  84. 'cdate' => array($time, '<='),
  85. 'state' => 1,
  86. ),
  87. 'type' => 'all',
  88. 'order' => array('cdate' => 'desc'),
  89. 'limit' => '0,100',
  90. 'col' => '*',
  91. ),
  92. 'getAllGroupByOpenid' => array
  93. (
  94. # 匹配的正则或函数 选填项
  95. 'option' => array
  96. (
  97. 'cdate' => array($time, '<='),
  98. 'state' => 1,
  99. ),
  100. 'type' => 'all',
  101. 'group' => 'openid',
  102. 'order' => array('cdate' => 'desc'),
  103. 'col' => '*',
  104. ),
  105. ),
  106. );