yspay_merchant_log.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. $type = array
  3. (
  4. 1 => '划付',
  5. 2 => '分账',
  6. 3 => '提现',
  7. );
  8. $link = Dever::decode(Dever::input('refer'));
  9. $button = array
  10. (
  11. '返回上一页' => array('location', $link),
  12. );
  13. return array
  14. (
  15. # 表名
  16. 'name' => 'yspay_merchant_log',
  17. # 显示给用户看的名称
  18. 'lang' => '银联资金日志列表',
  19. 'order' => -200,
  20. 'menu' => false,
  21. # 数据结构
  22. 'struct' => array
  23. (
  24. 'id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => 'ID',
  28. 'default' => '',
  29. 'desc' => '',
  30. 'match' => 'is_numeric',
  31. 'search' => 'order',
  32. 'update' => 'hidden',
  33. //'list' => true,
  34. ),
  35. 'account_id' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => '账户id',
  39. 'default' => '',
  40. 'desc' => '账户id',
  41. 'match' => 'option',
  42. 'search' => 'hidden',
  43. 'update' => 'hidden',
  44. 'value' => Dever::input('search_option_account_id'),
  45. ),
  46. 'merchant_id' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '商户id',
  50. 'default' => '',
  51. 'desc' => '商户id',
  52. 'match' => 'option',
  53. 'update' => 'hidden',
  54. 'value' => Dever::input('search_option_merchant_id'),
  55. 'list_name' => '商户名称',
  56. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  57. ),
  58. 'type' => array
  59. (
  60. 'type' => 'int-11',
  61. 'name' => '类型',
  62. 'default' => '',
  63. 'desc' => '类型',
  64. 'match' => 'is_numeric',
  65. 'update' => 'text',
  66. 'option' => $type,
  67. ),
  68. 'cash' => array
  69. (
  70. 'type' => 'int-11',
  71. 'name' => '交易金额',
  72. 'default' => '0',
  73. 'desc' => '交易金额',
  74. 'match' => 'option',
  75. 'update' => 'text',
  76. 'list' => 'Dever::number({cash}/1000, 2)',
  77. ),
  78. 'yue' => array
  79. (
  80. 'type' => 'int-11',
  81. 'name' => '交易后余额',
  82. 'default' => '0',
  83. 'desc' => '交易后余额',
  84. 'match' => 'option',
  85. 'update' => 'text',
  86. 'list' => 'Dever::number({yue}/1000, 2)',
  87. ),
  88. 'state' => array
  89. (
  90. 'type' => 'tinyint-1',
  91. 'name' => '状态',
  92. 'default' => '1',
  93. 'desc' => '请选择状态',
  94. 'match' => 'is_numeric',
  95. ),
  96. 'cdate' => array
  97. (
  98. 'type' => 'int-11',
  99. 'name' => '交易时间',
  100. 'match' => array('is_numeric', time()),
  101. 'desc' => '',
  102. # 只有insert时才生效
  103. //'insert' => true,
  104. 'search' => 'date',
  105. 'list' => 'date("Y-m-d H:i", {cdate})',
  106. ),
  107. ),
  108. 'manage' => array
  109. (
  110. 'edit' => false,
  111. 'insert' => false,
  112. 'delete' => false,
  113. 'button' => $button,
  114. ),
  115. 'request' => array
  116. (
  117. ),
  118. );