user.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. </tr>
  35. </thead>
  36. <tbody class="middle-align">
  37. <?php foreach($models as $key => $val){?>
  38. <tr>
  39. <td><input type="checkbox"></td>
  40. <td><?= $val->event ?></td>
  41. <td><?php if($val->io == 1){ echo '+'; }else{ echo '-'; } ?><?= $val->amount ?></td>
  42. <td><?= $val->balance ?></td>
  43. <td><?= $val->createTime ?></td>
  44. </tr>
  45. <?php } ?>
  46. </tbody>
  47. </table>
  48. </div>
  49. <div class="row">
  50. <div>
  51. <!--
  52. <div style="display:inline-block;margin-left:15px;">
  53. <label><select name="example-1_length"
  54. aria-controls="example-1" class="form-control">
  55. <option value="0">批量操作</option>
  56. <option value="1">批量下架</option>
  57. <option value="2">批量删除</option>
  58. </select>
  59. </label>
  60. <input class="btn btn-secondary btn-single" type="submit" name="" value="确认" />
  61. </div>
  62. -->
  63. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  64. <?= LinkPager::widget(['pagination' => $pages]); ?>
  65. </div>
  66. </div>
  67. </div>
  68. <div style="text-align:center;">
  69. <div class="form-group" style="margin:0 auto;">
  70. <button type="button" onclick="history.go(-1);" class="btn btn-info btn-single">返回</button>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- footer -->
  77. <?php
  78. use backend\widgets\FooterWidget;
  79. ?>
  80. <?= FooterWidget::widget()?>
  81. <!-- footer -->