detail.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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="table-responsive">
  26. <table class="table table-bordered table-striped table-hover" >
  27. <thead>
  28. <tr class="active">
  29. <th class="no-sorting"><input type="checkbox"></th>
  30. <th>ID</th>
  31. <th>课名</th>
  32. <th>作品</th>
  33. <th>喜欢数</th>
  34. <th>已上课</th>
  35. <th>上课时间</th>
  36. <th>操作</th>
  37. </tr>
  38. </thead>
  39. <tbody class="middle-align">
  40. <?php if(!empty($course)){ ?>
  41. <?php foreach($course as $key => $val){ ?>
  42. <tr>
  43. <td><input type="checkbox"></td>
  44. <td><?= $key+1 ?></td>
  45. <td><?= $val['courseName'] ?></td>
  46. <td><?php if(!empty($val['worksImg'])){ echo '<img src="'.Yii::$app->params['imgUrl'].$val['worksImg'].'" width="25" />'; } ?></td>
  47. <td><?= $val['praiseNum'] ?></td>
  48. <td>
  49. <?php if($val['status'] == 1){ ?>
  50. <a href="javascript:void(0)" style="color:#68b828;cursor:text" <i="" class="fa fa-check"></a>
  51. <?php } ?>
  52. </td>
  53. <td><?php if(!empty($val['attendTime'])){ echo date("Y-m-d",$val['attendTime']); } ?></td>
  54. <td>
  55. </td>
  56. </tr>
  57. <?php } }?>
  58. </tbody>
  59. </table>
  60. </div>
  61. <div class="row">
  62. <div>
  63. <div style="text-align:center;">
  64. <a href="javascript:void(0)" onclick="history.go(-1)" class="btn btn-secondary btn-single" style="margin:0 auto;">返回</a>
  65. </div>
  66. <!--
  67. <div style="display:inline-block;margin-left:15px;">
  68. <label><select name="example-1_length"
  69. aria-controls="example-1" class="form-control">
  70. <option value="0">批量操作</option>
  71. <option value="1">批量下架</option>
  72. <option value="2">批量删除</option>
  73. </select>
  74. </label>
  75. <input class="btn btn-secondary btn-single" type="submit" name="" value="确认" />
  76. </div>
  77. -->
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. <!-- footer -->
  84. <?php
  85. use backend\widgets\FooterWidget;
  86. ?>
  87. <?= FooterWidget::widget()?>
  88. <!-- footer -->