123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- <meta http-equiv="refresh" content="30"> -->
- <title>高中数学教学宝</title>
- <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/product_exam/base.css" />
- <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/product_exam/reset.css" />
- <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/product_exam/MethodTeaching.css" />
- <?php echo $topicCss;?>
- </head>
- <body>
- <div class="pdf">
- <!-- 封面 -->
- <div class="cover">
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/cover.png" alt="" />
- <div class="info">
- <div class="class"><?php echo $className;?></div>
- <div class="exam"><?php echo $examInfo['exam_name'];?></div>
- </div>
- </div>
- <div style="page-break-after: always;"></div>
- <?php
- $ch = array('零','一','二','三','四','五','六','七','八','九');
- $order=1;
- ?>
- <div class="heading tac">
- <p><?php echo $examInfo['exam_name'];?></p>
- </div>
- <div class="first-part">
- <div class="title tac">
- <p>第一部分:学情分析</p>
- </div>
- <div class="topic">
- <div class="topic-one-title">
- <span><?php echo $ch[$order];++$order;?>、班级情况分析</span>
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/class-situation.png" alt="">
- </div>
- <!-- 班级情况分析 -->
- <div class="class-analysis">
- <div class="class-info">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td>
- <div class="info-block">
- <div>
- <p>参加考试人数:<span class="bold"><?php echo $classAnalyseArr['exam_stu_num'];?></span></p>
- <p><span class="bold"><?php echo $classAnalyseArr['miss_stu_num'];?></span>人缺考
- </p>
- </div>
- </div>
- </td>
- <td>
- <div class="info-block">
- <div>
- <p>平均得分率:<span class="bold"><?php echo $classAnalyseArr['avg_score_rate'];?>%</span></p>
- <?php if(!empty($classAnalyseArr['pre_avg_rate_diff'])):?>
- <p>较上次考试<span class="bold"><?php echo $classAnalyseArr['pre_avg_rate_diff']>=0?'提升':'下降';?><?php echo abs($classAnalyseArr['pre_avg_rate_diff']);?>%</span></p>
- <?php else:?>
- <p> </p>
- <?php endif;?>
- <!-- <p> </p> -->
- </div>
- </div>
- </td>
- <td>
- <div class="info-block">
- <div>
- <p>平均分<span class="bold"><?php echo $classAnalyseArr['avg_scoring'];?></span></p>
- <p>最高分<span class="bold"><?php echo $classAnalyseArr['max_scoring'];?></span>,最低分<span class="bold"><?php echo $classAnalyseArr['min_scoring'];?></span>, 满分<span class="bold"><?php echo $classAnalyseArr['full_scoring'];?></span></p>
- </div>
- </div>
- </td>
- <td>
- <div class="info-block">
- <div>
- <p>及格率<span class="bold"><?php echo $classAnalyseArr['pass_rate'];?>%</span></p>
- <p>其中得分率<span class="bold">90%</span>以上的有<span class="bold"><?php echo $classAnalyseArr['pass_rate_gt_90'];?></span>人</p>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="class-table">
- <table class="pro">
- <tbody>
- <tr>
- <td colspan="3" class="table-title">大幅进步</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>排名</td>
- <td>排名提升</td>
- </tr>
- <?php foreach ($largeOrderArr['increase_stu'] as $key => $stuId):
- $stu_order = isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:'';
- ?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
- <td><?php echo $stu_order; ?></td>
- <td>
- <?php
- if(isset($largeOrderArr['stu_diff_order'][$stuId]) && $largeOrderArr['stu_diff_order'][$stuId] > 0){
- echo abs($largeOrderArr['stu_diff_order'][$stuId]);
- }else{
- echo $stu_order?'-':' ';
- }
- ?>
- </td>
- </tr>
- <?php endforeach; ?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['increase_stu']));$i++):?>
- <tr><td> </td><td> </td><td> </td></tr>
- <?php endfor;?>
- </tbody>
- </table>
- <table class="back">
- <tbody>
- <tr>
- <td colspan="3" class="table-title">大幅退步</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>排名</td>
- <td>排名下降</td>
- </tr>
- <?php foreach ($largeOrderArr['reduce_stu'] as $key => $stuId): ?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
- <td><?php echo isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:0; ?></td>
- <td>
- <?php
- if(isset($largeOrderArr['stu_diff_order'][$stuId]) && abs($largeOrderArr['stu_diff_order'][$stuId]) > 0){
- echo abs($largeOrderArr['stu_diff_order'][$stuId]);
- }else{
- echo '-';
- }
- ?>
- </td>
- </tr>
- <?php endforeach; ?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['reduce_stu']));$i++):?>
- <tr><td> </td><td> </td><td> </td></tr>
- <?php endfor;?>
- </tbody>
- </table>
- <table class="first">
- <tbody>
- <tr>
- <td colspan="2" class="table-title">班级前五名</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>班级排名</td>
- </tr>
- <?php if(isset($largeOrderArr['font_five'])):?>
- <?php foreach ($largeOrderArr['font_five'] as $stuId =>$rank):?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
- <td><?php echo $rank;?></td>
- </tr>
- <?php endforeach;?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['font_five']));$i++):?>
- <tr><td> </td><td> </td></tr>
- <?php endfor;?>
- <?php endif;?>
- </tbody>
- </table>
- <table class="last">
- <tbody>
- <tr>
- <td colspan="2" class="table-title">班级后五名</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>班级排名</td>
- </tr>
- <?php if(isset($largeOrderArr['back_five'])):?>
- <?php foreach ($largeOrderArr['back_five'] as $stuId =>$rank):?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
- <td><?php echo $rank;?></td>
- </tr>
- <?php endforeach;?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['back_five']));$i++):?>
- <tr><td> </td><td> </td></tr>
- <?php endfor;?>
- <?php endif;?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="topic">
- <div class="topic-one-title">
- <span><?php echo $ch[$order];++$order;?>、考试情况分析</span>
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/class-situation.png" alt="">
- </div>
- <!-- 考试情况分析 -->
- <?php if($paperAnalyseArr):?>
- <div class="exam-analysis">
- <div class="exam-table">
- <?php $columnNum = count($paperAnalyseArr)>= 8 ? 8 :count($paperAnalyseArr);?>
- <?php foreach (array_chunk($paperAnalyseArr,$columnNum) as $_paperAnalyseArr):?>
- <table>
- <tbody>
- <tr>
- <td style="width: 25mm">题号</td>
- <?php foreach ($_paperAnalyseArr as $analyseArr):?>
- <td><?php echo $analyseArr['no'];?></td>
- <?php endforeach;?>
- <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
- <td> </td>
- <?php endfor;?>
- </tr>
- <tr>
- <td>答错人数</td>
- <?php foreach ($_paperAnalyseArr as $analyseArr):?>
- <td><?php echo $analyseArr['wrong_num'];?></td>
- <?php endforeach;?>
- <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
- <td> </td>
- <?php endfor;?>
- </tr>
- <tr>
- <td>错误率</td>
- <?php foreach ($_paperAnalyseArr as $analyseArr):?>
- <td><?php echo $analyseArr['wrong_rate'];?>%</td>
- <?php endforeach;?>
- <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
- <td> </td>
- <?php endfor;?>
- </tr>
- </tbody>
- </table>
- <?php endforeach;?>
- </div>
- </div>
- <?php endif;?>
- </div>
- <?php if(isset($answer_score_details) && $answer_score_details):?>
- <div class="topic">
- <div class="topic-one-title">
- <span><?php echo $ch[$order];++$order;?>、客观题得分</span>
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/class-situation.png" alt="">
- </div>
- <!-- 考试情况分析 -->
- <div class="exam-analysis">
- <div class="exam-table">
- <?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>
- <tbody>
- <tr>
- <td>题号(答案)</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>'.$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>选项</td><?php echo $option_html;?>
- </tr>
- <tr>
- <td>选择人数</td><?php echo $option_count_html;?>
- </tr>
- </tbody>
- </table>
- <?php endfor;?>
- </div>
- </div>
- </div>
- <?php endif;?>
- <div class="topic">
- <div class="topic-one-title">
- <span><?php echo $ch[$order];++$order;?>、方法掌握情况</span>
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/class-situation.png" alt="">
- </div>
- <!-- 考试情况分析 -->
- <div class="exam-analysis">
- <div class="exam-table">
- <table>
- <tbody class="method">
- <tr>
- <td>方法名称</td>
- <td>方法掌握水平</td>
- <td>班级得分率</td>
- <td>对应题号(答错人数)</td>
- </tr>
- <?php foreach ($methodAnalyseArr as $item):?>
- <tr>
- <td><?php echo $item['name'];?></td>
- <td>
- <span style="color: #f26100;">
- <?php for ($i = 0; $i < $item['star']; $i++): ?>
- ★
- <?php endfor;?>
- </span><span>
- <?php for ($i = 0;$i< (5-$item['star']); $i++):?>
- ☆
- <?php endfor;?>
- </span>
- </td>
- <td><?php echo $item['rate'];?>%</td>
- <td>
- <?php $methodTopicStr = array();?>
- <?php foreach ($item['topicRs'] as $rs):?>
- <?php array_push($methodTopicStr, sprintf('<i class="yu">%s</i>(%s人)',$rs['topic_no'],$rs['wrong_stu_num']));?>
- <?php endforeach;?>
- <?php echo implode('、',$methodTopicStr);?>
- </tr>
- <?php endforeach;?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="second-part">
- <div class="title tac">
- <p>第二部分:共性问题精讲</p>
- </div>
- <div class="wrong-student-lable">
- <img class="wrong-lable-icon" src="<?php echo $zsyas2Url;?>/images/product_exam/commentary-suggestion.png" alt="">
- <div class="wrong-lable-txt">讲评建议</div>
- </div>
- <div class="wrong-studen-block">
- <p class="★">本次考试<?php echo $className; ?>在
- <?php $mistakeNo = array(); ?>
- <?php foreach ($commonTopics as $item): ?>
- <?php array_push($mistakeNo, sprintf('第<b style="color: #f26100">%s</b>题', $item['topic_no'])); ?>
- <?php endforeach; ?>
- <?php echo implode('、', $mistakeNo); ?>
- 失分最多,涉及到的方法是:<?php $methodStr = array(); ?>
- <?php foreach ($commonTopics as $topicId => $item): ?>
- <?php if (!empty($methodOfTopic[$topicId])): ?>
- <?php foreach ($methodOfTopic[$topicId] as $methodId): ?>
- <?php if (isset($methodAnalyseArr[$methodId]['name'])) {
- array_push($methodStr, $methodAnalyseArr[$methodId]['name']);
- } ?>
- <?php endforeach; ?>
- <?php endif; ?>
- <?php endforeach; ?>
- <?php echo implode('、', array_unique($methodStr)); ?>
- </p>
- </div>
- <?php if($commonTopics):?>
- <?php foreach ($commonTopics as $topicId=>$item):?>
- <?php if(isset($topicInfoArr[$topicId])):?>
- <?php $commonTopicDetail = $topicInfoArr[$topicId];?>
- <div class="question-type">
- <span class="multiple-choice">
- <b>第<?php echo $item['topic_no'];?>题 <?php //echo $commonTopicDetail['type_name'];?> </b>
- </span>
- <span class="round"></span>
- <div class="id">
- <span>ID: <b>
- <?php
- if(isset($commonTopicDetail["basic_type_id"]) && substr($commonTopicDetail["topic_id"],0,4) =="2015"){
- echo substr($commonTopicDetail["topic_id"],4) ;
- }else{
- echo $commonTopicDetail['topic_id'];
- }
- ?></b>
- </span>
- <span>班级得分率: <b><?php echo $paperCommentsArr[$topicId]['class_scoring_rate'];?>%</b> </span>
- <span>答错: <b><?php echo $paperCommentsArr[$topicId]['wrong_stu_num'];?>人</b> </span>
- </div>
- </div>
- <div class="wrong-student-lable">
- <img class="wrong-lable-icon" src="<?php echo $zsyas2Url;?>/images/product_exam/student.png" alt="">
- <div class="wrong-lable-txt color">答错学生</div>
- </div>
- <div class="wrong-studen-block color">
- <p class="wrong-studen-name">
- <?php foreach ($paperCommentsArr[$topicId]['wrong_stu_arr'] as $key => $stuId):?>
- <?php echo $key > 0?'、':'';?><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?>
- <?php endforeach;?>
- </p>
- </div>
- <div class="question-text">
- <p><?php echo $commonTopicDetail['topic_title'];?></p>
- </div>
- <?php if(($commonTopicDetail['topic_option'])):?>
- <div class="option-block">
- <?php echo $commonTopicDetail['topic_option'];?>
- </div>
- <?php endif;?>
- <div class="answer-analysis">
- <div class="answer-text">
- <div class="answer-txt">答案:</div>
- <div class="answer-result"><?php echo $commonTopicDetail['topic_answer'];?></div>
- </div>
- <div class="analysis">
- <span class="analysis-title">【解析】</span>
- <div class="analysis-text">
- <?php echo $commonTopicDetail['topic_parse'];?>
- </div>
- </div>
- </div>
- <?php if(isset($excellent_solution) && $excellent_solution && isset($excellent_solution[$topicId]) && $excellent_solution[$topicId]):?>
- <div class="student-excellent">
- <div class="tit">
- <span>【同学优解】</span>
- <span></span>
- <span></span>
- <span></span>
- <span>
- <?php echo isset($excellent_solution[$topicId]['class_name'])?$excellent_solution[$topicId]['class_name']:"";?>
- <?php echo isset($excellent_solution[$topicId]['student_name'])?$excellent_solution[$topicId]['student_name']:"";?>
- </span>
- </div>
- <div class="sm">
- <img src="<?php echo isset($excellent_solution[$topicId]['answer_url'])?$excellent_solution[$topicId]['answer_url']:"";?>" alt="" />
- </div>
- </div>
- <?php endif;?>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- <div class="third-part">
- <div class="title tac">
- <p>第三部分:方法训练精讲</p>
- </div>
- <?php $classicTopics = array();?>
- <?php foreach ($methodPractice as $key=>$method):?>
- <div class="solution">
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/Solution.png" alt="">
- <span>解决方法<?php echo numToUpper($key+1);?>:<?php echo $method['name'];?></span>
- </div>
- <div class="wrong-student-lable">
- <img class="wrong-lable-icon" src="<?php echo $zsyas2Url;?>/images/product_exam/commentary-suggestion.png" alt="">
- <div class="wrong-lable-txt">方法释义</div>
- </div>
- <div class="wrong-studen-block">
- <p class="wrong-studen-name">
- <?php echo $method['content'];?>
- </p>
- </div>
- <div class="question-type">
- <span class="multiple-choice">
- <b>例题<?php echo ($key+1);?></b>
- </span>
- <span class="round"></span>
- </div>
- <div class="question-text">
- <p>
- <?php echo $method['classic_content'];?>
- </p>
- </div>
- <?php foreach ($method['classic_topic_ids'] as $topicInfo):?>
- <?php
- $topicId = $topicInfo['topic_id'];
- if(in_array($topicId,$classicTopics)){
- continue;
- }
- array_push($classicTopics, $topicId);
- ?>
- <div class="solution">
- <img src="<?php echo $zsyas2Url;?>/images/product_exam/method.png" alt="">
- <span>【方法训练】【<?php
- if (isset($topicInfo["basic_type_id"]) && substr($topicInfo["topic_id"], 0, 4) == "2015") {
- echo substr($topicInfo["topic_id"], 4);
- } else {
- echo number_format($topicId, 0, '', '');
- }
- ?>
- 】</span>
- </div>
- <div class="question-text">
- <p><?php echo $topicInfo['topic_title'];?></p>
- </div>
- <?php if(($topicInfo['topic_option'])):?>
- <div class="option-block">
- <?php echo $topicInfo['topic_option'];?>
- </div>
- <?php endif;?>
- <div class="answer-analysis">
- <div class="answer-text">
- <div class="answer-txt">答案:</div>
- <div class="answer-result"><?php echo $topicInfo['topic_answer'];?></div>
- </div>
- <div class="analysis">
- <span class="analysis-title">【解析】</span>
- <div class="analysis-text">
- <?php echo $topicInfo['topic_parse'];?>
- </div>
- </div>
- </div>
- <?php break;?>
- <?php endforeach;?>
- <?php endforeach;?>
- </div>
- </div>
- </body>
- </html>
|