common-classinfo.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc//admin-header.php"; ?>
  2. <div class="mainWrap">
  3. <div class="container">
  4. <div class="page-header pageHeader">
  5. <h4>
  6. <ol class="breadcrumb breadcrumbNot">
  7. <li><a href="<?php echo $data['rootUrl']; ?>common/classlist">课程列表</a></li>
  8. <li class="active">课程详情</li>
  9. </ol>
  10. </h4>
  11. </div>
  12. <div class="shopContent clearfix">
  13. <div class="year fL">
  14. <select class="form-control" id="statuschange">
  15. <!--<option>排序</option>-->
  16. <option value="0">课程完成度(高)</option>
  17. <option value="1" <?php if( isset($data['status']) && $data['status'] == 1 ): ?>selected="selected"<?php endif; ?>>课程完成度(倒序)</option>
  18. </select>
  19. </div>
  20. <div class="input-group fR" style="width:400px;">
  21. <form method="post" action="<?php echo $data['rootUrl']; ?>common/userinfo" class="form-horizontal" style="display: inherit" onsubmit="return backtourl();">
  22. <input type="text" class="form-control" id="search" name="search" placeholder="请输入账户/姓名/身份证后6位号">
  23. <input type="hidden" name="classid" id="classid" value="<?php echo $data['classid']; ?>">
  24. <div class="input-group-btn">
  25. <button class="btn btn-primary" type="submit"><span class="glyphicon glyphicon-search"></span></button>
  26. </div>
  27. </form>
  28. </div>
  29. </div>
  30. <div class="clearfix">
  31. <div class="classList">
  32. <h5>
  33. <?php echo $data['classname']; ?>
  34. </h5>
  35. </div>
  36. <table class="table table-hover">
  37. <thead>
  38. <tr>
  39. <th width="50">ID</th>
  40. <th width="150">账户</th>
  41. <th width="150">姓名</th>
  42. <th width="200">身份证号</th>
  43. <th width="400">课程进度</th>
  44. <th width="80"></th>
  45. </tr>
  46. </thead>
  47. <?php if( isset($data['userlist']) ): ?>
  48. <?php foreach($data['userlist'] as $k1=>$v1): ?>
  49. <tr>
  50. <td><?php echo $v1['userid']; ?></td>
  51. <td><?php echo $v1['username']; ?></td>
  52. <td><?php echo $v1['realname']; ?></td>
  53. <td><?php echo $v1['idcard']; ?></td>
  54. <td>
  55. <div class="progress progressNot">
  56. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="<?php echo $v1['user_progress']['progress']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $v1['user_progress']['progress']; ?>%;" data-toggle="tooltip" data-placement="bottom" title="已完成:<?php echo $v1['user_progress']['donehh']; ?>小时">
  57. <?php echo $v1['user_progress']['progress']; ?>%
  58. </div>
  59. <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?php echo $v1['user_progress']['noprogress']; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $v1['user_progress']['noprogress']; ?>%;" data-toggle="tooltip" data-placement="bottom" title="未完成:<?php echo $v1['user_progress']['nodonehh']; ?>小时">
  60. <?php echo $v1['user_progress']['noprogress']; ?>%
  61. </div>
  62. </div>
  63. </td>
  64. <td><?php echo $v1['user_progress']['donehh']; ?>小时</td>
  65. </tr>
  66. <?php endforeach; ?>
  67. <?php endif; ?>
  68. </table>
  69. </div>
  70. <nav style="padding-top: 10px;padding-left: 10px">
  71. <?php echo $data['pager']; ?>
  72. </nav>
  73. </div>
  74. </div>
  75. <script>
  76. function backtourl(){
  77. if($('#search').val() == '') {
  78. alert('搜索框不能为空');
  79. return false;
  80. }else{
  81. return true;
  82. }
  83. }
  84. $(function(){
  85. $('#statuschange').change(function(){
  86. window.location.href = '<?php echo $data['rootUrl']; ?>common/classinfo/<?php echo $data['classid']; ?>/status/' + $(this).val();
  87. });
  88. })
  89. </script>
  90. </body>
  91. </html>