info_off.php 4.3 KB

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