list.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. use yii\widgets\LinkPager;
  3. ?>
  4. <div class="page-title">
  5. <div class="title-env">
  6. <h1 class="title">培训课程</h1>
  7. </div>
  8. <div class="breadcrumb-env">
  9. <ol class="breadcrumb bc-1">
  10. <li>
  11. <a href="/"><i class="fa-home"></i>Home</a>
  12. </li>
  13. <li>
  14. <a href="javascript:void(0)">花艺培训</a>
  15. </li>
  16. <li class="active">
  17. <strong>培训课程</strong>
  18. </li>
  19. </ol>
  20. </div>
  21. </div>
  22. <div class="panel panel-default">
  23. <div class="panel-body">
  24. <div id="example-2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  25. <div class="row">
  26. <form action="" method="GET">
  27. <div class="col-xs-6" style="width:90%;">
  28. <div class="dataTables_length">
  29. <a href="/class/add" class="btn btn-secondary btn-single" style="margin-right:15px;">新建培训班</a>
  30. </div>
  31. </div>
  32. </form>
  33. </div>
  34. <div class="table-responsive">
  35. <table class="table table-bordered table-striped table-hover">
  36. <thead>
  37. <tr class="active">
  38. <th class="no-sorting"><input type="checkbox"></th>
  39. <th>ID</th>
  40. <th>课程名</th>
  41. <th>学费</th>
  42. <th>节课</th>
  43. <th>创建时间</th>
  44. <th>操作</th>
  45. </tr>
  46. </thead>
  47. <tbody class="middle-align">
  48. <?php if(!empty($models)){
  49. foreach($models as $key => $val){
  50. ?>
  51. <tr>
  52. <td><input type="checkbox"></td>
  53. <td><?= $val->id ?></td>
  54. <td><a href="/class/update?id=<?= $val->id ?>"><?= $val->name ?></a></td>
  55. <td><?= $val->tuition ?></td>
  56. <td><?= $val->lesson ?></td>
  57. <td><?= $val->createTime ?></td>
  58. <td>
  59. <!--
  60. <a href="/class/update?id=<?= $val->id ?>" class="btn btn-secondary btn-sm btn-icon icon-left">修改</a>
  61. -->
  62. </td>
  63. </tr>
  64. <?php } } ?>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!-- footer -->
  72. <?php
  73. use backend\widgets\FooterWidget;
  74. ?>
  75. <?= FooterWidget::widget()?>
  76. <!-- footer -->