list.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <style>
  2. /*切换选择*/
  3. .tab-con{
  4. position: relative;
  5. height: 30px;
  6. width: 200px;
  7. background: #F2F2F2;
  8. border: 1px solid #01B677;
  9. border-radius: 15px;
  10. }
  11. .sel-opt{
  12. width: 50%;
  13. position: relative;
  14. color: #01B677;
  15. line-height: 30px;
  16. text-indent: 6px;
  17. cursor: pointer;
  18. }
  19. .sel-opt:after{
  20. content: '';
  21. border-left: 6px solid transparent;
  22. border-right: 6px solid transparent;
  23. border-top: 8px solid #01B677;
  24. position: absolute;
  25. right: 12px;
  26. top: 12px;
  27. }
  28. // .sel-opt select{
  29. // width: 100%;
  30. // height: 30px;
  31. // background: #F2F2F2;
  32. // color: #01B677;
  33. // text-indent: 6px;
  34. // font-size: inherit;
  35. // border-top-right-radius: 15px;
  36. // border-bottom-right-radius: 15px;
  37. // cursor: pointer;
  38. // }
  39. // .sel-opt select option{
  40. // position: relative;
  41. // }
  42. .points{
  43. position: absolute;
  44. top: -2px;
  45. right: 0;
  46. width: 10px;
  47. height: 10px;
  48. background: #F01516;
  49. border-radius: 50%;
  50. }
  51. .sel-cons{
  52. border: 1px solid #01B677;
  53. width: 50%;
  54. position: absolute;
  55. right: 0;
  56. top: 30px;
  57. text-indent: 10px;
  58. display: none;
  59. }
  60. .sc-lis{
  61. line-height: 30px;
  62. cursor: pointer;
  63. }
  64. .sc-lis span{
  65. position: relative;
  66. }
  67. .sc-lis .points{
  68. top: 2px;
  69. right: -16px;
  70. }
  71. .click-sc:focus {
  72. color: #fff;
  73. }
  74. .click-sc:hover {
  75. color: #fff;
  76. }
  77. .create-third{
  78. position: absolute;
  79. right: 6px;
  80. top: 10px;
  81. }
  82. .tab-con-btn{
  83. height: 31px;
  84. width: 210px;
  85. background: #F2F2F2;
  86. border: 1px solid #01B677;
  87. border-radius: 15px;
  88. display: inline-block;
  89. text-align: center;
  90. }
  91. .tab_btn{
  92. display: inline-block;
  93. width:100px;
  94. padding: 0;
  95. border: 0;
  96. outline:none;
  97. margin:0;
  98. background: #F2F2F2;
  99. border-radius: inherit;
  100. }
  101. .has-sel{
  102. background: #01B677;
  103. color: #fff;
  104. width: 50%;
  105. height: 30px;
  106. border-top-left-radius: 15px;
  107. border-bottom-left-radius: 15px;
  108. text-align: center;
  109. line-height: 30px;
  110. }
  111. .has-sel-1{
  112. background: #01B677;
  113. color: #fff;
  114. width: 50%;
  115. height: 30px;
  116. border-top-right-radius: 15px;
  117. border-bottom-right-radius: 15px;
  118. text-align: center;
  119. line-height: 30px;
  120. }
  121. </style>
  122. <link rel="stylesheet" href="/fonts/fpdf/iconfont.css" />
  123. <link rel="stylesheet" href="/fonts/shangchuan/iconfont.css" />
  124. <script>
  125. // 扫描督学卡
  126. function createTemplate(exam_group_id,subject,school_id){
  127. if (!exam_group_id||!subject || !school_id) {
  128. layer.msg('未找到试卷ID');
  129. }
  130. if(school_id<100){
  131. school_id='9'+school_id;
  132. }
  133. evaluationClient.loadinspectorcard(exam_group_id+','+subject+','+school_id);
  134. }
  135. </script>
  136. <div class="main-content-inner">
  137. <!-- 导航栏开始-->
  138. <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
  139. <!-- 导航栏结束-->
  140. <div class="page-content">
  141. <div class="row" style="margin:0px;">
  142. <div class="col-xs-12">
  143. <!-- PAGE CONTENT BEGINS -->
  144. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  145. <div class="row">
  146. <form method="get" id="form1" action="<?php echo $this->createUrl("supervise/list");?>">
  147. <div class="col-xs-12">
  148. <div class="dataTables_length margin-zy">
  149. <select class="form-control" id="grade" name="grade">
  150. <option value="">全年级</option>
  151. <?php $grade_arr = array(1=>'高一',2=>'高二',3=>'高三');?>
  152. <?php foreach($grade_arr as $_g => $_grade_name){?>
  153. <option <?php if($grade == $_g) echo "selected";?> value="<?php echo $_g;?>"><?php echo $_grade_name;?></option>
  154. <?php }?>
  155. </select>
  156. <input type="text" class="form-control input-sm" placeholder="请输入考试名称" name="name" value="<?php echo '';?>">
  157. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  158. </div>
  159. </div>
  160. </form>
  161. <button class="label-primary-s bth-s create-third" data-button="red">下载个性化学习宝督学卡</button>
  162. </div>
  163. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
  164. <thead>
  165. <tr>
  166. <th>考试名称</th>
  167. <th>创建日期</th>
  168. <th>考试日期</th>
  169. <th>考试班级</th>
  170. <th>考试人数</th>
  171. <th>阅卷方式</th>
  172. <th>主阅卷老师</th>
  173. <th>个性化学习宝下载数量</th>
  174. <th>扫描进度</th>
  175. <th >操作</th>
  176. </tr>
  177. </thead>
  178. <tbody>
  179. <?php if(!empty($exam_group_list)):foreach($exam_group_list as $value):?>
  180. <?php $mark_type = array(0 => '线下阅卷',1 => '按题阅卷',2 => '按人阅卷',3 => '班级混合阅卷',4 => '班级单独阅卷');?>
  181. <tr>
  182. <td><?php echo $value['name'];?></td>
  183. <td><?php echo date('Y-m-d',$value['create_time']);?></td>
  184. <td><?php echo $value['exam_time'];?></td>
  185. <td><?php echo $value['class_count'];?></td>
  186. <td><?php echo $value['stu_num']?></td>
  187. <td><?php echo isset($mark_type[$value['mark_type']])?$mark_type[$value['mark_type']]:'';?></td>
  188. <td><?php echo $value['teacher_name'];?></td>
  189. <td><?php echo $value['isp_loaded_num'];?></td>
  190. <td><?php echo $value['upload_count'].'/'.$value['stu_num']?></td>
  191. <td><button class="label-primary-s bth-s" onclick="createTemplate('<?php echo $value['exam_group_id'];?>','<?php echo $value['subject_id'];?>','<?php echo $this->schoolId;?>')">扫描督学卡</button></td>
  192. </tr>
  193. <?php endforeach;else:?>
  194. <tr><td colspan="10">暂无数据!</td></tr>
  195. <?php endif;?>
  196. </tbody>
  197. </table>
  198. <?php if(!empty($page_total)):?>
  199. <div class="row">
  200. <div class="col-xs-6">
  201. &nbsp;
  202. </div>
  203. <div class="col-xs-6">
  204. <div class="dataTables_paginate paging_simple_numbers">
  205. <?php
  206. $this->widget('CLinkPager', array(
  207. 'header' => '',
  208. 'firstPageLabel'=> '首页',
  209. 'lastPageLabel' => '末页',
  210. 'prevPageLabel' => '上一页',
  211. 'nextPageLabel' => '下一页',
  212. 'pages' => $pages,
  213. 'maxButtonCount'=> 5,
  214. ));
  215. echo '共:'.$page_total.'条';
  216. ?>
  217. </div>
  218. </div>
  219. </div>
  220. <?php endif;?>
  221. </div>
  222. <!--上传模板弹窗-->
  223. <!-- PAGE CONTENT ENDS -->
  224. </div>
  225. </div>
  226. </div>
  227. </div>
  228. <script src="/js/jquery.ajaxfileupload.js"></script>
  229. <script type="text/javascript">
  230. $(document).ready(function(){
  231. // 搜索事件
  232. $("#search").click(function(){
  233. $("#form1").submit();
  234. });
  235. $('.create-third').click(function(){
  236. evaluationClient.createinspectorcard();
  237. });
  238. })
  239. </script>