index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <include file="public@header" />
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="{:url('recharge/index')}">充值列表</a></li>
  7. <!-- <li ><a href="{:url('recharge/add')}">添加充值</a></li> -->
  8. </ul>
  9. <form class="well form-inline margin-top-20" method="get" action="{:url('Recharge/index')}">
  10. 昵称:
  11. <input type="text" class="form-control" name="nick_name" id="nick_name" style="width: 150px;" value="{:input('request.user_login/s','')}" placeholder="请输入昵称">
  12. 充值金额:
  13. <input type="text" class="form-control" name="pay_money" id="pay_money" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入金额">
  14. <input type="submit" class="btn btn-primary" value="搜索" />
  15. <a class="btn btn-warning" id="export" href="{:url('Recharge/export',array('nick_name'=>$Request.param.nick_name,'pay_money'=>$Request.param.pay_money))}">导出</a>
  16. <a class="btn btn-danger" href="{:url('Recharge/index',array('id'=>'11'))}">清空</a>
  17. </form>
  18. <table class="table table-hover table-bordered">
  19. <thead>
  20. <tr>
  21. <th width="16">
  22. <label>
  23. <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
  24. </label>
  25. </th>
  26. <th width="50">ID</th>
  27. <th>昵称</th>
  28. <th>充值类型</th>
  29. <th>交易金额</th>
  30. <th>交易单号</th>
  31. <th>交易时间</th>
  32. <th>支付方式</th>
  33. <th>{:lang('STATUS')}</th>
  34. <th width="120">{:lang('ACTIONS')}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
  39. <foreach name="recharge_logs" item="vo">
  40. <tr>
  41. <td>
  42. <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  43. value="{$vo.id}">
  44. </td>
  45. <td>{$vo.id}</td>
  46. <td>{$vo.user_nickname}</td>
  47. <td>
  48. <switch name="vo.type">
  49. <case value="1">爱心充值</case>
  50. <case value="2">余额充值</case>
  51. <case value="3">积分充值</case>
  52. <case value="4">VIP充值购买</case>
  53. <case value="5">购买人工牵线服务</case>
  54. </switch>
  55. </td>
  56. <td>{$vo.pay_money}</td>
  57. <td>{$vo.transaction_id}</td>
  58. <td>{$vo.pay_at}</td>
  59. <td>
  60. <switch name="vo.pay_type">
  61. <case value="1"><font style="color: green"> 微信支付 </font></case>
  62. </switch>
  63. </td>
  64. <td>
  65. <switch name="vo.status">
  66. <case value="1"><font style="color: red"> 待支付 </font></case>
  67. <case value="2"><font style="color: green"> 已完成 </font></case>
  68. </switch>
  69. </td>
  70. <td>
  71. <a class="btn btn-xs btn-primary" onclick="getPaike({$vo['id']})">查看</a>
  72. </td>
  73. </tr>
  74. </foreach>
  75. </tbody>
  76. </table>
  77. <div class="pagination">{$page}</div>
  78. </div>
  79. <script src="__STATIC__/js/admin.js"></script>
  80. <script >
  81. function getPaike(id){
  82. openIframeLayer("{:url('Recharge/rechargeinfo')}?id=" + id , "", {
  83. area: ['880px', '600px'],
  84. btn: ['确定', '取消'],
  85. })
  86. }
  87. </script>
  88. <script>
  89. // $(function(){
  90. // $("#export").click(function(){
  91. // $.ajax({
  92. // url:'export',
  93. // data:'',
  94. // success:function(result){
  95. // alert(result);
  96. // }
  97. // });
  98. // alert($('#rel_name').val());
  99. // });
  100. // });
  101. </script>
  102. </body>
  103. </html>