| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?php
- use yii\widgets\LinkPager;
- ?>
- <?php
- use backend\widgets\TabWidget;
- echo TabWidget::widget(['list' => $this->context->menuList, 'currentMenu' => $this->context->id]);
- ?>
- <div class="panel panel-default">
- <?php
- use backend\widgets\SubTabWidget;
-
- echo SubTabWidget::widget(['list' => $this->context->subMenuList, 'currentMenu' => $this->context->action->id]);
- ?>
- <div class="panel-body">
- <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
- <div class="table-responsive">
- <table class="table table-bordered table-striped table-hover">
- <thead>
- <tr class="active">
- <th class="no-sorting hidden-xs"><input type="checkbox"></th>
- <th class="hidden-xs">日期</th>
- <th>收入</th>
- <th class="hidden-xs">微信</th>
- <th>支付宝</th>
- <th>余额</th>
- <th>现金</th>
- <th>累计收入</th>
- <th>对帐</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody class="middle-align">
- <?php if (!empty($list)) {
- foreach ($list as $key => $val) { ?>
- <tr>
- <td class="hidden-xs"><input type="checkbox"></td>
- <td class="hidden-xs"><?= date("Y-m-d", $val['time']); ?></td>
- <td><?= $val['amount'] ?></td>
- <td><?= $val['weixin']; ?></td>
- <td><?= $val['alipay']; ?></td>
- <td><?= $val['balancePay']; ?></td>
- <td><?= $val['cash'] ?></td>
- <td><?= $val['totalAmount'] ?></td>
- <td id="show">
- <?php if ($val['checkUp'] == 1) {
- echo '<a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a>';
- } ?>
- </td>
- <td>
- <?php if ($val['checkUp'] == 0) {
- echo '<a href="javascript:void(0)" onclick="checkUp(' . $val['id'] . ',this)" class="btn btn-secondary btn-sm btn-icon icon-left">对帐</a>';
- } ?>
- </td>
- </tr>
- <?php }
- } ?>
- </tbody>
- </table>
- </div>
- <div class="row">
- <div>
- <div class="dataTables_paginate paging_simple_numbers" style="float:right;padding-top:0px;margin-right:15px;">
- <?= LinkPager::widget(['pagination' => $pages]); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- footer -->
- <?php
- use backend\widgets\FooterWidget;
- ?>
- <?= FooterWidget::widget() ?>
- <!-- footer -->
- <script>
- function checkUp(id, o) {
- var that = $(o);
- $.ajax({
- type: "GET",
- url: '/stat/check-up?id=' + id,
- async: false,
- dataType: 'json',
- success: function (data) {
- xhPopMsg(data.msg, 1300);
- if (data.code == 1) {
- that.parent().html('').prev().html('<a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a>');
- }
- }
- });
- }
- </script>
|