index2.php 12 KB

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