course.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. use yii\widgets\LinkPager;
  3. ?>
  4. <?php
  5. use backend\widgets\TabWidget;
  6. echo TabWidget::widget(['list' => $this->context->menuList, 'currentMenu' => $this->context->id]);
  7. ?>
  8. <div class="panel panel-default">
  9. <?php
  10. use backend\widgets\SubTabWidget;
  11. echo SubTabWidget::widget(['list' => $this->context->subMenuList, 'currentMenu' => $this->context->action->id]);
  12. ?>
  13. <div class="panel-body">
  14. <div class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  15. <div name="xhQrTip"
  16. style="position:absolute;border-color: #8dc63f;width:110px;height:122px;z-index:9999;display:none;background:white;border:1px solid #ccc;">
  17. <div style="background:red;">
  18. <a href="javascript:void(0)" style="color:#68b828;float:right;z-index:9999;"
  19. <i="" class="fa-times"></a>
  20. </div>
  21. <div></div>
  22. </div>
  23. <div class="table-responsive">
  24. <table class="table table-bordered table-striped">
  25. <thead>
  26. <tr class="active">
  27. <th class="no-sorting"><input type="checkbox"></th>
  28. <th>ID</th>
  29. <th>名称</th>
  30. <th>价格</th>
  31. <th>适合人群</th>
  32. <th>创建日期</th>
  33. <th>操作</th>
  34. </tr>
  35. </thead>
  36. <tbody class="middle-align">
  37. <?php foreach ($models as $key => $val) { ?>
  38. <tr>
  39. <td></td>
  40. <td><?= $val['id'] ?></td>
  41. <td><?= $val['name'] ?></td>
  42. <td><?= $val['tuition'] ?></td>
  43. <td style="overflow:hidden;text-overflow:ellipsis;width:35%;"><?= $val['target'] ?></td>
  44. <td><?php echo date("Y-m-d H:i", $val['addTime']); ?></td>
  45. <td>
  46. <a href="/teach/edit?id=<?= $val['id'] ?>" class="btn btn-secondary btn-sm btn-icon icon-left">修改 </a>
  47. </td>
  48. </tr>
  49. <?php } ?>
  50. </tbody>
  51. </table>
  52. </div>
  53. <div class="row">
  54. <div>
  55. <div class="dataTables_paginate paging_simple_numbers"
  56. style="float:right;padding-top:0px;margin-right:15px;">
  57. <?= LinkPager::widget(['pagination' => $pages]); ?>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <!-- footer -->
  65. <?php
  66. use backend\widgets\FooterWidget;
  67. echo FooterWidget::widget();
  68. ?>
  69. <!-- footer -->