push_cash.php 4.3 KB

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