info_off.php 4.1 KB

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