push_cash.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. $aid = Dever::input('search_option_aid');
  3. $mid = Dever::input('search_option_mid');
  4. $option_type = Dever::input('type');
  5. if ($option_type == 1) {
  6. $type = array
  7. (
  8. 1 => '期权交付',
  9. //2 => '期权发放',
  10. //3 => '期权兑付',
  11. 4 => '原始期权交付',
  12. //5 => '原始期权发放',
  13. //6 => '原始期权兑付',
  14. );
  15. $type_value = '1';
  16. } else {
  17. $type = array
  18. (
  19. //1 => '期权交付',
  20. 2 => '期权发放',
  21. //3 => '期权兑付',
  22. //4 => '原始期权交付',
  23. 5 => '原始期权发放',
  24. //6 => '原始期权兑付',
  25. );
  26. $type_value = '2';
  27. }
  28. $status = array
  29. (
  30. 1 => '操作成功',
  31. 2 => '操作失败',
  32. );
  33. return array
  34. (
  35. # 表名
  36. 'name' => 'push_cash',
  37. # 显示给用户看的名称
  38. 'lang' => '发放资金',
  39. 'order' => 99,
  40. 'menu' => false,
  41. 'end' => array
  42. (
  43. 'insert' => 'option/lib/manage.cashUpdate',
  44. ),
  45. # 数据结构
  46. 'struct' => array
  47. (
  48. 'id' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => 'ID',
  52. 'default' => '',
  53. 'desc' => '',
  54. 'match' => 'is_numeric',
  55. 'search' => 'order',
  56. //'list' => true,
  57. ),
  58. 'aid' => array
  59. (
  60. 'type' => 'int-11',
  61. 'name' => '期权登录账户',
  62. 'default' => '-1',
  63. 'desc' => '期权登录账户',
  64. 'match' => 'is_string',
  65. 'update' => 'hidden',
  66. 'value' => $aid,
  67. ),
  68. 'mid' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '期权账户',
  72. 'default' => '-1',
  73. 'desc' => '期权账户',
  74. 'match' => 'is_string',
  75. 'update' => 'hidden',
  76. 'value' => $mid,
  77. ),
  78. 'type' => array
  79. (
  80. 'type' => 'tinyint-1',
  81. 'name' => '操作类型',
  82. 'default' => $type_value,
  83. 'desc' => '操作类型',
  84. 'match' => 'is_numeric',
  85. 'option' => $type,
  86. 'update' => 'radio',
  87. ),
  88. 'cash' => array
  89. (
  90. 'type' => 'decimal-11,2',
  91. 'name' => '操作金额-金额单位为元',
  92. 'default' => '',
  93. 'desc' => '操作金额',
  94. 'match' => 'is_numeric',
  95. 'update' => 'text',
  96. ),
  97. 'desc' => array
  98. (
  99. 'type' => 'varchar-600',
  100. 'name' => '备注',
  101. 'default' => '',
  102. 'desc' => '备注',
  103. 'match' => 'option',
  104. 'update' => 'textarea',
  105. ),
  106. 'admin_founder' => array
  107. (
  108. 'type' => 'int-11',
  109. 'name' => '插入操作人',
  110. 'default' => '',
  111. 'desc' => '',
  112. 'match' => 'is_numeric',
  113. 'search' => 'order',
  114. //'list' => true,
  115. ),
  116. 'admin_editor' => array
  117. (
  118. 'type' => 'int-11',
  119. 'name' => '更新操作人',
  120. 'default' => '',
  121. 'desc' => '',
  122. 'match' => 'is_numeric',
  123. 'search' => 'order',
  124. //'list' => true,
  125. ),
  126. 'status' => array
  127. (
  128. 'type' => 'int-11',
  129. 'name' => '发放状态',
  130. 'default' => '1',
  131. 'desc' => '发放状态',
  132. 'match' => 'is_numeric',
  133. 'update' => 'hidden',
  134. 'option' => $status,
  135. ),
  136. 'state' => array
  137. (
  138. 'type' => 'tinyint-1',
  139. 'name' => '状态',
  140. 'default' => '1',
  141. 'desc' => '请选择状态',
  142. 'match' => 'is_numeric',
  143. ),
  144. 'cdate' => array
  145. (
  146. 'type' => 'int-11',
  147. 'name' => '交易时间',
  148. 'match' => array('is_numeric', time()),
  149. 'desc' => '',
  150. # 只有insert时才生效
  151. //'insert' => true,
  152. 'search' => 'date',
  153. 'list' => 'date("Y-m-d H:i", {cdate})',
  154. 'list_order' => 2,
  155. ),
  156. ),
  157. 'alter' => array
  158. (
  159. 5 => array
  160. (
  161. array('update', 'cash', 'cash', 'decimal-11,2 0 操作金额'),
  162. ),
  163. 'version' => 5,
  164. ),
  165. 'manage' => array
  166. (
  167. 'insert' => false,
  168. 'delete' => false,
  169. 'edit' => false,
  170. 'page_list' => 'push_cash',
  171. 'list_button' => array
  172. (
  173. ),
  174. ),
  175. 'request' => array
  176. (
  177. ),
  178. );