| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <style>
- #categoryTable td {
- border: none;
- }
- </style>
- <?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="row">
- <div class="col-xs-6" style="width:90%;">
- <div class="dataTables_length">
- <a href="/coupon/model" class="btn btn-secondary btn-single">老带新优惠券</a>
- </div>
- </div>
- </div>
- -->
- <div class="table-responsive">
- <table class="table table-bordered table-striped table-hover table-condensed">
- <thead>
- <tr class="active">
- <th class="no-sorting"><input type="checkbox"></th>
- <th>ID</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><input type="checkbox"></td>
- <td><?= $val['id'] ?></td>
- <td><?= $val['showName'] ?></td>
- <td><?= $val['usageName'] ?></td>
- <td>
- <?php if(isset($couponList[$val['id']])){ ?>
- <?= $couponList[$val['id']]['meetAmount'] ?>元 | <?= $couponList[$val['id']]['amount'] ?>元
- <!--<a href="javascript:void(0);" onclick="modifyToShowCoupon(<?= $couponList[$val['id']]['id'] ?>)" style="color:blue;">修改</a>-->
- <?php }else{ ?>
- <!--<a href="javascript:void(0);" onclick="addToShowCoupon(2,<?= $val['id'] ?>,'<?= $val['usageName'] ?>')" style="color:blue;">添加</a>-->
- <?php } ?>
- </td>
- <td><?php if($val['isShow'] == 1){ echo '<a href="javascript:void(0)" style="color:#68b828;"><i class="fa fa-check"></i></a>'; } ?></td>
- <td>
- <!-- <a class="btn btn-secondary btn-single" href="javascript:void(0)" name="categoryButton" style="padding:2px 5px;">删除</a>-->
- </td>
- </tr>
- <?php } } ?>
- </tbody>
- </table>
- </div>
- <div class="row">
- <div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- footer -->
- <?php
- use backend\widgets\FooterWidget;
- ?>
- <?= FooterWidget::widget() ?>
- <!-- footer -->
|