| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?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">ID</th>
- <th>发卷人</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"><?= $val['id'];?></td>
- <td><?= isset($userInfo[$val['userId']]['userName']) ? $userInfo[$val['userId']]['userName'] : ''; ?></td>
- <td></td>
- <td>
- <?php
- if($val['type'] == 0){
- //0通用卷 1产品分类卷 2商品用途卷
- echo '所有';
- }elseif($val['type']==1){
- echo isset($categoryList[$val['targetId']]) ? $categoryList[$val['targetId']]['categoryName'] : '';
- }elseif($val['type']==2){
- echo isset($usageList[$val['targetId']]) ? $usageList[$val['targetId']]['usageName'] : '';
- }else{
- }
- ?>
- </td>
- <td><?= $val['amount'];?></td>
- <td><?= $val['meetAmount'];?></td>
- <td><?= $val['getNum'];?></td>
- <td>
- </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 -->
|