123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>物理教学宝</title>
- <link rel="stylesheet" type="text/css" href="<?php echo $zsyas2Url;?>/css/teaching/physics/reset.css">
- <link rel="stylesheet" type="text/css" href="<?php echo $zsyas2Url;?>/css/teaching/physics/base.css">
- <link rel="stylesheet" type="text/css" href="<?php echo $zsyas2Url;?>/css/teaching/physics/PhysicsTeaching.css">
- <!--试题样式-->
- <link rel="stylesheet" type="text/css" href="<?php echo $zsyas2Url;?>/css/teaching/physics/topic.css">
- </head>
- <body>
- <div class="pdf-paper">
- <div class="paper-top">
- <div class="paper-title">
- <?php echo $className;?>《<?php echo $examInfo['exam_name'];?>》教学宝
- </div>
- </div>
- <div class="paper-content">
- <!-- 班级情况分析 -->
- <?php if($classAnalyseArr):?>
- <div class="paper-part class-analysis">
- <h3 class="part-title">一、班级情况分析</h3>
- <div class="class-info">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td>
- <div class="info-block">
- <p>参加考试人数<span class="bold"><?php echo $classAnalyseArr['exam_stu_num'];?></span>人</p>
- <p><?php echo $classAnalyseArr['miss_stu_num'];?>人缺考</p>
- </div>
- </td>
- <td>
- <div class="info-block">
- <p>平均得分率<span class="bold"><?php echo $classAnalyseArr['avg_score_rate'];?>%</span></p>
- <?php if($classAnalyseArr['pre_avg_rate_diff'] != 0):?>
- <p>较上次考试<?php echo $classAnalyseArr['pre_avg_rate_diff']>0?'+':'-';?><?php echo abs($classAnalyseArr['pre_avg_rate_diff']);?>%</p>
- <?php endif;?>
- </div>
- </td>
- <td>
- <div class="info-block">
- <p>平均分<span class="bold"><?php echo $classAnalyseArr['avg_scoring'];?></span></p>
- <p>最高分<?php echo $classAnalyseArr['max_scoring'];?>, 最低分<?php echo $classAnalyseArr['min_scoring'];?>, 满分<?php echo $classAnalyseArr['full_scoring'];?></p>
- </div>
- </td>
- <td>
- <div class="info-block">
- <p>及格率<span class="bold"><?php echo $classAnalyseArr['pass_rate'];?>%</span></p>
- <p>其中得分率90%以上的有<?php echo $classAnalyseArr['pass_rate_gt_90'];?>人</p>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="class-table">
- <table>
- <tbody>
- <tr>
- <td colspan="3" class="table-title">大幅进步</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>班级排名</td>
- <td>排名提升</td>
- </tr>
- <?php if (isset($largeOrderArr['increase_stu'])): ?>
- <?php foreach ($largeOrderArr['increase_stu'] as $key => $stuId):
- $stu_order = isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:'';
- $stu_score = isset($stuScore[$stuId])?$stuScore[$stuId]:'';
- ?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
- <td><?php echo $stu_order ? $stu_order.'/'.$stu_score.'分' : ''; ?></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 endif; ?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['increase_stu']));$i++):?>
- <tr><td> </td><td> </td><td> </td></tr>
- <?php endfor;?>
- </tbody>
- </table>
- <table>
- <tbody>
- <tr>
- <td colspan="3" class="table-title">大幅退步</td>
- </tr>
- <tr>
- <td>姓名</td>
- <td>班级排名</td>
- <td>排名下降</td>
- </tr>
- <?php if (isset($largeOrderArr['reduce_stu'])): ?>
- <?php foreach ($largeOrderArr['reduce_stu'] as $key => $stuId): ?>
- <?php $stu_score = isset($stuScore[$stuId])?$stuScore[$stuId]:'';?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
- <td><?php echo isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:0; ?>/<?php echo $stu_score;?>分</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 endif; ?>
- <?php for($i = 0;$i < (5-count($largeOrderArr['reduce_stu']));$i++):?>
- <tr><td> </td><td> </td><td> </td></tr>
- <?php endfor;?>
- </tbody>
- </table>
- <table>
- <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):?>
- <?php $stu_score = isset($stuScore[$stuId])?$stuScore[$stuId]:'';?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
- <td><?php echo $rank;?>/<?php echo $stu_score;?>分</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>
- <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):?>
- <?php $stu_score = isset($stuScore[$stuId])?$stuScore[$stuId]:'';?>
- <tr>
- <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
- <td><?php echo $rank;?>/<?php echo $stu_score;?>分</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>
- <?php endif;?>
- <!-- 试卷情况分析 -->
- <?php if($paperAnalyseArr):?>
- <div class="paper-part exam-analysis">
- <h3 class="part-title">二、试卷情况分析</h3>
- <div class="exam-table">
- <?php $columnNum = 8;?>
- <?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;?>
- <!-- 知识点掌握情况 -->
- <?php if($kpsAnalyseArr):?>
- <div class="paper-part knowledge-points">
- <h3 class="part-title">三、知识点掌握情况</h3>
- <div class="knowledge-table">
- <table>
- <tbody>
- <tr>
- <td>知识点名称</td>
- <td style="width: 22mm;">知识点掌握水平</td>
- <td style="width: 16mm;">班级得分率</td>
- <td style="width: 13mm;">答错人数</td>
- <td style="width: 26mm;">对应题号</td>
- </tr>
- <?php foreach ($kpsAnalyseArr as $kpsAnalyse):?>
- <tr>
- <td><?php echo $kpsAnalyse['kp_name'];?></td>
- <td class="stars">
- <?php foreach (range(1,5,1) as $v):?>
- <?php echo $v <= $kpsAnalyse['kp_star']?'★':'☆';?>
- <?php endforeach;?>
- </td>
- <td><?php echo $kpsAnalyse['class_scoring_rate'];?>%</td>
- <td><?php echo $kpsAnalyse['wrong_stu_num'];?></td>
- <td><?php echo implode(',',$kpsAnalyse['kp_topic_no']);?></td>
- </tr>
- <?php endforeach;?>
- </tbody>
- </table>
- </div>
- </div>
- <?php endif;?>
- <!-- 四、试卷讲评 -->
- <?php if($paperCommentsArr):?>
- <div class="paper-part exam-comments">
- <h3 class="part-title">四、试卷讲评</h3>
- <?php if(!$isPushSameTrain):?>
- <?php $commonNo = array();
- foreach ($commonTopics as $commonTopic){
- array_push($commonNo, $commonTopic['topic_no']);
- }
- ;?>
- <div class="comments-tips">标题有★号的表示班级共性问题,本班级共性题目序号为<?php echo implode('、',$commonNo);?></div>
- <?php endif;?>
- <?php foreach ($paperCommentsArr as $paperConment):?>
- <?php
- $topicId = $paperConment['topic_id'];
- $topicInfo = isset($topicInfoArr[$topicId])?$topicInfoArr[$topicId]:array();
- if(!$topicInfo) continue;
- ?>
- <div class="topic">
- <div class="topic-top">
- <div class="topic-number">
- <div class="topic-number-txt">第<?php echo $paperConment['topic_no'];?>题
- <?php if(!$isPushSameTrain):?>
- <?php if(isset($commonTopics[$topicId])):?>
- ★
- <?php endif;?>
- <?php endif;?>
- </div>
- </div>
- <div class="topic-info">
- <span>
- 【<?php
- if(isset($topicInfo['basic_type_id']) && substr($topicId,0,4) =="2015"){
- echo substr($topicId,4);
- }else{
- echo $topicId;
- }
- ?>】
- </span>
- <span>班级得分率:<i><?php echo $paperConment['class_scoring_rate'];?>%</i></span>
- <span>年级得分率:<i><?php echo $paperConment['grade_scoring_rate'];?>%</i></span>
- <span>答对:<i><?php echo $paperConment['right_stu_num'];?>人</i></span>
- <span>答错:<i><?php echo $paperConment['wrong_stu_num'];?>人</i></span>
- </div>
- </div>
- <?php if($paperConment['wrong_stu_arr']):?>
- <div class="wrong-student">
- <span class="student-lable">答错学生:</span>
- <p class="student-list">
- <?php foreach ($paperConment['wrong_stu_arr'] as $key => $stuId):?>
- <?php echo $key > 0?'、':'';?><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?>
- <?php endforeach;?>
- </p>
- </div>
- <?php endif;?>
- <div class="question-content">
- <div class="question-block">
- <div class="question">
- <?php echo $topicInfo['topic_title'];?>
- </div>
- <!-- <div class="question-picture">-->
- <!-- <img src="" />-->
- <!-- </div>-->
- <!-- 根据题库选项排列方式;横向排列用 x-4 类名,纵向排列用 y-4 类名,上下排列用 xy-2 类名 -->
- <?php if(isset($topicInfo['topic_option']) && $topicInfo['topic_option']):?>
- <?php echo $topicInfo['topic_option'];?>
- <?php endif;?>
- </div>
- <div class="analysis-block">
- <div class="an-item">
- <div class="tri">
- <i class="tri-icon"></i>
- <span>答案:</span>
- </div>
- <div class="answer-txt"><?php echo $topicInfo['topic_answer']?$topicInfo['topic_answer']:'';?></div>
- </div>
- <div class="an-item">
- <div class="tri">
- <i class="tri-icon"></i>
- <span>解析:</span>
- </div>
- <div class="analysis-txt"><?php echo $topicInfo['topic_parse'];?></div>
- </div>
- <div class="an-item">
- <div class="tri">
- <i class="tri-icon"></i>
- <span>案例题:</span>
- </div>
- <span>
- 【<?php $pushTopicId= isset($commonTopics[$topicId]) ? $commonTopics[$topicId]['isp_topic_id'] :$paperConment['push_topic_id'];
- if(isset($topicInfoArr[$pushTopicId]) && isset($topicInfoArr[$pushTopicId]['basic_type_id']) && substr($pushTopicId,0,4) =="2015"){
- echo substr($pushTopicId,4);
- }else{
- echo $pushTopicId;
- }
- ?>】
- </span>
- </div>
- </div>
- <?php if(isset($commonTopics[$topicId]) || $paperConment['push_topic_id']):?>
- <?php
- $pushTopicId = isset($commonTopics[$topicId]) ? $commonTopics[$topicId]['isp_topic_id'] :$paperConment['push_topic_id'];
- $pushTopicInfo = isset($topicInfoArr[$pushTopicId])?$topicInfoArr[$pushTopicId]:array();
- if(!$pushTopicInfo) continue;
- ?>
- <div class="question-block case-questions">
- <div class="question">
- <?php echo $pushTopicInfo['topic_title'];?>
- </div>
- <!-- <div class="question-picture">-->
- <!-- <img src="" />-->
- <!-- </div>-->
- <!-- 根据题库选项排列方式;横向排列用 x-4 类名,纵向排列用 y-4 类名,上下排列用 xy-2 类名 -->
- <?php if(isset($pushTopicInfo['topic_option']) && $pushTopicInfo['topic_option']):?>
- <?php echo $pushTopicInfo['topic_option'];?>
- <?php endif;?>
- </div>
- <div class="case-analysis">
- <div class="answer-analysis">
- <div class="answer">
- <span>【答案】</span>
- <div class="answer-txt"><?php echo $pushTopicInfo['topic_answer']?$pushTopicInfo['topic_answer']:'';?></div>
- </div>
- <div class="analysis">
- <span>【解析】</span>
- <div class="analysis-txt">
- <?php echo $pushTopicInfo['topic_parse'];?>
- <!-- 如图所示的装置中,A、B两物块的质量分别为4kg、1kg,不计弹簧和细绳质量以及一切摩擦,重力加速度g=10m/s,先固定物块A使系统处于静止状态,释放A的瞬间-->
- <!-- <p class="analysis-num">-->
- <!-- (1)-->
- <!-- 如图所示的装置中,A、B两物块的质量分别为4kg、1kg,不计弹簧和细绳质量以及一切摩擦,重力加速度-->
- <!-- </p>-->
- <!-- <p class="analysis-num">-->
- <!-- (2)-->
- <!-- 如图所示的装置中,A、B两物块的质量分别为4kg、1kg,不计弹簧和细绳质量以及一切摩擦,重力加速度-->
- <!-- </p>-->
- </div>
- </div>
- </div>
- </div>
- <?php endif;?>
- </div>
- </div>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- </div>
- </body>
- </html>
|