1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Document</title>
- <link rel="stylesheet" href="<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/css/mathTeaching.css" />
- <style media="print">
- @media print {
- .Noprint {
- display: none;
- }
- body {
- color: #000;
- background: #fff;
- font-family: "宋体";
- }
- h1 {
- color: #000;
- background: none;
- }
- nav,
- aside {
- display: none;
- }
- body,
- article {
- width: 100%;
- margin: 0;
- padding: 0;
- }
- article a {
- font-weight: bolder;
- text-decoration: none;
- }
- article a[href^="http"] {
- display: none;
- }
- @page {
- margin: 1cm;
- }
- @page {
- size: B5 portrait;
- }
- @page: left {
- margin-left: 1cm;
- }
- @page: right {
- margin-left: 1cm;
- }
- @page: right {
- @bottom-right {
- margin: 10pt 0 30pt 0;
- border-top: 0.25pt solid #666;
- content: 33;
- font-size: 9pt;
- }
- }
-
- }
- </style>
- <style type="text/css">
- .tl-tit{
- background: url(<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/images/tl-tit_bg.png) no-repeat;
- background-size: contain;
- }
- .type-title {
- background: url(<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/images/case_lable.png) no-repeat;
- background-size: 100% 100%;
- }
- </style>
- </head>
- <body>
- <?php
- if(!isset($imgUrl)){
- $imgUrl = Yii::app()->request->hostInfo;
- }
- $part_no = 1;
- ?>
- <!-- 封面 -->
- <?php if(!$isPrecise):?>
- <div class="cover">
- <img src="<?php echo $imgUrl;?>/images/math-cover-1.jpg" alt="" />
- <div class="info">
- <div class="class"><?php echo $className ?></div>
- <div class="exam"><?php echo $examName; ?></div>
- <div class="teacher"><?php echo isset($teacherName)?$teacherName:''; ?></div>
- </div>
- </div>
- <?php else:?>
- <div class="cover2">
- <img src="<?php echo $imgUrl;?>/images/cover2.jpg" alt="" />
- <div class="info">
- <div class="class"><?php echo $className ?></div>
- <div class="exam"><?php echo $examName; ?></div>
- </div>
- </div>
- <?php endif;?>
- <div class="paper">
- <!--<p class="tec-title tac"><?php // echo $examName; ?>-<?php // echo $className ?>-教师讲案</p>-->
- <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:学情分析</h2>
- <div class="tec-lis">
- <p class="tl-tit fzl">一、班级情况分析</p>
- <table cellpadding="0" cellspacing="0" class="class-analyze-detail">
- <tr>
- <td>
- <p class="tl-num-detail">参加考试人数 <?php if (isset($totalNum)): echo $totalNum; endif; ?>人</p>
- <p class="tl-num-warn"><?php if (isset($absentNum)): echo $absentNum; else: echo '0'; endif; ?>人缺考</p>
- </td>
- <td>
- <p class="tl-num-detail">平均得分率 <?php if (isset($avgRate)): echo $avgRate; endif; ?>%</p>
- <p class="tl-num-warn">较上次考试<?php if (isset($avgFluctuate)): if ($avgFluctuate > 0): echo '+'; endif; echo $avgFluctuate; endif; ?>%</p>
- </td>
- <td>
- <p class="tl-num-detail">平均分 <?php if (isset($avgScore)): echo $avgScore; endif; ?></p>
- <p class="tl-num-warn">最高分<?php if (isset($maxScore)): echo $maxScore; endif; ?>, 最低分<?php if (isset($minScore)): echo $minScore; endif; ?>, 满分<?php if (isset($fullScore)): echo $fullScore; endif; ?></p>
- </td>
- <td>
- <p class="tl-num-detail">及格率 <?php if (isset($passRate)): echo $passRate; else: echo '0'; endif; ?>%</p>
- <p class="tl-num-warn">其中得分率90%以上的有<?php if (isset($passNum_90)): echo $passNum_90; else: echo '0'; endif; ?>人</p>
- </td>
- </tr>
- </table>
- <div class="cad-main-tables clearfix">
- <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
- <tr>
- <td colspan="3" class="fzm">大幅进步</td>
- </tr>
- <tr class="gray-font">
- <td>姓名</td>
- <td>班级排名</td>
- <td>排名提升</td>
- </tr>
- <?php if (isset($forwards)): ?>
- <?php $i = 1; ?>
- <?php foreach ($forwards as $key => $val): ?>
- <?php foreach ($val as $k => $v): ?>
- <?php if ($i > 5): break 2; endif; ?>
- <tr>
- <td><?php echo $v['realname']; ?></td>
- <td><?php echo $v['rank']; ?></td>
- <td><?php echo $key; ?></td>
- </tr>
- <?php $i++; ?>
- <?php endforeach; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </table>
- <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
- <tr>
- <td colspan="3" class="fzm">大幅退步</td>
- </tr>
- <tr class="gray-font">
- <td>姓名</td>
- <td>班级排名</td>
- <td>排名下降</td>
- </tr>
- <?php if (isset($rewinds)): ?>
- <?php $i = 1; ?>
- <?php foreach ($rewinds as $key => $val): ?>
- <?php foreach ($val as $k => $v): ?>
- <?php if ($i > 5): break 2; endif; ?>
- <tr>
- <td><?php echo $v['realname']; ?></td>
- <td><?php echo $v['rank']; ?></td>
- <td><?php echo $key; ?></td>
- </tr>
- <?php $i++; ?>
- <?php endforeach; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </table>
- <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
- <tr>
- <td colspan="3" class="fzm">班级前五名</td>
- </tr>
- <tr class="gray-font">
- <td>姓名</td>
- <td>班级排名</td>
- </tr>
- <?php if (isset($ranks)): ?>
- <?php $i = 1; ?>
- <?php foreach ($ranks as $rank): ?>
- <?php if ($i > 5): break; endif; ?>
- <tr>
- <td><?php echo $rank['realname']; ?></td>
- <td><?php echo $rank['rank']; ?></td>
- </tr>
- <?php $i++; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </table>
- <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
- <tr>
- <td colspan="3" class="fzm">班级后五名</td>
- </tr>
- <tr class="gray-font">
- <td>姓名</td>
- <td>班级排名</td>
- </tr>
- <?php if (isset($ranks)): ?>
- <?php $i = 1; ?>
- <?php foreach (array_reverse($ranks) as $rank): ?>
- <?php if ($i > 5): break; endif; ?>
- <tr>
- <td><?php echo $rank['realname']; ?></td>
- <td><?php echo $rank['rank']; ?></td>
- </tr>
- <?php $i++; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </table>
- </div>
- </div>
- <div class="tec-lis">
- <p class="tl-tit fzl">二、考试情况分析</p>
- <?php if (isset($errorNums)): ?>
- <?php $n = count($errorNums); ?>
- <?php $p = ceil($n / 8); ?>
- <?php for ($i = 0; $i < $p; $i++): ?>
- <table cellpadding="0" cellspacing="0" class="knowledge-hasget-count tac">
- <tr>
- <td class="tal"> 题号</td>
- <?php for ($j = 1; $j <= 8; $j++): ?>
- <td>
- <?php if (isset($errorNums[$j + $i * 8])): ?>
- <?php // echo ($j + $i * 8); ?>
- <?php echo isset($newTopicNos[$noTopicIds[$j + $i * 8 - 1]]) ? $newTopicNos[$noTopicIds[$j + $i * 8 - 1]] : ($j + $i * 8);?>
- <?php endif; ?>
- </td>
- <?php endfor; ?>
- </tr>
- <tr>
- <td class="tal"> 平均分</td>
- <?php for ($j = 1; $j <= 8; $j++): ?>
- <td>
- <?php if (isset($errorNums[$j + $i * 8])): ?>
- <?php echo isset($noTopicIds[($j + $i * 8 - 1)])?$topics[$noTopicIds[$j + $i * 8 - 1]]['avgScore']:0;?>
- <?php endif;?>
- </td>
-
- <?php endfor; ?>
-
- </tr>
- <tr>
- <td class="tal"> 答错人数</td>
- <?php for ($j = 1; $j <= 8; $j++): ?>
- <td>
- <?php if (isset($errorNums[$j + $i * 8])): ?>
- <?php echo $errorNums[$j + $i * 8]; ?>
- <?php endif; ?>
- </td>
- <?php endfor; ?>
- </tr>
- <tr>
- <td class="tal" style="width:58px;"> 错误率</td>
- <?php
- for ($j = 1; $j <= 8; $j++): ?>
- <td style="width:51px;">
- <?php if (isset($errorNums[$j + $i * 8])): ?>
- <!--如果有选做题这种算法是错的-->
- <!--<?php //echo isset($noTopicIds[($j + $i * 8 - 1)])?(100 - $topics[$noTopicIds[$j + $i * 8 - 1]]['avgRate']):100; ?>%-->
- <?php echo (isset($noTopicIds[($j + $i * 8 - 1)])&& count($topics[$noTopicIds[$j + $i * 8 - 1]]['studentIds']))?sprintf("%.2f",($topics[$noTopicIds[$j + $i * 8 - 1]]['numWrong'] *100)/count($topics[$noTopicIds[$j + $i * 8 - 1]]['studentIds'])):0; ?>%
- <?php endif; ?>
- </td>
- <?php endfor; ?>
- </tr>
- </table>
- <?php endfor; ?>
- <?php endif; ?>
- </div>
- <div class="tec-lis">
-
- <?php if(isset($answer_score_details) && $answer_score_details):?>
- <p class="tl-tit fzl">三、客观题得分明细</p>
- <?php $tr_size = 16;?>
- <?php $topic_count = count($answer_score_details);?>
- <?php $p = ceil($topic_count / $tr_size); ?>
- <?php for ($i = 0; $i < $p; $i++): ?>
- <?php $tr_data = array_slice($answer_score_details,$i*$tr_size,$tr_size);?>
- <table cellpadding="0" cellspacing="0" class="score-details tac">
- <tr>
- <td class="tal" style="width: 28mm">题号(答案)</td>
- <?php
- $temp_tr_data = array();
- $option_answer_html = '';
- $option_html = '';
- $option_count_html = '';
- foreach($tr_data as $k=>$v){
- if(!isset($temp_tr_data[$v['id']])){
- $temp_tr_data[$v['id']]['answer'] = $v['answer'];
- $temp_tr_data[$v['id']]['order'] = $v['order'];
- $temp_tr_data[$v['id']]['count'] = 1;
- }else{
- $temp_tr_data[$v['id']]['count']++;
- }
- $option_html.='<td class="sel">'.$v['option'].'</td>';
- $option_count_html.='<td>'.$v['option_count'].'</td>';
- }
- if($temp_tr_data){
- foreach($temp_tr_data as $k=>$v){
- $option_answer_html.= '<td colspan="'.$v['count'].'">'.$v['order'].'('.$v['answer'].')</td>';
- }
- }
- echo $option_answer_html;
- ?>
- </tr>
- <tr>
- <td class="tal">选项</td><?php echo $option_html;?>
- </tr>
- <tr>
- <td class="tal">选择人数</td><?php echo $option_count_html;?>
- </tr>
- </table>
- <?php endfor;?>
- <?php endif;?>
- </div>
- <div class="tec-lis">
- <?php if(isset($answer_score_details) && $answer_score_details):?>
- <p class="tl-tit fzl">四、考点掌握情况</p>
- <?php else:?>
- <p class="tl-tit fzl">三、考点掌握情况</p>
- <?php endif;?>
- <table cellpadding="0" cellspacing="0" class="knowledge-counts tac">
- <thead>
- <td class="test-point-name tac">考点名称</td>
- <td class="test-get-level">考点掌握水平</td>
- <td class="class-score-rate">班级得分率</td>
- <td class="error-counts">答错人数</td>
- <td class="sel-theme-ser tac">选题对应题号</td>
- </thead>
- <?php if (isset($methodNos)): ?>
- <?php foreach ($methodNos as $methodId => $nos): ?>
- <tr>
- <td class="test-point-name"><?php if (isset($methodNames[$methodId])): echo $methodNames[$methodId]; else: echo $methodId; endif; ?></td>
- <?php $rate = number_format($methodScores[$methodId] / $methodFullScores[$methodId], 4) * 100; ?>
- <td class="test-get-level">
- <?php if ($rate < 40): ?>
- <?php $star = 1; ?>
- <?php elseif ($rate >= 40 && $rate < 60): ?>
- <?php $star = 2; ?>
- <?php elseif ($rate >= 60 && $rate < 80): ?>
- <?php $star = 3; ?>
- <?php elseif ($rate >= 80 && $rate < 90): ?>
- <?php $star = 4; ?>
- <?php else: ?>
- <?php $star = 5; ?>
- <?php endif; ?>
- <?php for ($i = 1; $i <= $star; $i++): ?>
- <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAMAAACxiD++AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjNzJhZjRkYy03MTQwLTQwNmYtOTVmYS0yYzc5YTY1ZmQ5NDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUFCN0ZDMjUzQkE4MTFFNzkxM0NEREIyRTUxNDU3QzIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUFCN0ZDMjQzQkE4MTFFNzkxM0NEREIyRTUxNDU3QzIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4MTkwNDg4MS1hZWE4LTQ2MjgtYTgyMC05YTRjNDBiNDUxMDQiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo5ZDU4YzUzYS03N2E4LTExN2EtOWRmNS1lZGQ2ZjFiODM4ZDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4FhkuMAAAAwFBMVEWcnJz////8/Pz8/Pyfn5/7+/vPz8+enp7S0tL+/v7e3t7n5+fx8fGgoKCwsLDNzc2urq6mpqbV1dXY2Njj4+P29vaxsbHr6+vt7e3U1NT6+vr39/ednZ25ubmpqamhoaG/v7+3t7fv7+/5+fmvr6+srKyrq6vu7u7X19ezs7O2traioqK8vLytra3GxsadnZ3Dw8Pk5OSkpKTp6emnp6f4+PjLy8vZ2dnz8/OlpaXKysrw8PD19fXg4ODb29v///8jpzsDAAAAQHRSTlP///////////////////////////////////////////////////////////////////////////////////8AwnuxRAAAAQxJREFUeNp80uduwzAMBOA70PJ2kqZJs9C9Z7p3m/d/q1qpI9CwbP4z7wNkUcRKFyXLWeusUPuSD2Cb7YB9AJFpByYqAUK2AYY2RyBtQII1QEw/YPyfoxA/kKICGNIHONzk2BfWAMnjycVN4ABuP39yKdsW0Dz0Lwt4amt3NkmI9wAddUgcoLPGuO8Gcyyuu/KY4PixKy+vyZfntty+fDkHzs/8ecrNoGTgiZcjulFTdpp5RvUWHDXnSP1YfG0eITXQPAJfGiSeB0k1WHhucad/MvOAgQJuG4FTd9gyUeCqap5MKWFUfXwr0Ft3elO7ZI7kCqQ2Pmc1GxpL9hI9h6fZEdWu0/y+VZv9J8AAurVkME920MoAAAAASUVORK5CYII=" alt="" class="stars">
- <?php endfor; ?>
- <?php if (5 - $star >= 1): ?>
- <?php for ($i = 1; $i <= 5 - $star; $i++): ?>
- <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAfCAMAAACxiD++AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpjNzJhZjRkYy03MTQwLTQwNmYtOTVmYS0yYzc5YTY1ZmQ5NDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkNBNkIxOUQzQkE4MTFFN0IyNDNGNzU0NzdFMjE5OTgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkNBNkIxOUMzQkE4MTFFN0IyNDNGNzU0NzdFMjE5OTgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4MTkwNDg4MS1hZWE4LTQ2MjgtYTgyMC05YTRjNDBiNDUxMDQiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo5ZDU4YzUzYS03N2E4LTExN2EtOWRmNS1lZGQ2ZjFiODM4ZDMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6hPxIfAAAAilBMVEXx8fHY2Nja2trw8PD////v7+/Z2dne3t7+/v7m5ubf39/l5eXn5+fc3Nzh4eHY2Njs7Ozo6Oj6+vrb29vd3d3j4+Pn5+f4+Pju7u77+/vq6urg4ODr6+v9/f35+fn19fXp6env7+/t7e339/f8/Pz29vbz8/Pi4uL19fX09PTy8vLk5OTg4OD///+TZt6CAAAALnRSTlP///////////////////////////////////////////////////////////8Ago9zVQAAAUhJREFUeNp8k+lugzAQhFe2hTkEw+kElERxTtom7/96tQ1ttTRkfmHm02CPF3oyqcNzIeLLCvIt0CMSH++ADJkR9TqwQSSlSONVQCMjMhjWABdgiaRAvwKkPoAowUO9BkJAiBiXgIr7sdRTgI8Qhg57NQNx/Vnl8JoCQkRQt73uFfVRWORFMsw+kR2Sop2gG30h76qTpP/aHjONgiS0pRVZDUmqQ75C2BZHv8kHmu1Lv0Gl/DHjFOL0YgvC+6EHR0Tl0i8FjuqnKPcVDNzfRSjVX5NxB3BAwLK7OCDngEbMgL1rhOmOmgFXJBwwuDHAYrc4BHYMMJjbNGa6FomMAUUT3poGbhYCkhcMaB/ednPQ5DNSaAZEiUycfXdbr11rwi0jNnJInZ1uQnfqrB2SgiW42dHn31lWo58nBlzsqNgft7GX6eFbgAEAYateOzxWRMYAAAAASUVORK5CYII=" alt="" class="stars">
- <?php endfor; ?>
- <?php endif; ?>
- </td>
- <td class="class-score-rate"><?php echo $rate; ?>%</td>
- <td class="error-counts"><?php echo count($methodErrorStudents[$methodId]); ?></td>
- <td class="sel-theme-ser">
- <?php foreach ($nos as $no): ?>
- <span class="sts-num tac"><?php echo $no; ?></span>
- <?php endforeach; ?>
- </td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </table>
- </div>
- <?php if(isset($gen_topics) && $gen_topics && isset($setting_arr['common']) && $setting_arr['common']):?>
- <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:共性问题精讲</h2>
- <div class="guide-wrap proposal">
-
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">讲评建议</div>
- </div>
- <p class="font10">
- <?php
- $gen_tips = '';
- if(isset($gen_topics_msg) && $gen_topics_msg){
- foreach($gen_topics_msg as $k=>$v){
- if(isset($v['template_no']) && $v['template_no']){
- $gen_tips .="第<span class='org'>".$v['template_no']."</span>题、";
- }
- }
- }
- if($gen_tips){
- // $gen_tips = mb_substr($gen_tips,0,mb_strlen($gen_tips)-1);
- $gen_tips = mb_substr($gen_tips,0,-1,'utf-8');
- }
- ?>
- 本次考试<?php echo $className;?>平均得分率<?php echo isset($avgRate)?$avgRate:''; ?>%,共性问题为<?php echo $gen_tips;?>,涉及到的考点是<?php echo isset($gen_origin_methods)?$gen_origin_methods:'';?>,已为您精准匹配变式训练题,建议您重点讲解!
- </p>
- </div>
- </div>
- <div class="tec-lis">
-
-
- <?php foreach($gen_topics as $k=>$v):?>
- <div class="themes-block">
- <?php foreach($v as $gen_topic):?>
- <?php if(!isset($gen_topics_detail[$gen_topic["topic_id"]])){continue;}?>
- <?php
- $new_k_type_id = 1;
- if(isset($gen_topics_detail[$gen_topic["topic_id"]])){
- if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']){
- $new_k_type_id = $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id'];
- }else{
- $new_k_type_id = $gen_topics_detail[$gen_topic["topic_id"]]['type_id'];
- }
- }
- ?>
- <?php if($gen_topic['is_template'] == 1):?>
- <div class="them-apecial-style clearfix">
- <div class="tit-img">
- <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
- </div>
- <div class="tit-orange-bg fl">
- <span class="tts-msg">第<?php echo isset($newTopicNos[$gen_topic["topic_id"]])?$newTopicNos[$gen_topic["topic_id"]]:"";?>题</span>
- <span class="tts-msg"><?php echo isset($gen_topics_detail[$gen_topic["topic_id"]])?$gen_topics_detail[$gen_topic["topic_id"]]["type_name"]:'';?></span>
- </div>
- <div class="tas-score-detail">
- <span class="tsd-lis-detail">ID:<i class="org">
- <?php
- if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && substr($gen_topic["topic_id"],0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
- echo substr($gen_topic["topic_id"],4);
- }else{
- echo $gen_topic["topic_id"];
- }
- ?></i>
- </span>
- <span class="tsd-lis-detail">班级得分率:<i class="org"><?php if (isset($groupTopics[$gen_topic["topic_id"]]) && isset($topics[$gen_topic["topic_id"]]['classRate'])): echo $topics[$gen_topic["topic_id"]]['classRate'].'%'; endif; ?></i></span>
- <span class="tsd-lis-detail">年级得分率:<i class="org"><?php if (isset($gradeTopicRate[$gen_topic["topic_id"]])): echo $gradeTopicRate[$gen_topic["topic_id"]].'%'; endif; ?></i></span>
- <!--<span class="tsd-lis-detail">答对:<i class="org"><?php if (isset($topics[$gen_topic["topic_id"]])): echo $topics[$gen_topic["topic_id"]]['numRight']; endif; ?>人</i></span>-->
- <!--<span class="tsd-lis-detail">答错:<i class="org"><?php if (isset($topics[$gen_topic["topic_id"]])): echo $topics[$gen_topic["topic_id"]]['numWrong']; endif; ?>人</i></span>-->
- </div>
- </div>
-
- <div class="wrong-studen-block">
- <?php if(isset($topics[$gen_topic["topic_id"]]['rateLess70']) && isset($topics[$gen_topic["topic_id"]]['rateLess70']) && $topics[$gen_topic["topic_id"]]['rateLess70']):?>
- <div class="wrong-student">
- <span class="student">【答错<i><?php echo count($topics[$gen_topic["topic_id"]]['rateLess70']);?></i>人 <?php echo ($new_k_type_id == 1)?'答错学生':'得分率低于70%的学生';?>】</span>
- <span class="font-bold">
- <?php echo implode('、',$topics[$gen_topic["topic_id"]]['rateLess70']);?>
- </span>
- </div>
- <?php endif;?>
- </div>
- <?php else:?>
- <!--<div class="train">【变式训练】</div>-->
- <div class="train">
- <img src="<?php echo $imgUrl;?>/images/Variation-training.jpg" alt="">
- </div>
- <?php endif;?>
- <?php if(isset($gen_topics_detail[$gen_topic["topic_id"]])):?>
- <?php if($gen_topic['is_template'] && !$setting_arr['common_wrong']){continue;}?>
- <?php if($gen_topic['is_template'] == 1):?>
- <div class="details">
- <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
- </div>
- <?php endif;?>
- <div class="theme-detail-msg">
- <?php if(!$gen_topic['is_template']):?>
- <span class="org">【
- <?php
- //echo $gen_topic["topic_id"];
- if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && substr($gen_topic["topic_id"],0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
- echo substr($gen_topic["topic_id"],4);
- }else{
- echo $gen_topic["topic_id"];
- }
- ?>
- 】</span>
- <?php endif;?>
- <?php echo $gen_topics_detail[$gen_topic["topic_id"]]['title']; ?>
- </div>
- <?php $answers = array(); ?>
- <?php if ( (in_array($new_k_type_id,array(1,2)) || (!isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && $gen_topics_detail[$gen_topic["topic_id"]]['type_id']==3)
- || (isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']==3)
- )
- && isset($gen_topics_detail[$gen_topic["topic_id"]]['items']) && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0])
- && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'])): ?>
- <ul class="answer clearfix">
- <?php $i = 1; ?>
- <?php foreach ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'] as $option): ?>
- <?php if ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['list_type'] == 1): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php elseif ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['list_type'] == 2): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php else: ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php endif; ?>
- <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
- <?php $i++; ?>
- <?php endforeach; ?>
- </ul>
- <?php elseif (isset($gen_topics_detail[$gen_topic["topic_id"]]['items']) && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]) && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'])): ?>
- <?php foreach ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'] as $option): ?>
- <?php $answers[] = $option['option_content']; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- <div class="answer-explain-detail clearfix">
- <?php if ($answers): ?>
- <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answer): ?><?php echo $answer; ?> <?php endforeach; ?></div>
- <?php endif;?>
- <div class="fl aed-answer-explain">
- <span>【解析】</span>
- <?php echo $gen_topics_detail[$gen_topic["topic_id"]]['parse_content']; ?>
- </div>
- </div>
- <?php endif;?>
- <?php endforeach;?>
- </div>
- <?php endforeach;?>
-
- </div>
- <?php endif;?>
- <?php if(isset($grade_topic_data) && $grade_topic_data):?>
- <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:年级共性问题精讲</h2>
- <div class="guide-wrap proposal">
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">讲评建议</div>
- </div>
- <p class="font10">
- 推送<?php echo count($grade_topic_data);?>道年级共性问题,请您重点讲解!
- </p>
- </div>
- </div>
- <div class="tec-lis">
- <?php foreach($grade_topic_data as $k=>$v):?>
- <?php
- $new_k_type_id = 1;
- if(isset($v['basic_type_id']) && $v['basic_type_id']){
- $new_k_type_id = $v['basic_type_id'];
- }else{
- $new_k_type_id = $v['type_id'];
- }
- $methods_arr = array();
- if(isset($v['specials']) && $v['specials']){
- foreach($v['specials'] as $specials){
- if(isset($specials['method_name'])){
- $methods_arr[] = $specials['method_name'];
- }
- }
- }elseif(isset($v['kps']) && $v['kps']){
- foreach($v['kps'] as $kps){
- if(isset($kps['kp_name'])){
- $methods_arr[] = $kps['kp_name'];
- }
- }
- }
- ?>
- <div class="themes-block">
- <div class="them-apecial-style clearfix">
- <div class="tit-img">
- <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
- </div>
- <div class="tit-orange-bg fl">
- <span class="tts-msg">练习题<?php echo $k+1;?></span>
- </div>
- <div class="tas-score-detail">
- <span class="tsd-lis-detail">ID:<i class="org">
- <?php
- if(isset($v['basic_type_id']) && substr($v["id"],0,4) =="2015"){
- echo substr($v["id"],4);
- }else{
- echo $v["id"];
- }?></i>
- </span>
- <span class="tsd-lis-detail">知识点:<i class="org knowledge-point"><?php echo implode(",",$methods_arr)?></i></span>
- </div>
- </div>
- <div class="details">
- <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
- </div>
- <div class="theme-detail-msg">
- <?php echo $v['title']; ?>
- </div>
- <?php $answers = array(); ?>
- <?php if ((in_array($new_k_type_id,array(1,2)) || (isset($v['basic_type_id']) && $v['basic_type_id']==3) ||
- (!isset($v['basic_type_id']) && $v['type_id'] ==3))
- && isset($v['items']) && isset($v['items'][0]) && isset($v['items'][0]['options'])): ?>
- <ul class="answer clearfix">
- <?php $i = 1; ?>
- <?php foreach ($v['items'][0]['options'] as $option): ?>
- <?php if ($v['items'][0]['list_type'] == 1): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php elseif ($v['items'][0]['list_type'] == 2): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php else: ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php endif; ?>
- <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
- <?php $i++; ?>
- <?php endforeach; ?>
- </ul>
- <?php elseif (isset($v['items']) && isset($v['items'][0]) && isset($v['items'][0]['options'])): ?>
- <?php foreach ($v['items'][0]['options'] as $option): ?>
- <?php $answers[] = $option['option_content']; ?>
- <?php endforeach; ?>
- <?php endif; ?>
-
- <div class="answer-explain-detail clearfix">
- <?php if ($answers): ?>
- <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answer): ?><?php echo $answer; ?> <?php endforeach; ?></div>
- <?php endif;?>
- <div class="fl aed-answer-explain">
- <span>【解析】</span>
- <?php echo $v['parse_content']; ?>
- </div>
- </div>
- </div>
- <?php endforeach;?>
-
- </div>
-
- <?php endif;?>
- <?php if(isset($setting_arr['paper']) && $setting_arr['paper']):?>
- <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:试卷讲评</h2>
- <?php if ($wb_isp_version != 1) :?>
- <div class="tec-lis">
-
-
- <?php if (isset($topicIds)): ?>
- <?php $idx = 1; ?>
- <?php foreach ($topicIds as $topicId): ?>
- <?php if (isset($topicDetails[$topicId]) && count($topics[$topicId]["studentIds"])>0):?>
- <div class="little-themes-con">
- <?php
- $new_k_type_id = 1;
- if(isset($topicDetails[$topicId]['basic_type_id']) && $topicDetails[$topicId]['basic_type_id']){
- $new_k_type_id = $topicDetails[$topicId]['basic_type_id'];
- }else{
- $new_k_type_id = $topicDetails[$topicId]['type_id'];
- }
- ?>
- <div class="them-apecial-style clearfix">
- <div class="tit-img">
- <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
- </div>
- <div class="tit-orange-bg fl">
- <span class="tts-msg">第<?php echo isset($newTopicNos[$topicIds[$idx - 1]]) ? $newTopicNos[$topicIds[$idx - 1]] : $this->numToUpper($idx)?>题</span>
- <span class="tts-msg"><?php echo isset($topicDetails[$topicId]['type_name'])?$topicDetails[$topicId]['type_name']:'';?></span>
- </div>
- <div class="tas-score-detail">
- <span class="tsd-lis-detail">ID:<i class="org">
- <?php
- if (isset($topicDetails[$topicId]['basic_type_id']) && substr($topicId, 0, 4) == "2015") {
- echo substr($topicId, 4);
- } else {
- echo $topicId;
- } ?></i>
- </span>
- <span class="tsd-lis-detail">班级得分率:<i class="org"><?php if (isset($groupTopics[$topicId]) && isset($topics[$topicId]['classRate'])): echo $topics[$topicId]['classRate'].'%'; endif; ?></i></span>
- <span class="tsd-lis-detail">年级得分率:<i class="org"><?php if (isset($gradeTopicRate[$topicId])): echo $gradeTopicRate[$topicId].'%'; endif; ?></i></span>
- <!--<span class="tsd-lis-detail">答对:<i class="org"><?php if (isset($topics[$topicId])): echo $topics[$topicId]['numRight']; endif; ?>人</i></span>-->
- <!--<span class="tsd-lis-detail">答错:<i class="org"><?php if (isset($topics[$topicId])): echo $topics[$topicId]['numWrong']; endif; ?>人</i></span>-->
- </div>
- </div>
- <!--答错学生-->
- <div class="wrong-studen-block">
- <?php if(isset($topics[$topicId]['rateLess70']) && isset($topics[$topicId]['rateLess70']) && $topics[$topicId]['rateLess70']):?>
- <div class="wrong-student">
- <span class="student">【答错<i><?php echo count($topics[$topicId]['rateLess70']);?></i>人 <?php echo ($new_k_type_id == 1)?'答错学生':'得分率低于70%的学生';?>】</span>
- <span class="font-bold">
- <?php echo implode('、',$topics[$topicId]['rateLess70']);?>
- </span>
- </div>
- <?php endif;?>
- </div>
- <?php if(isset($setting_arr['paper_wrong']) && $setting_arr['paper_wrong']):?>
- <!--题目-->
- <div class="details">
- <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
- </div>
- <div class="theme-detail-msg">
- <?php echo $topicDetails[$topicId]['title']; ?>
- </div>
- <!--选项答案-->
- <?php $answers = array(); ?>
- <?php if(isset($topicDetails[$topicId]['slave']) && $topicDetails[$topicId]['slave']):?>
- <!--全学科有小题的情况-->
- <?php foreach($topicDetails[$topicId]['slave'] as $sla_k=>$sla_v):?>
- <?php if(isset($sla_v->title) && $sla_v->title):?>
- <!--题目-->
- <div class="theme-detail-msg">
- <?php echo $sla_v->title; ?>
- </div>
- <?php endif;?>
- <?php if(isset($sla_v->items) && isset($sla_v->items->options) && $sla_v->items->options):?>
- <!--选项-->
- <?php if(count($sla_v->items->options)>1):?>
- <ul class="answer clearfix">
- <?php $i = 1; ?>
- <?php foreach($sla_v->items->options as $sla_op_k=>$sla_op_v):?>
- <?php if(isset($sla_v->list_type) && $sla_v->list_type):?>
-
- <?php if ($sla_v->list_type == 1): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
- <?php elseif ($sla_v->list_type == 2): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
- <?php else: ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
- <?php endif; ?>
- <?php else:?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
- <?php endif;?>
-
- <?php if ($sla_op_v->option_correct): $answers[] = $this->numToLetter($i); endif; ?>
- <?php $i++; ?>
- <?php endforeach; ?>
- </ul>
- <?php else:?>
- <?php foreach($sla_v->items->options as $sla_op_k=>$sla_op_v):?>
- <?php $answers[] = $sla_op_v->option_content; ?>
- <?php endforeach; ?>
-
- <?php endif;?>
- <?php endif;?>
-
- <?php endforeach;?>
- <?php else:?>
- <?php //$topicDetails[$topicId]['basic_type_id'] && && $topicDetails[$topicId]['type_id'] ==3 兼容多选题 ?>
- <?php if ( (in_array($new_k_type_id,array(1,2)) || (!isset($topicDetails[$topicId]['basic_type_id']) && $topicDetails[$topicId]['type_id'] ==3) || (isset($topicDetails[$topicId]['basic_type_id']) && $topicDetails[$topicId]['basic_type_id'] ==3))
- && isset($topicDetails[$topicId]['items']) && isset($topicDetails[$topicId]['items'][0]) && isset($topicDetails[$topicId]['items'][0]['options'])): ?>
- <ul class="answer clearfix">
- <?php $i = 1; ?>
- <?php foreach ($topicDetails[$topicId]['items'][0]['options'] as $option): ?>
- <?php if ($topicDetails[$topicId]['items'][0]['list_type'] == 1): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php elseif ($topicDetails[$topicId]['items'][0]['list_type'] == 2): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php else: ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php endif; ?>
- <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
- <?php $i++; ?>
- <?php endforeach; ?>
- </ul>
- <?php elseif (in_array($topicDetails[$topicId]['type_id'],array(5,6)) && isset($topicDetails[$topicId]['items']) && isset($topicDetails[$topicId]['items'][0]) && isset($topicDetails[$topicId]['items'][0]['options'])): ?>
- <?php foreach ($topicDetails[$topicId]['items'][0]['options'] as $option): ?>
- <?php $answers[] = $option['option_content']; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php endif;?>
- <!--答案解析-->
- <div class="answer-explain-detail clearfix">
- <?php if ($answers): ?>
- <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answers): ?><?php echo $answers; ?> <?php endforeach; ?></div>
- <?php endif; ?>
- <div class="fl aed-answer-explain">
- <span>【解析】</span>
- <?php echo $topicDetails[$topicId]['parse_content']; ?>
- </div>
- </div>
- <!--同学优解名师指点-->
- <?php if(isset($excellent_solution) && $excellent_solution && isset($excellent_solution[$topicId]) && $excellent_solution[$topicId] && isset($setting_arr['classmateOptimization']) && $setting_arr['classmateOptimization']):?>
- <div class="classmate-optimization clearfix">
- <div class="classmate-left">
- <div class="classmate-info">
- <span class="classmate-title">【同学优解】</span>
- <!-- <span>本题无优解</span> -->
- <span class=""><?php echo isset($excellent_solution[$topicId]['class_name'])?$excellent_solution[$topicId]['class_name']:"";?></span>
- <span class=""><?php echo isset($excellent_solution[$topicId]['student_name'])?$excellent_solution[$topicId]['student_name']:"";?></span>
- </div>
- <div>
- <img src="<?php echo isset($excellent_solution[$topicId]['answer_url'])?$excellent_solution[$topicId]['answer_url']:"";?>" alt="" />
- </div>
- </div>
- <?php if ($topicDetails[$topicId]['teacher_tips']): ?>
- <div class="classmate-right">
- <div class="guide-wrap">
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">名师指点</div>
- </div>
- <p class="font10">
- <?php echo $topicDetails[$topicId]['teacher_tips']; ?>
- </p>
- </div>
- </div>
- </div>
- <?php endif;?>
- </div>
-
- <?php else:?>
- <?php if(in_array($topicDetails[$topicId]['type_id'],array(7,17,27)) || ($is_qxk && in_array($topicDetails[$topicId]['type_id'], array(8,9)))):?>
- <div>本题无优解</div>
- <?php endif;?>
- <?php if ($topicDetails[$topicId]['teacher_tips']): ?>
- <div class="guide-wrap">
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">名师指点</div>
- </div>
- <p class="font10">
- <?php echo $topicDetails[$topicId]['teacher_tips']; ?>
- </p>
- </div>
- </div>
- <?php endif;?>
- <?php endif;?>
- <?php endif;?>
- <!--案例题-->
- <?php // if (isset($fcCallbacks) && isset($fcCallbacks[$topicId]) && isset($topicDetails[$fcCallbacks[$topicId]])): ?>
- <?php if (isset($fcCallbacks) && isset($fcCallbacks[$topicId])): ?>
- <?php $newFcCallbacks = $fcCallbacks[$topicId];?>
- <?php foreach($newFcCallbacks as $exTopicId):?>
- <?php if(isset($topicDetails[$exTopicId])):?>
- <?php $fcCallbacks[$topicId] = $exTopicId;?>
- <div class="ltc-case-con clearfix">
- <div class="lcc-case-detail">
- <div class="train">
- <img src="<?php echo $imgUrl;?>/images/Variation-training.jpg" alt="">
- </div>
- <div class="theme-detail-msg">
- <span class="org">【
- <?php
- if (isset($topicDetails[$fcCallbacks[$topicId]]['basic_type_id']) && substr($topicDetails[$fcCallbacks[$topicId]]['id'], 0, 4) == "2015") {
- echo substr($topicDetails[$fcCallbacks[$topicId]]['id'], 4);
- } else {
- echo $topicDetails[$fcCallbacks[$topicId]]['id'];
- }
- ?>
- 】</span>
- <?php echo $topicDetails[$fcCallbacks[$topicId]]['title']; ?>
- </div>
- <?php $fcAnswers = array(); ?>
- <?php if ((in_array($topicDetails[$fcCallbacks[$topicId]]['type_id'] ,array(1,2)) || (!isset($topicDetails[$fcCallbacks[$topicId]]['basic_type_id']) && $topicDetails[$fcCallbacks[$topicId]]['type_id'] ==3)
- || (isset($topicDetails[$fcCallbacks[$topicId]]['basic_type_id']) && $topicDetails[$fcCallbacks[$topicId]]['basic_type_id'] ==3)
- )
- && isset($topicDetails[$fcCallbacks[$topicId]]['items']) && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0])
- && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'])): ?>
- <ul class="answer clearfix">
- <?php $i = 1; ?>
- <?php foreach ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'] as $option): ?>
- <?php if ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['list_type'] == 1): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php elseif ($topicDetails[$topicId]['items'][0]['list_type'] == 2): ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php else: ?>
- <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
- <?php endif; ?>
- <?php if ($option['option_correct']): $fcAnswers[] = $this->numToLetter($i); endif; ?>
- <?php $i++; ?>
- <?php endforeach; ?>
- </ul>
- <?php elseif ($topicDetails[$fcCallbacks[$topicId]]['type_id'] == 5 && isset($topicDetails[$fcCallbacks[$topicId]]['items']) && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0]) && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'])): ?>
- <?php foreach ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'] as $option): ?>
- <?php $fcAnswers[] = $option['option_content']; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </div>
- </div>
- <div class="ltc-case-answer">
- <div class="ans"><span>【答案】</span><?php foreach ($fcAnswers as $fcAnswer): ?><?php echo $fcAnswer; ?> <?php endforeach; ?></div>
- <div class="ans-txt">
- <span>【解析】</span><?php echo $topicDetails[$fcCallbacks[$topicId]]['parse_content']; ?>
- </div>
- </div>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif; ?>
- </div>
- <?php endif; ?>
- <?php $idx++; ?>
- <?php endforeach; ?>
- <?php endif; ?>
- </div>
- <?php elseif ($wb_isp_version == 1):?>
- <div class="tec-lis">
- <?php $index = 0; ?>
- <?php foreach ($template_topic_arr as $template_id => $level_topic) : $index += 1; $topic_detail = $topic_details[$template_id]?>
- <div class="little-themes-con">
- <div class="them-apecial-style clearfix">
- <!--<div class="fontBold topic-order fl">第<?php // echo $topic_no_arr[$template_id];?>题</div>【<?php // echo $template_id ?>】-->
- <div class="tit-orange-bg fl">
- <span class="tts-msg">第<?php echo $topic_no_arr[$template_id];?>题</span>
- <span class="tts-msg"><?php echo isset($topic_detail['type_name'])?$topic_detail['type_name']:'';?></span>
- </div>
- <div class="tas-score-detail">
- <span class="tsd-lis-detail">ID:<i class="org">
- <?php
- if(isset($topic_detail[$template_id]['basic_type_id']) && substr($template_id,0,4) =="2015" ){
- echo substr($template_id,4);
- }else{
- echo $template_id;
- }
- ?>
- </i></span>
- <span class="tsd-lis-detail">班级得分率:<i class="org"><?php if (isset($groupTopics[$template_id]) && isset($topics[$template_id]['classRate'])): echo $topics[$template_id]['classRate'].'%'; endif; ?></i></span>
- <span class="tsd-lis-detail">年级得分率:<i class="org"><?php if (isset($gradeTopicRate[$template_id])): echo $gradeTopicRate[$template_id].'%'; endif; ?></i></span>
- <span class="tsd-lis-detail">答对:<i class="org"><?php if (isset($topics[$template_id])): echo $topics[$template_id]['numRight']; endif; ?>人</i></span>
- <span class="tsd-lis-detail">答错:<i class="org"><?php if (isset($topics[$template_id])): echo $topics[$template_id]['numWrong']; endif; ?>人</i></span>
- </div>
- </div>
- <!--答错人数-->
- <?php if(isset($topics[$template_id]['rateLess70']) && isset($topics[$template_id]['rateLess70']) && $topics[$template_id]['rateLess70']):?>
- <div class="wrong-studen-block">
-
- <div class="wrong-student">
- <div class="wrong-lable">
- <img
- class="wrong-lable-icon"
- src="<?php echo $imgUrl;?>/images/wrong_student.png"
- alt=""
- />
- <div class="fontBold wrong-lable-txt"><?php echo ($topic_detail['type'] == 1)?'答错学生:':'得分率低于70%的学生:';?></div>
- </div>
- <p class="font-bold">
- <?php echo implode('、',$topics[$template_id]['rateLess70']);?>
- </p>
- </div>
- </div>
- <?php endif;?>
-
-
- <?php if(isset($setting_arr['paper_wrong']) && $setting_arr['paper_wrong']):?>
- <div class="theme-answer-cons <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
- <div class="theme-detail-msg <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
- <?php echo $topic_detail['queBody'];?>
- </div>
- <?php if ($topic_detail['options']):?>
- <ul class="answer clearfix <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
- <?php echo $topic_detail['options'];?>
- </ul>
- <?php endif;?>
- <?php if ($topic_detail['parse_video_qrcode']):?>
- <img src="data:image/png;base64,<?php echo $topic_detail['parse_video_qrcode']; ?>" alt="" class="sweep-icon">
- <?php endif;?>
- </div>
- <!--答案解析-->
- <div class="answer-explain-detail clearfix">
- <div class="fl aed-answer-msg"><span>【答案】</span><?php echo $topic_detail['answer']; ?></div>
- <div class="fl aed-answer-explain">
- <span>【解析】</span>
- <?php echo $topic_detail['analysis'];?>
- </div>
- </div>
- <!--同学优解名师指点-->
- <?php if(isset($excellent_solution) && $excellent_solution && isset($excellent_solution[$template_id]) && $excellent_solution[$template_id]):?>
- <div class="classmate-optimization clearfix">
- <div class="classmate-left">
- <div class="classmate-info">
- <span class="classmate-title">【同学优解】</span>
- <!-- <span>本题无优解</span> -->
- <span class=""><?php echo isset($excellent_solution[$template_id]['class_name'])?$excellent_solution[$template_id]['class_name']:"";?></span>
- <span class=""><?php echo isset($excellent_solution[$template_id]['student_name'])?$excellent_solution[$template_id]['student_name']:"";?></span>
- </div>
- <div>
- <img src="<?php echo isset($excellent_solution[$template_id]['answer_url'])?$excellent_solution[$template_id]['answer_url']:"";?>" alt="" />
- </div>
- </div>
- <?php if ($topic_detail['teacher_tips']): ?>
- <div class="classmate-right">
- <div class="guide-wrap">
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">名师指点</div>
- </div>
- <p class="font10">
- <?php echo $topic_detail['teacher_tips']; ?>
- </p>
- </div>
- </div>
- </div>
- <?php endif;?>
- </div>
- <?php else:?>
- <?php if(in_array($topic_detail['type'],array(7,17,27)) || ($is_qxk && in_array($topic_detail['type'], array(8,9)))):?>
- <div>本题无优解</div>
- <?php endif;?>
- <?php if ($topic_detail['teacher_tips']): ?>
- <div class="guide-wrap">
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">名师指点</div>
- </div>
- <p class="font10">
- <?php echo $topic_detail['teacher_tips']; ?>
- </p>
- </div>
- </div>
- <?php endif;?>
- <?php endif;?>
- <?php endif;?>
- <div class="student-level-question">
- <?php foreach ($level_topic as $level => $topic_id): $level_topic_detail = $topic_details[$topic_id]; ?>
- <div class="slq-list">
- <div class="them-apecial-style clearfix">
- <div class="theme-answer-cons <?php if ($level_topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
- <?php // if($level_rule != 1):?>
- <div class="fontBold slq-topic-order fl"><?php switch ($level){case 1:echo '尖子生';break;case 2: echo '优秀生';break;case 3: echo '中等生';break;case 4:echo '学困生';break;} ?></div>
- <?php // endif;?>
- <div class="tas-score-detail no-border <?php if ($level_topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
- <span>【<?php
- if(isset($level_topic_detail['basic_type_id']) && substr($topic_id,0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
- echo substr($topic_id,4);
- }else{
- echo $topic_id;
- }
- ?>】</span>
- <span><?php echo $level_topic_detail['queBody'];?></span>
- </div>
- <?php if ($level_topic_detail['options']):?>
- <ul class="slq-answer answer clearfix">
- <?php echo $level_topic_detail['options']; ?>
- </ul>
- <?php endif; ?>
- </div>
- <!--答案解析-->
- <div class="answer-explain-detail clearfix">
- <div class="fl aed-answer-msg"><span>【答案】</span><?php echo $level_topic_detail['answer']; ?></div>
- <div class="fl aed-answer-explain">
- <span>【解析】</span>
- <?php echo $level_topic_detail['analysis'];?>
- </div>
- </div>
-
- <?php if ($level_topic_detail['parse_video_qrcode']):?>
- <img src="data:image/png;base64,<?php echo $level_topic_detail['parse_video_qrcode']; ?>" alt="" class="sweep-icon">
- <?php endif;?>
- </div>
- </div>
- <?php endforeach;?>
- </div>
- </div>
- <?php endforeach;?>
- </div>
- <?php endif; ?>
- <?php endif;?>
- <?php if(isset($gaokao_topic) && $gaokao_topic && isset($setting_arr['real_topic']) && $setting_arr['real_topic']):?>
- <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:真题速递</h2>
- <div class="guide-wrap proposal">
-
- <div class="guide">
- <div class="guide-lable">
- <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
- <div class="fontBold guide-lable-txt">讲评建议</div>
- </div>
- <p class="font10">
- 根据<?php echo $className;?>的典型薄弱考点<?php echo isset($gen_origin_methods)?$gen_origin_methods:'';?>,精准匹配最适合本班的2道高考真题,助您讲解巩固!
- </p>
- </div>
- </div>
-
- <?php foreach($gaokao_topic as $k=>$v):?>
- <div class="tec-lis">
- <div class="little-themes-con">
- <div class="ltc-case-con clearfix">
- <div class="lcc-case-detail">
- <div class="lcc-tit-msg">
- <div class="type-title">【来源:<?php echo $v['source'];?>】考点:<?php echo $v['methods'];?></div>
- </div>
- <div class="theme-detail-msg">
- <span class="org">【<?php echo $k;?>】</span>
- <?php echo $v['queBody'];?>
- </div>
- <?php if($v['type'] == 1 || $v['type'] == 2):?>
- <ul class="answer clearfix">
- <?php echo isset($v['options'])?$v['options']:'';?>
- </ul>
- <?php endif;?>
- </div>
- </div>
- <div class="ltc-case-answer">
- <div class="ans"><span>【答案】</span><?php echo $v['answer'];?></div>
- <div class="ans-txt">
- <span>【解析】</span><?php echo $v['analysis'];?>
- </div>
- </div>
- </div>
- </div>
- <?php endforeach;?>
-
- <?php endif;?>
- </div>
- <script>
- window.onload = function() {
- var optionUl = document.getElementsByClassName('answer');
- for (var i = 0; i < optionUl.length; i++) {
- arrayFunction(optionUl[i])
- }
- function arrayFunction(option) {
- // 选项结构宽度
- var optionUlWidth = option.clientWidth
- // 选项宽度数组
- var optionWidthArr = []
- // 选项高度数组
- var optionHeightArr = []
- // 每个选项
- var optionLi = option.children;
- for (var i = 0; i < optionLi.length; i++) {
- optionWidthArr.push(optionLi[i].clientWidth)
- optionHeightArr.push(optionLi[i].clientHeight)
- }
- // 最大选项宽度
- var maxOptionWidth = optionWidthArr[0]
- for (var i = 0; i < optionWidthArr.length; i++) {
- if (optionWidthArr[i] > maxOptionWidth) {
- maxOptionWidth = optionWidthArr[i]
- }
- }
- // 最大选项高度
- var maxOptionHeight = optionHeightArr[0]
- for (var i = 0; i < optionHeightArr.length; i++) {
- if (optionHeightArr[i] > maxOptionHeight) {
- maxOptionHeight = optionHeightArr[i]
- }
- }
- if (optionLi.length > 1) {
- // 如果第一个选项高度大于第二个选项高度 给第二个选项设置高度 使第二个选项高度和第一个选项高度一样
- if (optionLi[0].clientHeight > optionLi[1].clientHeight) {
- optionLi[1].style.height = optionLi[0].clientHeight + 'px'
- }
- var optionWidth = null
- if (optionUlWidth / maxOptionWidth > 4) {
- // 一行四个
- optionWidth = Math.floor(optionUlWidth / 4)
- } else if (optionUlWidth / maxOptionWidth > 2) {
- // 一行两个
- optionWidth = Math.floor(optionUlWidth / 2)
- } else {
- // 一行一个
- optionWidth = Math.floor(optionUlWidth);
- // 当一行一个排列时 取消第二个选项的高度设置
- optionLi[1].style.height = 'auto'
- }
- }
- for (var i = 0; i < optionLi.length; i++) {
- optionLi[i].style.width = optionWidth + 'px'
- // 给每个选项设置一样的高度
- optionLi[i].style.height = maxOptionHeight + 'px'
- }
- }
- }
- </script>
- </body>
- </html>
|