123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663 |
- <script src="/js/xsgl.js"></script>
- <link rel="stylesheet" href="/css/cylet.css" />
- <link rel="stylesheet" href="/css/export/report.css?v=1.0.10" />
- <style>
- a:hover, a:focus {
- color: #23527c;
- text-decoration: none;
- }
- @font-face {font-family: "iconfont";
- src: url('/fonts/pdf/iconfont.eot?t=1484561666180'); /* IE9*/
- src: url('/fonts/pdf/iconfont.eot?t=1484561666180#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('/fonts/pdf/iconfont.woff?t=1484561666180') format('woff'), /* chrome, firefox */
- url('/fonts/pdf/iconfont.ttf?t=1484561666180') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
- url('/fonts/pdf/iconfont.svg?t=1484561666180#iconfont') format('svg'); /* iOS 4.1- */
- }
- .iconfont {
- font-family:"iconfont" !important;
- font-size:16px;
- font-style:normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- /*切换选择*/
- .tab-con{
- position: relative;
- height: 30px;
- width: 200px;
- background: #F2F2F2;
- border: 1px solid #01B677;
- border-radius: 15px;
- }
- .has-sel{
- background: #01B677;
- color: #fff;
- width: 50%;
- height: 30px;
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
- text-align: center;
- line-height: 30px;
- }
- .sel-opt{
- width: 50%;
- position: relative;
- color: #01B677;
- line-height: 30px;
- text-indent: 6px;
- cursor: pointer;
- }
- .sel-opt:after{
- content: '';
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 8px solid #01B677;
- position: absolute;
- right: 12px;
- top: 12px;
- }
- .sel-opt select{
- width: 100%;
- height: 30px;
- background: #F2F2F2;
- color: #01B677;
- text-indent: 6px;
- font-size: inherit;
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- cursor: pointer;
- }
- .sel-opt select option{
- position: relative;
- }
- .points{
- position: absolute;
- top: -2px;
- right: 0;
- width: 10px;
- height: 10px;
- background: #F01516;
- border-radius: 50%;
- }
- .sel-cons{
- border: 1px solid #01B677;
- width: 50%;
- position: absolute;
- right: 0;
- top: 30px;
- text-indent: 10px;
- display: none;
- }
- .sc-lis{
- line-height: 30px;
- cursor: pointer;
- }
- .sc-lis span{
- position: relative;
- }
- .sc-lis .points{
- top: 2px;
- right: -16px;
- }
- .icon-pdf:before { content: "\e618"; }}
- .fl{float:left;}
- /* 往期教师讲案按钮 */
- .history-teacher-exolaincase-btn{cursor: pointer;background: #2977ff;color: #fff;width: 190px;height: 28px;margin-left: 10px;text-indent: 10px;}
- .history-teacher-exolaincase-btn img,.history-teacher-exolaincase-btn span{ color: #fff;vertical-align: middle;line-height: 28px;font-size: 12px;}
- .dtw-top-right-btns{float: right;padding-right:10px;}
- .dtw-top-left-cons{float: left;padding-left: 12px;}
- .layui-layer-btn a:hover{color: #fff}
- </style>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="page-content" >
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
- <div class="row">
- <form method="get" action="<?php echo $this->createUrl('export/index'); ?>" style="padding-left: 0px;">
- <div class="dtw-top-left-cons" >
- <div style="float: left; line-height: 30px; margin: 10px;">
- <input type="checkbox" name="display" class="" style="margin: -1px 2px 0 0;display:inline-block;vertical-align: middle;width:15px;height:15px;" value="1" <?php if($display === '1') echo "checked";?>>显示隐藏试卷
- </div>
- <div class="dataTables_length margin-zy fl" style="width: 650px">
- <div class='diy_select2' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;width:140px;">
- <input type='hidden' id="type_id" name="type_id" class='diy_select_input2' value="<?php if (empty($type_id)) {
- echo 0;
- } else {
- echo $type_id;
- } ?>"/>
- <div class='diy_select_txt2'>
- <?php
- if (empty($type_id)) {
- echo '请选择试卷类别';
- } else {
- switch ($type_id) {
- case 1:echo '校本课程平台试卷';
- break;
- case 2:echo '第三方线上阅卷试卷';
- break;
- case 3:echo '第三方导入成绩试卷';
- break;
- }
- }
- ?>
- </div>
- <div class='diy_select_btn2'></div>
- <ul class='diy_select_list2'>
- <li val="0" >请选择试卷类别</li>
- <li val="1">校本课程平台试卷</li>
- <li val="2">第三方线上阅卷试卷</li>
- <li val="3">第三方导入成绩试卷</li>
- </ul>
- </div>
- <div class='diy_select1' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;">
- <input type='hidden' id="grade_id" name="grade_id" class='diy_select_input1' value="<?php if (empty($grade_id)) {
- echo 0;
- } else {
- echo $grade_id;
- } ?>"/>
- <div class='diy_select_txt1'><?php
- if (empty($grade_id)) {
- echo '请选择年级';
- } else {
- if(isset(Yii::app()->params['grade_list'][$grade_id])){
- echo Yii::app()->params['grade_list'][$grade_id]['grade_name'];
- }
- }
- ?></div>
- <div class='diy_select_btn1'></div>
- <ul class='diy_select_list1'>
- <li val="0" >请选择年级</li>
- <?php
- if(Yii::app()->params['grade_config']){
- foreach (Yii::app()->params['grade_config'] as $id=> $val){
- echo '<li val="'.$id.'">'.$val['grade_name'].'</li>';
- }
- }
- ?>
- </ul>
- </div>
- <div class='diy_select'>
- <input type='hidden' id="class_id" name="class_id" class='diy_select_input' value="<?php if (empty($grade_id) || empty($grade_class) || empty($class_id)) {
- echo 0;
- } else {
- echo $class_id;
- } ?>"/>
- <div class='diy_select_txt'><?php if (empty($grade_id) || empty($class_id) || empty($grade_class)) {
- echo '请选择班级';
- } else {
- if (isset($grade_class[$class_id]) && !empty($grade_class[$class_id])) {
- echo $grade_class[$class_id]['class_name'];
- }
- } ?></div>
- <div class='diy_select_btn'></div>
- <ul class='diy_select_list'>
- <li val="0">请选择班级</li>
- <?php if (empty($grade_id) || empty($grade_class)) {
- echo '';
- } else {
- foreach ($grade_class as $v) {
- ?>
- <li val="<?php echo $v['class_id'] ?>"><?php echo $v['class_name'] ?></li>
- <?php }
- } ?>
- </ul>
- </div>
- <input type="text" class="form-control input-sm" placeholder="请输入报告名称!" name="realname" value="<?php if (!empty($realname)) {
- echo $realname;
- } ?>">
- <!--<button class="btn btn-minier btn-primary">搜索</button>-->
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- </div>
- </form>
- <?php if(isset(Yii::app()->session['session_subject_id']) && in_array(Yii::app()->session['session_subject_id'],Yii::app()->params['mathSubjectId'])) { ?>
- <div class="dtw-top-right-btns mt15" >
- <!-- <div class="history-teacher-exolaincase-btn fl" style="width:110px;/*background:#FD8A01*/">
- <img src="/images/holiday_download.png" alt="" class="" href="" style="width:14px">
- <a href="<?php // echo Yii::app()->createUrl('export/holiday_index');?>"><span>学生假期总结</span></a>
- </div>-->
- <!--
- <div class="history-teacher-exolaincase-btn fl">
- <img src="/images/download.png" alt="" class="" href="">
- <a href="<?php echo Yii::app()->createUrl('productset/teachingIndex');?>"><span>个性化学习宝教学宝设置</span></a>
- </div>
- <?php if ($past_sem_exist):?>
- <div class="history-teacher-exolaincase-btn fl">
- <img src="/images/download.png" alt="" class="" href="">
- <a href="<?php echo Yii::app()->createUrl('export/pastacdemicrs');?>"><span>往期个性化学习宝教学宝</span></a>
- </div>
- <?php endif;?>
- <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
- <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/statistics') ?>">
- <i class="fa fa-plus " style="font-style: normal;"></i> 校长报告
- </a>
- </div>
- -->
- <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
- <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/batch') ?>">
- <i class="fa fa-plus " style="font-style: normal;"></i> 批量下载
- </a>
- </div>
- </div>
- <?php }?>
- </div>
- <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <th width="30%">名称</th>
- <th >试卷类别</th>
- <th >年级</th>
- <th width="10%">班级</th>
- <th width="10%">阅卷状态</th>
- <th width="10%">错题文档</th>
- <th width="30%">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if (!empty($printList)):foreach ($printList as $cl): ?>
- <tr>
- <td><?php if($cl['is_new']==1 && $sub_id != 8){?><span style='color: #ff0000;font-weight: bold;'>【New】</span><?php }?>
- <?php
- if(isset(Yii::app()->session['testFlag']) && Yii::app()->session['testFlag']==1 ){
- echo "<a href=".$this->createUrl("export/classExamAc",array("examGroupId" => $cl['exam_group_id'])).">{$cl['print_name']}</a>";
- }else{
- echo $cl['print_name'];
- }
- ?>
- </td>
- <td><?php echo $cl['type_name']; ?></td>
- <td><?php echo $cl['grade_name']; ?></td>
- <td><?php echo $cl['class_name']; ?></td>
- <td><?php if($cl['status']==1){echo '已完成';}else{echo '未完成';}?></td>
- <td><span style="color: #619aff;font-weight: bold">
- <?php if($cl['type_name']=='第三方导入成绩试卷'){
- echo '';
- }else { ?>
- <?php if ($cl['is_topwb_html'] == 0 || $cl['is_topwb_html'] == 90) {
- echo '未生成';
- } elseif ($cl['is_topwb_html'] == 1 && $cl['is_topwb_pdf'] == 0) {
- echo "正在生成中";
- } elseif ($cl['is_topwb_pdf'] == 1) {
- echo '已生成';
- } elseif ($cl['is_topwb_pdf'] == 9) {
- echo '已删除';
- };
- } ?>
- </span>
- </td>
- <td>
-
- <?php if ($this->schoolManager->classExamHasPaperRs($cl['exam_id'], $cl['class_id'])): ?>
- <!-- <a class="green" style="margin-left:4px;" href="<?php /*echo $this->createUrl("export/excel?examId={$cl['exam_id']}&classId={$cl['class_id']}&type=word&is_outer=0"); */?>">
- <span class="fa fa-file-word-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="导出Word(精简)"></span>
- </a>-->
- <!-- <i class="icon icon-download " rel="<?php echo $cl['exam_id']?>" subject="<?php echo Yii::app()->session['session_subject_id']?>" class_id="<?php echo $cl['class_id']?>" title="下载报表"></i> -->
- <?php if($cl['status']==1){
- ?>
- <a class="green setEduce" href="javascript:;">
- <span
- class="fa fa-file-word-o click-sc addbx downloadFileBtn"
- data-downloadType="1"
- style="padding:0.5px 9px"
- aria-hidden="true"
- title="导出Word"
- <?php
- if($cl['status']==1){
- echo ' complete="1" ';
- }else{
- echo ' complete="0" ';
- }
- ?>
- rel="<?php echo $cl['exam_id']?>"
- subject="<?php echo Yii::app()->session['session_subject_id']?>"
- class_id="<?php echo $cl['class_id']?>" topic_count="<?php echo isset($cl['topic_count'])?$cl['topic_count']:0;?>"
- ></span>
- </a>
- <?php
- }?>
- <a class="green setEduce" href="javascript:;" >
- <span
- class="fa fa-file-excel-o click-sc addbx downloadFileBtn"
- data-downloadType="2"
- style="padding:0.5px 9px"
- aria-hidden="true"
- title="导出Excel"
- <?php
- if($cl['status']==1){
- echo ' complete="1" ';
- }else{
- echo ' complete="0" ';
- }
- ?>
- rel="<?php echo $cl['exam_id']?>"
- subject="<?php echo Yii::app()->session['session_subject_id']?>"
- class_id="<?php echo $cl['class_id']?>"
- ></span>
- </a>
-
- <!--
- <?php if ($cl['status']==1) :?>
- <a class="green" onclick="downpdfPrint('<?php echo $cl['exam_id'] ?>', '<?php echo $cl['class_id'] ?>', '<?php echo $cl['is_labelled'] ?>')" href="javascript:void(0);">
- <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载个性化学习宝教学宝"></span>
- </a>
- <?php if($cl['is_tagging'] == 1):?>
- <?php if($this->isOpenProductMethod($cl['class_id'],$cl['exam_id'])): ?>
- <a class="green" onclick="downMethodPdfPrint('<?php echo $cl['exam_id'] ?>')" >
- <span class="iconfont click-sc addbx" aria-hidden="true" title="下载方法宝教学宝">方</span>
- </a>
- <?php else: ?>
- <a class="green" onclick="notProductMethodAuth()" >
- <span class="iconfont click-sc addbx" aria-hidden="true" title="该班未开通方法宝订单,无法下载方法宝教学宝">方</span>
- </a>
- <?php endif; ?>
- <?php endif;?>
- <?php if ($cl['is_topwb_pdf'] == 1) { ?>
- <a class="green " onclick="downCTQSPrint('<?php echo $cl['exam_id'] ?>')" href="#">
- <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载错题前十"></span>
- </a>
- <?php } ?>
-
- <?php //if(isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)){ ?>
- <?php if($cl['is_academicr_pdf']=='1'&&$cl['academicr_pdf_path']!=""){ ?>
- <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成个性化学习宝教学宝" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',1,this)"></span>
- <?php } ?>
- <?php if($sub_id != 8):?>
- <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成错题前十" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',2,this)"></span>
- <?php endif;?>
- <?php if($cl['is_method_pdf']):?>
- <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成方法宝教学宝" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',3,this)"></span>
- <?php endif;?>
- <?php //} ?>
- <?php endif;?>
- -->
- <?php else: ?>
- <a style="margin-left:10px">
- <span class="iconfont click-sc addbx" aria-hidden="true" title="数据异常"></span>
- </a>
- <?php endif; ?>
- <?php if(!$display){?>
- <span class="iconfont click-sc click-delete addbx" aria-hidden="true" title="隐藏试卷" onclick="oprateExam('<?php echo $cl['exam_id'];?>',1)"></span>
- <?php }else{
- ?>
- <span class="iconfont click-sc click-tc addbx" aria-hidden="true" title="显示试卷" onclick="oprateExam('<?php echo $cl['exam_id'];?>',0)"></span>
- <?php
- }?>
- </td>
- </tr>
- <?php endforeach;
- else: ?>
- <tr><td colspan="4">暂无数据!</td></tr>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if (!empty($page_total)): ?>
- <div class="row" style="padding-top:10px;">
- <div class="col-xs-7">
-
- </div>
- <div class="col-xs-5" style="font-size: 16px">
- <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
- <?php
- $this->widget('CLinkPager', array(
- 'header' => '',
- 'firstPageLabel' => '首页',
- 'lastPageLabel' => '末页',
- 'prevPageLabel' => '上一页',
- 'nextPageLabel' => '下一页',
- 'pages' => $pages,
- 'maxButtonCount' => 5,
- ));
- echo '<span style="vertical-align:middle;">共:' . $page_total . '条</span>';
- ?>
- </div>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <?php include(Yii::app()->basePath.'/views/print/_print.php');?>
- <script src="/js/export/report.js?v=1.1.10"></script>
- <script type="text/javascript">
- function reloadAcademicr(examId,type,obj){
- $.get("<?php echo $this->createUrl("export/reload_academicr") ?>", {examId: examId, type: type}, function(data) {
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- alert('重置成功');
- $(obj).hide()
- }
- });
- }
- function downpdf(examId, classId) {
- layer.msg('生成中,请稍后...', { time: 0, shade: 0.4 })
- var subjectId = "<?php echo Yii::app()->session['session_subject_id'];?>";
- var url = '';
- if(subjectId == 8){
- url = "<?php echo $this->createUrl("teaching/index") ?>";
- }else{
- url = "<?php echo $this->createUrl("export/academicr") ?>";
- }
- $.get(url, {examId: examId, classId: classId}, function(data) {
- console.log(data);
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- if (m.is_create == 1) {
- setTimeout(function() {
- layer.closeAll()
- }, 500);
- } else {
- layer.closeAll()
- }
- location.href="<?php echo $this->createUrl("export/down_load")?>?examId="+examId;
- } else
- {
- setTimeout(function() {
- layer.closeAll()
- }, 500);
- layer.msg(m.error)
- // alert(m.error);
- }
- });
- }
- //方法宝教师版
- function downMethodPdf(examId) {
- layer.msg('生成中,请稍后...', { time: 0, shade: 0.4 });
- var url = "<?php echo $this->createUrl("productexam/method_pdf");?>?examId="+examId+"&productType=31";
- window.location.href = url;
- layer.closeAll();
- // $.get(url, {examId: examId, productType: 31}, function(data) {
- // console.log(data);
- // var m = JSON.parse(data);
- // if (m.status == 0)
- // {
- // if (m.is_create == 1) {
- // setTimeout(function() {
- // layer.closeAll()
- // }, 500);
- // } else {
- // layer.closeAll()
- // }
- //
- // } else
- // {
- // setTimeout(function() {
- // layer.closeAll()
- // }, 500);
- // layer.msg(m.error)
- // // alert(m.error);
- // }
- // });
- }
- $(document).ready(function() {
-
- $(".sel-opt,.sel-cons").mouseover(function() {
- $(".sel-cons").show();
- }).mouseout(function() {
- $(".sel-cons").hide();
- });
- $(".sc-lis").click(function() {
- var data = {
- subjectId: $(this).attr('val')
- };
- $.post("<?php echo Yii::app()->createUrl('print/setSubjectId') ?>", data, function(flags) {
- if (flags)
- {
- location.reload();
- } else
- {
- alert('网络异常');
- }
- });
- $('.has-sel').text($(this).text());
- $(".sel-cons").hide();
- });
- });
- function ccc() {
- layer.msg('敬请期待!', {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index) {
- layer.close(index);
- return false;
- }
- });
- }
- $(function() {
- $(".diy_select1").click(function() {
- var grade = $(".diy_select1 input[class=diy_select_input1]").val();
- if (grade == 0)
- {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list li").text("请选择班级");
- $(".diy_select_list li").attr("val", 0);
- }
- $.post("<?php echo $this->createUrl('classes/getclass'); ?>", {grade_id: grade}, function(data) {
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list").empty();
- var html = '<li val="0">请选择班级</li>';
- $(".diy_select_list").html(html);
- } else {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list").empty();
- var html = '<li val="0">请选择班级</li>';
- $.each(m.result, function(i, n) {
- html += '<li val="' + n.class_id + '">' + n.class_name + '</li>';
- });
- $(".diy_select_list").html(html);
- }
- });
- });
- });
- // 隐藏试卷
- function oprateExam(exam_Id,flag){
- if (exam_Id) {
- layer.msg('未找到周周练id');
- }
- if(flag==0){
- var msg = '您确定要恢复该报告吗?';
- }else{
- var msg = '您确定要隐藏该报告吗?';
- }
- layer.msg(msg, {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index){
- layer.close(index);
- $.post('<?php echo $this->createUrl("export/oprateexam");?>',{exam_id:exam_Id,flag:flag},function(data){
- var obj = JSON.parse(data);
- if (obj.success == 1) {
- layer.msg(obj.message);
- location.reload();
- } else {
- layer.msg(obj.message);
- }
- });
- }
- });
- }
- // 无下载方法宝教学宝权限提示
- function notProductMethodAuth(){
- var msg = '该班未开通方法宝订单,无法下载方法宝教学宝';
- layer.msg(msg, {
- time: 0,
- btn: ['确定'],
- yes: function(index){
- layer.close(index);
- }
- });
- }
- </script>
|