list.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. use common\services\xhUserService;
  3. use yii\widgets\LinkPager;
  4. ?>
  5. <div class="page-title">
  6. <div class="title-env">
  7. <h1 class="title">充值记录</h1>
  8. </div>
  9. <div class="breadcrumb-env">
  10. <ol class="breadcrumb bc-1">
  11. <li>
  12. <a href="/"><i class="fa-home"></i>Home</a>
  13. </li>
  14. <li>
  15. <a href="javascript:void(0)">平台管理</a>
  16. </li>
  17. <li class="active">
  18. <strong>充值记录</strong>
  19. </li>
  20. </ol>
  21. </div>
  22. </div>
  23. <div class="panel panel-default">
  24. <div class="panel-body">
  25. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  26. <div class="table-responsive">
  27. <table class="table table-bordered table-striped table-hover">
  28. <thead>
  29. <tr class="active">
  30. <th class="no-sorting hidden-xs"><input type="checkbox"></th>
  31. <th class="hidden-xs">ID</th>
  32. <th>充值会员</th>
  33. <th>事项</th>
  34. <th>金额</th>
  35. <th>余额</th>
  36. <th>累计充值</th>
  37. <th>时间</th>
  38. <th>状态</th>
  39. </tr>
  40. </thead>
  41. <tbody class="middle-align">
  42. <?php if(!empty($recharge)){ foreach($recharge as $key => $val){?>
  43. <tr>
  44. <td class="hidden-xs"><input type="checkbox"></td>
  45. <td class="hidden-xs"><?= $val['id'] ?></td>
  46. <td>
  47. <?php
  48. $userId = $val['userId'];
  49. $user = xhUserService::getById($userId);
  50. echo isset($user['userName']) ? $user['userName'] : '游客';
  51. ?>
  52. </td>
  53. <td><?= $val['event'] ?></td>
  54. <td><?= $val['amount'] ?></td>
  55. <td><?= $val['balance'] ?></td>
  56. <td><?= $val['merchantTotalRecharge'] ?></td>
  57. <td><?= date("m-d H:i",strtotime($val['createTime'])) ?></td>
  58. <td><?php if($val['status'] == 1){ echo '充值成功'; }else{ } ?></td>
  59. </tr>
  60. <?php } } ?>
  61. </tbody>
  62. </table>
  63. </div>
  64. <div class="row">
  65. <div>
  66. <!--
  67. <div style="display:inline-block;margin-left:15px;">
  68. <label><select name="example-1_length"
  69. aria-controls="example-1" class="form-control">
  70. <option value="0">批量操作</option>
  71. <option value="1">批量下架</option>
  72. <option value="2">批量删除</option>
  73. </select>
  74. </label>
  75. <input class="btn btn-secondary btn-single" type="submit" name="" value="确认" />
  76. </div>
  77. -->
  78. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  79. <?= $paging ?>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <!-- footer -->
  87. <?php
  88. use backend\widgets\FooterWidget;
  89. ?>
  90. <?= FooterWidget::widget()?>
  91. <!-- footer -->