push_cash.php 3.9 KB

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