user.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. use yii\widgets\LinkPager;
  3. ?>
  4. <div class="page-title">
  5. <div class="title-env">
  6. <h1 class="title">【<?= $user['userName'] ?>】积分明细</h1>
  7. </div>
  8. <div class="breadcrumb-env">
  9. <ol class="breadcrumb bc-1">
  10. <li>
  11. <a href="/"><i class="fa-home"></i>Home</a>
  12. </li>
  13. <li>
  14. <a href="javascript:void(0)">平台管理</a>
  15. </li>
  16. <li class="active">
  17. <strong>积分管理</strong>
  18. </li>
  19. </ol>
  20. </div>
  21. </div>
  22. <div class="panel panel-default">
  23. <div class="panel-body">
  24. <div id="example-2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  25. <div class="table-responsive">
  26. <table class="table table-bordered table-striped table-hover">
  27. <thead>
  28. <tr class="active">
  29. <th class="no-sorting"><input type="checkbox"></th>
  30. <th>编号</th>
  31. <th>事项</th>
  32. <th>支付方式</th>
  33. <th>积分</th>
  34. <th>当前积分</th>
  35. <th>时间</th>
  36. <th>操作</th>
  37. </tr>
  38. </thead>
  39. <tbody class="middle-align">
  40. <?php foreach($models as $key => $val){?>
  41. <tr>
  42. <td><input type="checkbox"></td>
  43. <td><?= $val['id'] ?></td>
  44. <td><?= $val['event'] ?></td>
  45. <td><?= $payWay[$val['payWay']] ?></td>
  46. <td><?php if(empty($val['io'])){ echo '-'.$val['num']; }else{ echo '+'.$val['num']; } ?></td>
  47. <td><?= $val['integral'] ?></td>
  48. <td><?= date("m-d H:s",strtotime($val['createTime'])) ?></td>
  49. <td>
  50. <!--
  51. <a href="<?= $capitalTypeList[$val['capitalType']]['link'] ?>?id=<?= $val['relateId'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">明细</a>
  52. -->
  53. </td>
  54. </tr>
  55. <?php } ?>
  56. </tbody>
  57. </table>
  58. </div>
  59. <div class="row">
  60. <div>
  61. <!--
  62. <div style="display:inline-block;margin-left:15px;">
  63. <label><select name="example-1_length"
  64. aria-controls="example-1" class="form-control">
  65. <option value="0">批量操作</option>
  66. <option value="1">批量下架</option>
  67. <option value="2">批量删除</option>
  68. </select>
  69. </label>
  70. <input class="btn btn-secondary btn-single" type="submit" name="" value="确认" />
  71. </div>
  72. -->
  73. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  74. <?= LinkPager::widget(['pagination' => $pages]); ?>
  75. </div>
  76. </div>
  77. </div>
  78. <div style="text-align:center;">
  79. <div class="form-group" style="margin:0 auto;">
  80. <button type="button" onclick="history.go(-1);" class="btn btn-info btn-single">返回</button>
  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 -->