balance.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. use yii\widgets\LinkPager;
  3. ?>
  4. <div class="page-title">
  5. <div class="title-env">
  6. <h1 class="title">余额明细</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 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 hidden-xs"><input type="checkbox"></th>
  30. <th class="hidden-xs">ID</th>
  31. <th>姓名</th>
  32. <th>事项</th>
  33. <th>支付方式</th>
  34. <th>收支</th>
  35. <th>余额</th>
  36. <th>时间</th>
  37. <th>操作</th>
  38. </tr>
  39. </thead>
  40. <tbody class="middle-align">
  41. <?php foreach($models as $key => $val){?>
  42. <tr>
  43. <td class="hidden-xs"><input type="checkbox"></td>
  44. <td class="hidden-xs"><?= $val->id ?></td>
  45. <td><?= $val->userName ?></td>
  46. <td><?= $val->event ?></td>
  47. <td><?= $payWay[$val->payWay] ?></td>
  48. <td><?php if($val->io == 1){ echo '+'; }else{ echo '-'; } ?><?= $val->amount ?></td>
  49. <td><?= $val->balance ?></td>
  50. <td><?= $val->createTime ?></td>
  51. <td>
  52. <a href="<?= $capitalTypeList[$val->capitalType]['link'] ?>?id=<?= $val->relateId ?>" class="btn btn-secondary btn-sm btn-icon icon-left">明细</a>
  53. </td>
  54. </tr>
  55. <?php } ?>
  56. </tbody>
  57. </table>
  58. </div>
  59. <div class="row">
  60. <div>
  61. <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
  62. <?= LinkPager::widget(['pagination' => $pages]); ?>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="form-group" style="text-align:center;">
  68. <button type="button" onclick="history.go(-1);" class="btn btn-info btn-single">返回</button>
  69. </div>
  70. </div>
  71. </div>
  72. <!-- footer -->
  73. <?php
  74. use backend\widgets\FooterWidget;
  75. ?>
  76. <?= FooterWidget::widget()?>
  77. <!-- footer -->