msg_form.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. 'form_id' => array
  31. (
  32. 'type' => 'varchar-200',
  33. 'name' => 'form_id',
  34. 'default' => '',
  35. 'desc' => 'form_id',
  36. 'match' => 'is_string',
  37. 'update' => 'text',
  38. 'list' => true,
  39. ),
  40. 'state' => array
  41. (
  42. 'type' => 'tinyint-1',
  43. 'name' => '状态',
  44. 'default' => '1',
  45. 'desc' => '请选择状态',
  46. 'match' => 'is_numeric',
  47. ),
  48. 'cdate' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '更新时间',
  52. 'match' => array('is_numeric', time()),
  53. 'desc' => '',
  54. 'default' => '',
  55. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  56. ),
  57. ),
  58. 'top' => Dever::config('base', 'applet')->top,
  59. 'manage' => array
  60. (
  61. 'delete' => false,
  62. 'insert' => false,
  63. 'edit' => false,
  64. ),
  65. 'request' => array
  66. (
  67. 'getAll' => array
  68. (
  69. # 匹配的正则或函数 选填项
  70. 'option' => array
  71. (
  72. 'cdate' => array(time()+(3600*24*7), '<='),
  73. 'state' => 1,
  74. ),
  75. 'type' => 'all',
  76. 'order' => array('cdate' => 'desc'),
  77. 'limit' => '0,100',
  78. 'col' => '*',
  79. ),
  80. ),
  81. );