msg_form.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'msg_form',
  6. # 显示给用户看的名称
  7. 'lang' => '模板form_id收集表',
  8. 'menu' => false,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. 'search' => 'order',
  20. 'list' => true,
  21. ),
  22. 'project_id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => '项目',
  26. 'default' => '',
  27. 'desc' => '请输入项目',
  28. 'match' => 'is_numeric',
  29. ),
  30. 'openid' => array
  31. (
  32. 'type' => 'varchar-120',
  33. 'name' => '用户openid',
  34. 'default' => '',
  35. 'desc' => '用户openid',
  36. 'match' => 'is_string',
  37. 'update' => 'text',
  38. 'list' => true,
  39. ),
  40. 'form_id' => array
  41. (
  42. 'type' => 'varchar-200',
  43. 'name' => 'form_id',
  44. 'default' => '',
  45. 'desc' => 'form_id',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'list' => true,
  49. ),
  50. 'state' => array
  51. (
  52. 'type' => 'tinyint-1',
  53. 'name' => '状态',
  54. 'default' => '1',
  55. 'desc' => '请选择状态',
  56. 'match' => 'is_numeric',
  57. ),
  58. 'cdate' => array
  59. (
  60. 'type' => 'int-11',
  61. 'name' => '更新时间',
  62. 'match' => array('is_numeric', time()),
  63. 'desc' => '',
  64. 'default' => '',
  65. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  66. ),
  67. ),
  68. 'top' => Dever::config('base', 'applet')->top,
  69. 'manage' => array
  70. (
  71. //'delete' => false,
  72. 'insert' => false,
  73. 'edit' => false,
  74. ),
  75. 'request' => array
  76. (
  77. 'getAll' => array
  78. (
  79. # 匹配的正则或函数 选填项
  80. 'option' => array
  81. (
  82. 'openid' => 'yes',
  83. 'cdate' => array(time()+(3600*24*7), '<='),
  84. 'state' => 1,
  85. ),
  86. 'type' => 'all',
  87. 'order' => array('cdate' => 'desc'),
  88. 'limit' => '0,100',
  89. 'col' => '*',
  90. ),
  91. ),
  92. );