| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?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 name="xhQrTip"
- style="position:absolute;border-color: #8dc63f;width:110px;height:122px;z-index:9999;display:none;background:white;border:1px solid #ccc;">
- <div style="background:red;">
- <a href="javascript:void(0)" style="color:#68b828;float:right;z-index:9999;"
- <i="" class="fa-times"></a>
- </div>
- <div></div>
- </div>
- <div class="table-responsive">
- <table class="table table-bordered table-striped">
- <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 foreach ($models as $key => $val) { ?>
- <tr>
- <td></td>
- <td><?= $val['id'] ?></td>
- <td><?= $val['name'] ?></td>
- <td><?= $val['tuition'] ?></td>
- <td style="overflow:hidden;text-overflow:ellipsis;width:35%;"><?= $val['target'] ?></td>
- <td><?php echo date("Y-m-d H:i", $val['addTime']); ?></td>
- <td>
- <a href="/teach/edit?id=<?= $val['id'] ?>" 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;
- echo FooterWidget::widget();
- ?>
- <!-- footer -->
|