import_cash_log.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. $type = array
  3. (
  4. 1 => '余额',
  5. 2 => '团队业绩',
  6. 3 => '直推创客数量',
  7. );
  8. $role = function()
  9. {
  10. $array = array(
  11. 0 => array
  12. (
  13. 'id' => 0,
  14. 'name' => '选择角色',
  15. ),
  16. );
  17. $data = Dever::load('setting/lib/manage.role');
  18. if($data)
  19. {
  20. $array += $data;
  21. }
  22. return $array;
  23. };
  24. return array
  25. (
  26. # 表名
  27. 'name' => 'import_cash_log',
  28. # 显示给用户看的名称
  29. 'lang' => '导入记录',
  30. 'order' => 9,
  31. 'menu' => false,
  32. # 数据结构
  33. 'struct' => array
  34. (
  35. 'id' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => 'ID',
  39. 'default' => '',
  40. 'desc' => '',
  41. 'match' => 'is_numeric',
  42. 'search' => 'order',
  43. 'update' => 'hidden',
  44. //'list' => true,
  45. ),
  46. 'mid' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '代理商姓名/手机号',
  50. 'default' => '-1',
  51. 'desc' => '代理商',
  52. 'match' => 'is_string',
  53. 'update' => 'text',
  54. 'search' => array
  55. (
  56. 'api' => 'agent/member-getSearch',
  57. 'col' => 'col',
  58. 'result' => 'id',
  59. 'search' => 'mid',
  60. ),
  61. //'list_name' => '姓名',
  62. //'list' => 'Dever::load("agent/lib/member.getOne", {mid}, "agent/member", true)',
  63. //'list_order' => 1,
  64. ),
  65. 'agent-member-name' => array
  66. (
  67. 'type' => 'int-11',
  68. 'name' => '姓名',
  69. 'default' => '',
  70. 'desc' => '姓名',
  71. 'match' => 'is_numeric',
  72. 'sync' => array('mid', 'id'),
  73. 'list' => true,
  74. ),
  75. 'agent-member-mobile' => array
  76. (
  77. 'type' => 'int-11',
  78. 'name' => '手机号',
  79. 'default' => '',
  80. 'desc' => '手机号',
  81. 'match' => 'is_numeric',
  82. 'sync' => array('mid', 'id'),
  83. 'list' => true,
  84. ),
  85. 'agent-member-role' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '代理角色',
  89. 'default' => '',
  90. 'desc' => '代理角色',
  91. 'match' => 'is_numeric',
  92. 'search' => array
  93. (
  94. 'api' => 'agent/member-all',
  95. 'col' => 'role',
  96. 'result' => 'id',
  97. 'search' => 'mid',
  98. 'option' => $role,
  99. ),
  100. 'sync' => array('mid', 'id'),
  101. 'list' => 'Dever::load("setting/role-one#name", "{agent-member-role}")',
  102. ),
  103. 'type' => array
  104. (
  105. 'type' => 'tinyint-1',
  106. 'name' => '类型',
  107. 'default' => '1',
  108. 'desc' => '类型',
  109. 'match' => 'is_numeric',
  110. 'search' => 'select',
  111. 'option' => $type,
  112. 'update' => 'radio',
  113. 'control' => 'type',
  114. 'list' => true,
  115. ),
  116. 'num' => array
  117. (
  118. 'type' => 'varchar-200',
  119. 'name' => '具体数值',
  120. 'default' => '',
  121. 'desc' => '具体数值',
  122. 'match' => 'is_numeric',
  123. 'update' => 'text',
  124. 'list' => true,
  125. ),
  126. 'state' => array
  127. (
  128. 'type' => 'tinyint-1',
  129. 'name' => '状态',
  130. 'default' => '1',
  131. 'desc' => '请选择状态',
  132. 'match' => 'is_numeric',
  133. ),
  134. 'cdate' => array
  135. (
  136. 'type' => 'int-11',
  137. 'name' => '升级时间',
  138. 'match' => array('is_numeric', time()),
  139. 'desc' => '',
  140. # 只有insert时才生效
  141. 'insert' => true,
  142. //'search' => 'date',
  143. //'list' => 'date("Y-m-d H:i", {cdate})',
  144. //'list_order' => 2,
  145. ),
  146. ),
  147. 'manage' => array
  148. (
  149. 'edit' => false,
  150. 'insert' => false,
  151. //'delete' => false,
  152. 'excel' => true,
  153. ),
  154. 'request' => array
  155. (
  156. ),
  157. );