push_cash.php 3.6 KB

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