info_off.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'info_off',
  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. // 'active_id' => array
  26. // (
  27. // 'type' => 'int-11',
  28. // 'name' => '活动名称',
  29. // 'default' => '-1',
  30. // 'desc' => '活动名称',
  31. // 'match' => 'is_string',
  32. // 'value' => Dever::input('search_option_active_id'),
  33. // 'update' => 'hidden',
  34. // // 'search' => 'text',
  35. // // 'list' => true,
  36. // ),
  37. 'name' => array
  38. (
  39. 'type' => 'varchar-200',
  40. 'name' => '核销人员姓名',
  41. 'default' => '',
  42. 'desc' => '核销人员姓名',
  43. 'match' => 'is_string',
  44. 'update' => 'text',
  45. 'search' => 'fulltext',
  46. 'list' => true,
  47. ),
  48. 'mobile' => array
  49. (
  50. 'type' => 'bigint-11',
  51. 'name' => '核销人员电话',
  52. 'default' => '',
  53. 'desc' => '请输入电话',
  54. 'match' => 'is_numeric',
  55. 'update' => 'text',
  56. 'search' => 'fulltext',
  57. 'list' => true,
  58. ),
  59. 'pass' => array
  60. (
  61. 'type' => 'varchar-200',
  62. 'name' => '登录密码',
  63. 'default' => '',
  64. 'desc' => '登录密码',
  65. 'match' => 'is_string',
  66. 'update' => 'text',
  67. 'search' => 'fulltext',
  68. // 'list' => true,
  69. ),
  70. 'reorder' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '排序-数值越大越靠前',
  74. 'default' => '1',
  75. 'desc' => '请输入排序',
  76. 'match' => 'option',
  77. 'update' => 'text',
  78. 'search' => 'order',
  79. 'list' => true,
  80. 'order' => 'desc',
  81. 'edit' => true,
  82. ),
  83. 'state' => array
  84. (
  85. 'type' => 'tinyint-1',
  86. 'name' => '状态',
  87. 'default' => '1',
  88. 'desc' => '请选择状态',
  89. 'match' => 'is_numeric',
  90. ),
  91. 'cdate' => array
  92. (
  93. 'type' => 'int-11',
  94. 'name' => '创建时间',
  95. 'match' => array('is_numeric', time()),
  96. 'desc' => '',
  97. # 只有insert时才生效
  98. 'insert' => true,
  99. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  100. ),
  101. ),
  102. 'manage' => array
  103. (
  104. //'insert' => false,
  105. 'delete' => false,
  106. // 'edit' => false,
  107. ),
  108. 'request' => array
  109. (
  110. 'getData' => array
  111. (
  112. # 匹配的正则或函数 选填项
  113. 'option' => array
  114. (
  115. //'id' => array('yes', '!='),
  116. 'state' => 1,
  117. ),
  118. 'type' => 'all',
  119. 'order' => array('id' => 'desc'),
  120. 'col' => '*|id',
  121. ),
  122. 'getAll' => array
  123. (
  124. # 匹配的正则或函数 选填项
  125. 'option' => array
  126. (
  127. // 'id' => array('yes','>'),
  128. 'state' => 1,
  129. ),
  130. 'type' => 'all',
  131. 'order' => array('reorder' => 'desc', 'id' => 'asc'),
  132. 'col' => '*',
  133. ),
  134. ),
  135. );