index2_duo.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <script src="/js/xsgl.js"></script>
  2. <link href="/css/cylet.css" rel="stylesheet" type="text/css" />
  3. <link rel="stylesheet" href="/css/export/report.css?v=1.0.10">
  4. <style>
  5. /* 往期教师讲案按钮 */
  6. .history-teacher-exolaincase-btn{cursor: pointer;background: rgb(21,174,104);color: #fff;width: 130px;height: 28px;margin-left: 20px;text-indent: 10px;}
  7. .history-teacher-exolaincase-btn img,.history-teacher-exolaincase-btn span{ color: #fff;vertical-align: middle;line-height: 28px;font-size: 12px;}
  8. .dtw-top-right-btns{float: right;padding-right:10px;}
  9. .dtw-top-left-cons{float: left;padding-left: 12px;}
  10. .layui-layer-btn a:hover{color: #fff}
  11. </style>
  12. <div class="main-content-inner">
  13. <!-- 导航栏开始-->
  14. <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
  15. <!-- 导航栏结束-->
  16. <div class="page-content" >
  17. <div class="row" style="margin:0px;">
  18. <div class="col-xs-12">
  19. <!-- PAGE CONTENT BEGINS -->
  20. <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
  21. <div class="row">
  22. <form method="get" action="<?php echo $this->createUrl('export/batch_duo'); ?>" style="padding-left: 0px;">
  23. <div class="dtw-top-left-cons" >
  24. <div class="dataTables_length margin-zy fl" style="width: 825px">
  25. <div class="hgc_btn_back theme">
  26. <a href="javascript:history.back(-1);">返回</a>
  27. </div>
  28. <div class='diy_select2' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;width:140px;">
  29. <input type='hidden' id="type_id" name="type_id" class='diy_select_input2' value="<?php if (empty($type_id)) {
  30. echo 0;
  31. } else {
  32. echo $type_id;
  33. } ?>"/>
  34. <div class='diy_select_txt2'>
  35. <?php
  36. if (empty($type_id)) {
  37. echo '请选择试卷类别';
  38. } else {
  39. switch ($type_id) {
  40. case 1:echo '校本课程平台试卷';
  41. break;
  42. case 2:echo '第三方线上阅卷试卷';
  43. break;
  44. case 3:echo '第三方导入成绩试卷';
  45. break;
  46. }
  47. }
  48. ?>
  49. </div>
  50. <div class='diy_select_btn2'></div>
  51. <ul class='diy_select_list2'>
  52. <li val="0" >请选择试卷类别</li>
  53. <li val="1">校本课程平台试卷</li>
  54. <li val="2">第三方线上阅卷试卷</li>
  55. <li val="3">第三方导入成绩试卷</li>
  56. </ul>
  57. </div>
  58. <div class='diy_select1' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;">
  59. <input type='hidden' id="grade_id" name="grade_id" class='diy_select_input1' value="<?php if (empty($grade_id)) {
  60. echo 0;
  61. } else {
  62. echo $grade_id;
  63. } ?>"/>
  64. <div class='diy_select_txt1'><?php
  65. if (empty($grade_id)) {
  66. echo '请选择年级';
  67. } else {
  68. if(isset(Yii::app()->params['grade_list'][$grade_id])){
  69. echo Yii::app()->params['grade_list'][$grade_id]['grade_name'];
  70. }
  71. }
  72. ?></div>
  73. <div class='diy_select_btn1'></div>
  74. <ul class='diy_select_list1'>
  75. <li val="0" >请选择年级</li>
  76. <?php
  77. if(Yii::app()->params['grade_config']){
  78. foreach (Yii::app()->params['grade_config'] as $id=> $val){
  79. echo '<li val="'.$id.'">'.$val['grade_name'].'</li>';
  80. }
  81. }
  82. ?>
  83. </ul>
  84. </div>
  85. <input type="text" class="form-control input-sm" placeholder="请输入报告名称!" name="realname" value="<?php if (!empty($realname)) {
  86. echo $realname;
  87. } ?>">
  88. <!--<button class="btn btn-minier btn-primary">搜索</button>-->
  89. <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
  90. <?php if($searchProcessSubjectId == 12):?>
  91. <span class="" style="color:red">注:物理组卷考试暂不支持批量下载</span>
  92. <?php endif;?>
  93. </div>
  94. </div>
  95. </form>
  96. <div class="dtw-top-right-btns mt15" >
  97. <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
  98. <a class="btn btn-success btn-sm progress_btn" href="#" subjectId="<?php echo $searchProcessSubjectId?>">
  99. <i class="fa fa-plus " style="font-style: normal;"></i> 下载进度
  100. </a>
  101. </div>
  102. </div>
  103. </div>
  104. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
  105. <thead>
  106. <tr>
  107. <th >名称</th>
  108. <th >试卷类别</th>
  109. <th >考试日期</th>
  110. <th width="10%">年级</th>
  111. <th width="10%">班级数量</th>
  112. <th width="10%">操作</th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <?php if (!empty($printList)):foreach ($printList as $cl): ?>
  117. <tr>
  118. <td><?php if($cl['is_new']==1 && $sub_id != 8){?><span style='color: #ff0000;font-weight: bold;'>【New】</span><?php }?>
  119. <?php
  120. if(isset(Yii::app()->session['testFlag']) && Yii::app()->session['testFlag']==1 ){
  121. echo "<a href=".$this->createUrl("export/classExamAc",array("examGroupId" => $cl['exam_group_id'])).">{$cl['exam_name']}</a>";
  122. }else{
  123. echo $cl['exam_name'];
  124. }
  125. ?>
  126. </td>
  127. <td><?php echo $cl['type_name']; ?></td>
  128. <td><?php echo $cl['exam_date']; ?></td>
  129. <td><?php echo $cl['grade_name']; ?></td>
  130. <td><?php echo $cl['class_count']; ?></td>
  131. <td>
  132. <i class="icon icon-download downloadFileBtn" complete="<?php if($cl['status']==1){echo '1';}else{echo '0';}?>" rel="<?php echo $cl['exam_group_id']?>" subject="<?php echo $cl['subject_id']?>" topic_count="<?php echo isset($cl['topic_count'])?$cl['topic_count']:0;?>" title="批量下载报表"></i>
  133. </td>
  134. </tr>
  135. <?php endforeach;
  136. else: ?>
  137. <tr><td colspan="4">暂无数据!</td></tr>
  138. <?php endif; ?>
  139. </tbody>
  140. </table>
  141. <?php if (!empty($page_total)): ?>
  142. <div class="row" style="padding-top:10px;">
  143. <div class="col-xs-7">
  144. &nbsp;
  145. </div>
  146. <div class="col-xs-5" style="font-size: 16px">
  147. <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
  148. <?php
  149. $this->widget('CLinkPager', array(
  150. 'header' => '',
  151. 'firstPageLabel' => '首页',
  152. 'lastPageLabel' => '末页',
  153. 'prevPageLabel' => '上一页',
  154. 'nextPageLabel' => '下一页',
  155. 'pages' => $pages,
  156. 'maxButtonCount' => 5,
  157. ));
  158. echo '<span style="vertical-align:middle;">共:' . $page_total . '条</span>';
  159. ?>
  160. </div>
  161. </div>
  162. </div>
  163. <?php endif; ?>
  164. </div>
  165. <!-- PAGE CONTENT ENDS -->
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. <script src="/js/export/report.js?v=1.1.3"></script>