teach.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>初中数学教学宝</title>
  8. <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/junior/teach/base.css" />
  9. <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/junior/teach/reset.css" />
  10. <link rel="stylesheet" href="<?php echo $zsyas2Url;?>/css/junior/teach/MathTeaching.css" />
  11. <style>
  12. .title-txt {
  13. background: url(<?php echo $zsyas2Url;?>/images/junior/teach/part_title_bg.png) no-repeat;
  14. }
  15. .diagnosis-list li {
  16. background: url(<?php echo $zsyas2Url;?>/images/junior/teach/list-icon.png) no-repeat;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div class="pdf">
  22. <div class="heade-info">
  23. <h1 class="pdf-title"><?php echo $examInfo['exam_name'];?></h1>
  24. </div>
  25. <div class="content">
  26. <div class="part">
  27. <div class="part-title">
  28. <div class="title-txt">第一部分:学情分析</div>
  29. </div>
  30. <div class="part-content">
  31. <div class="topic">
  32. <div class="topic-one-title">
  33. <span>一、班级学情分析</span>
  34. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-one-title.png" alt="">
  35. </div>
  36. <!-- 班级情况分析 -->
  37. <div class="class-analysis">
  38. <div class="class-info">
  39. <table cellspacing="0" cellpadding="0">
  40. <tbody>
  41. <tr>
  42. <td>
  43. <div class="info-block">
  44. <div>
  45. <p>参加考试人数</p>
  46. <p><span class="bold"><?php echo $classAnalyseArr['exam_stu_num'];?></span>人<span class="bold"><?php echo $classAnalyseArr['miss_stu_num'];?></span>人缺考</p>
  47. </div>
  48. </div>
  49. </td>
  50. <td>
  51. <div class="info-block">
  52. <div>
  53. <p>平均得分率<span class="bold"><?php echo $classAnalyseArr['avg_score_rate'];?>%</span></p>
  54. <?php if($classAnalyseArr['pre_avg_rate_diff'] != 0):?>
  55. <p>较上次考试<?php echo $classAnalyseArr['pre_avg_rate_diff']>0?'+':'-';?><span class="bold"><?php echo abs($classAnalyseArr['pre_avg_rate_diff']);?>%</span></p>
  56. <?php else:?>
  57. <p>&nbsp;</p>
  58. <?php endif;?>
  59. </div>
  60. </div>
  61. </td>
  62. <td>
  63. <div class="info-block">
  64. <div>
  65. <p>平均分<span class="bold"><?php echo $classAnalyseArr['avg_scoring'];?></span>最高分<span class="bold"><?php echo $classAnalyseArr['max_scoring'];?></span>,</p>
  66. <p>最低分<span class="bold"><?php echo $classAnalyseArr['min_scoring'];?></span>, 满分<span class="bold"><?php echo $classAnalyseArr['full_scoring'];?></span></p>
  67. </div>
  68. </div>
  69. </td>
  70. <td>
  71. <div class="info-block">
  72. <div>
  73. <p>及格率<span class="bold"><?php echo $classAnalyseArr['pass_rate'];?>%</span></p>
  74. <p>其中得分率<span class="bold">90%</span>以上的有<span class="bold"><?php echo $classAnalyseArr['pass_rate_gt_90'];?></span>人</p>
  75. </div>
  76. </div>
  77. </td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </div>
  82. <div class="class-table">
  83. <table class="pro">
  84. <tbody>
  85. <tr>
  86. <td colspan="3" class="table-title">大幅进步</td>
  87. </tr>
  88. <tr>
  89. <td>姓名</td>
  90. <td>班级排名</td>
  91. <td>排名提升</td>
  92. </tr>
  93. <?php if (isset($largeOrderArr['increase_stu'])): ?>
  94. <?php foreach ($largeOrderArr['increase_stu'] as $key => $stuId):
  95. $stu_order = isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:'';
  96. ?>
  97. <tr>
  98. <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
  99. <td><?php echo $stu_order; ?></td>
  100. <td>
  101. <?php
  102. if(isset($largeOrderArr['stu_diff_order'][$stuId]) && $largeOrderArr['stu_diff_order'][$stuId] > 0){
  103. echo abs($largeOrderArr['stu_diff_order'][$stuId]);
  104. }else{
  105. echo $stu_order?'-':'&nbsp;';
  106. }
  107. ?>
  108. </td>
  109. </tr>
  110. <?php endforeach; ?>
  111. <?php endif; ?>
  112. <?php for($i = 0;$i < (5-count($largeOrderArr['increase_stu']));$i++):?>
  113. <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
  114. <?php endfor;?>
  115. </tbody>
  116. </table>
  117. <table class="back">
  118. <tbody>
  119. <tr>
  120. <td colspan="3" class="table-title">大幅退步</td>
  121. </tr>
  122. <tr>
  123. <td>姓名</td>
  124. <td>班级排名</td>
  125. <td>排名下降</td>
  126. </tr>
  127. <?php if (isset($largeOrderArr['reduce_stu'])): ?>
  128. <?php foreach ($largeOrderArr['reduce_stu'] as $key => $stuId): ?>
  129. <tr>
  130. <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:''; ?></td>
  131. <td><?php echo isset($largeOrderArr['stu_order'][$stuId])?$largeOrderArr['stu_order'][$stuId]:0; ?></td>
  132. <td>
  133. <?php
  134. if(isset($largeOrderArr['stu_diff_order'][$stuId]) && abs($largeOrderArr['stu_diff_order'][$stuId]) > 0){
  135. echo abs($largeOrderArr['stu_diff_order'][$stuId]);
  136. }else{
  137. echo '-';
  138. }
  139. ?>
  140. </td>
  141. </tr>
  142. <?php endforeach; ?>
  143. <?php endif; ?>
  144. <?php for($i = 0;$i < (5-count($largeOrderArr['reduce_stu']));$i++):?>
  145. <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
  146. <?php endfor;?>
  147. </tbody>
  148. </table>
  149. <table class="first">
  150. <tbody>
  151. <tr>
  152. <td colspan="2" class="table-title">班级前五名</td>
  153. </tr>
  154. <tr>
  155. <td>姓名</td>
  156. <td>班级排名</td>
  157. </tr>
  158. <?php if(isset($largeOrderArr['font_five'])):?>
  159. <?php foreach ($largeOrderArr['font_five'] as $stuId =>$rank):?>
  160. <tr>
  161. <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
  162. <td><?php echo $rank;?></td>
  163. </tr>
  164. <?php endforeach;?>
  165. <?php for($i = 0;$i < (5-count($largeOrderArr['font_five']));$i++):?>
  166. <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
  167. <?php endfor;?>
  168. <?php endif;?>
  169. </tbody>
  170. </table>
  171. <table class="last">
  172. <tbody>
  173. <tr>
  174. <td colspan="2" class="table-title">班级后五名</td>
  175. </tr>
  176. <tr>
  177. <td>姓名</td>
  178. <td>班级排名</td>
  179. </tr>
  180. <?php if(isset($largeOrderArr['back_five'])):?>
  181. <?php foreach ($largeOrderArr['back_five'] as $stuId =>$rank):?>
  182. <tr>
  183. <td><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?></td>
  184. <td><?php echo $rank;?></td>
  185. </tr>
  186. <?php endforeach;?>
  187. <?php for($i = 0;$i < (5-count($largeOrderArr['back_five']));$i++):?>
  188. <tr><td>&nbsp;</td><td>&nbsp;</td></tr>
  189. <?php endfor;?>
  190. <?php endif;?>
  191. </tbody>
  192. </table>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="topic">
  197. <div class="topic-one-title">
  198. <span>二、考试学情分析</span>
  199. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-one-title.png" alt="">
  200. </div>
  201. <!-- 考试情况分析 -->
  202. <?php if($paperAnalyseArr):?>
  203. <div class="exam-analysis">
  204. <div class="exam-table">
  205. <?php $columnNum = count($paperAnalyseArr)>= 8 ? 8 :count($paperAnalyseArr);?>
  206. <?php foreach (array_chunk($paperAnalyseArr,$columnNum) as $_paperAnalyseArr):?>
  207. <table>
  208. <tbody>
  209. <tr>
  210. <td style="width: 25mm">题号</td>
  211. <?php foreach ($_paperAnalyseArr as $analyseArr):?>
  212. <td><?php echo $analyseArr['no'];?></td>
  213. <?php endforeach;?>
  214. <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
  215. <td>&nbsp;</td>
  216. <?php endfor;?>
  217. </tr>
  218. <tr>
  219. <td>答错人数</td>
  220. <?php foreach ($_paperAnalyseArr as $analyseArr):?>
  221. <td><?php echo $analyseArr['wrong_num'];?></td>
  222. <?php endforeach;?>
  223. <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
  224. <td>&nbsp;</td>
  225. <?php endfor;?>
  226. </tr>
  227. <tr>
  228. <td>错误率</td>
  229. <?php foreach ($_paperAnalyseArr as $analyseArr):?>
  230. <td><?php echo $analyseArr['wrong_rate'];?>%</td>
  231. <?php endforeach;?>
  232. <?php for($i = 0;$i < ($columnNum-count($_paperAnalyseArr));$i++):?>
  233. <td>&nbsp;</td>
  234. <?php endfor;?>
  235. </tr>
  236. </tbody>
  237. </table>
  238. <?php endforeach;?>
  239. </div>
  240. </div>
  241. <?php endif;?>
  242. </div>
  243. <?php if($methodAnalyseArr): ?>
  244. <div class="topic">
  245. <div class="topic-one-title">
  246. <span>三、题型方法考察情况</span>
  247. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-one-title.png" alt="">
  248. </div>
  249. <!-- 知识点情况 -->
  250. <div class="knowledge-situation">
  251. <table>
  252. <tbody>
  253. <tr>
  254. <td>题型方法</td>
  255. <td>难度</td>
  256. <td>班级本次得分率</td>
  257. <td>对应题号(答错人数)</td>
  258. </tr>
  259. <?php foreach ($methodAnalyseArr as $item):?>
  260. <tr>
  261. <td><?php echo $item['name'];?></td>
  262. <td><?php echo !empty($item['difficult'])?$item['difficult']:'中等';?></td>
  263. <td><?php echo $item['rate'];?>%</td>
  264. <td>
  265. <?php foreach ($item['topicRs'] as $rs):?>
  266. <i><?php echo $rs['topic_no'];?></i>(<?php echo $rs['wrong_stu_num'];?>人),
  267. <?php endforeach;?>
  268. </td>
  269. </tr>
  270. <?php endforeach;?>
  271. </tbody>
  272. </table>
  273. </div>
  274. </div>
  275. <?php endif;?>
  276. </div>
  277. </div>
  278. <?php if($paperCommentsArr):?>
  279. <div class="part">
  280. <div class="part-title">
  281. <div class="title-txt">第二部分:试卷讲评</div>
  282. </div>
  283. <div class="part-content">
  284. <?php foreach ($paperCommentsArr as $paperConment):?>
  285. <?php
  286. $topicId = $paperConment['topic_id'];
  287. $topicInfo = isset($topicInfoArr[$topicId])?$topicInfoArr[$topicId]:array();
  288. if(!$topicInfo) continue;
  289. ?>
  290. <div class="question-block">
  291. <div class="question-title">
  292. <!-- <img src="--><?php //echo $zsyas2Url;?><!--/images/junior/teach/question_title_bg.png" alt="">-->
  293. <div class="question-title-text">
  294. <div class="question-number">
  295. 第<?php echo $paperConment['topic_no'];?>题
  296. <span>【<?php echo $topicId;?>】</span>
  297. </div>
  298. <div class="question-data">
  299. <span>班级得分率:<i><?php echo $paperConment['class_scoring_rate'];?>%</i></span>
  300. <span>答对:<i><?php echo $paperConment['right_stu_num'];?></i>人</span>
  301. <span>答错:<i><?php echo $paperConment['wrong_stu_num'];?></i>人</span>
  302. </div>
  303. </div>
  304. </div>
  305. <div class="wrong-studen-block">
  306. <div class="wrong-studen-cont">
  307. <div class="wrong-student-lable">
  308. <img class="wrong-lable-icon" src="<?php echo $zsyas2Url;?>/images/junior/teach/wrong-student-icon.png" alt="">
  309. <div class="wrong-lable-txt">答错学生</div>
  310. </div>
  311. <p class="wrong-studen-name">
  312. <?php foreach ($paperConment['wrong_stu_arr'] as $key => $stuId):?>
  313. <?php echo $key > 0?'、':'';?><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?>
  314. <?php endforeach;?>
  315. </p>
  316. </div>
  317. </div>
  318. <div class="question-text">
  319. <p><?php echo $topicInfo['queBody'];?></p>
  320. </div>
  321. <?php if(($topicInfo['options'])):?>
  322. <div class="option-block">
  323. <!-- 根据题库选项排列方式;横向排列用 x-4 类名,纵向排列用 y-4 类名,上下排列用 xy-2 类名 -->
  324. <ul class="option-list clearfix
  325. <?php if(isset($topicInfo['list_type'])):?>
  326. <?php if($topicInfo['list_type']==1) {
  327. echo 'y-4';
  328. }elseif ($topicInfo['list_type']==2) {
  329. echo 'x-4';
  330. }elseif ($topicInfo['list_type']==3) {
  331. echo 'xy-2';
  332. }else{
  333. echo 'y-4';
  334. };?>">
  335. <?php else:?>
  336. <?php echo 'y-4';?>
  337. <?php endif;?>
  338. <?php echo $topicInfo['options'];?>
  339. </ul>
  340. </div>
  341. <?php endif;?>
  342. <div class="answer-analysis">
  343. <div class="answer-text">
  344. <div class="answer-txt">答案:</div>
  345. <div class="answer-result"><?php echo $topicInfo['answer'];?></div>
  346. </div>
  347. <div class="analysis">
  348. <span class="analysis-title">【解析】</span>
  349. <p class="analysis-text">
  350. <?php echo $topicInfo['analysis'];?>
  351. </p>
  352. </div>
  353. </div>
  354. </div>
  355. <?php endforeach;?>
  356. </div>
  357. </div>
  358. <?php endif;?>
  359. <?php if(!$isWb && $commonMethods && $methodAnalyseArr):?>
  360. <div class="part">
  361. <div class="part-title">
  362. <div class="title-txt">第三部分:题型方法精讲</div>
  363. </div>
  364. <div class="part-content">
  365. <div class="topic">
  366. <div class="topic-title">
  367. <span>讲评建议</span>
  368. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-title-bg.png" alt="">
  369. </div>
  370. <div class="diagnosis">
  371. <p class="diagnosis-introduce">讲评建议:根据本次测试成绩以及错题分析,班级共性题型方法如下,需要加强训练:</p>
  372. <ul class="diagnosis-list">
  373. <?php foreach ($commonMethods as $methodId=>$commonMethod):?>
  374. <?php if(isset($methodAnalyseArr[$methodId])):?>
  375. <li><?php echo isset($methodAnalyseArr[$methodId]['name'])?$methodAnalyseArr[$methodId]['name']:'';?>;</li>
  376. <?php endif;?>
  377. <?php endforeach;?>
  378. <!-- <li>由一元二次方程根的情况求字母的取值范围;</li>-->
  379. </ul>
  380. <div class="diagnosis-analysis">
  381. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/start.png" alt="">
  382. <p>针对以上题型,我们为您匹配了精准的变式训练题,建议您重点讲解!</p>
  383. </div>
  384. </div>
  385. <div class="method-wrap">
  386. <?php $flag = 1;?>
  387. <?php foreach ($commonMethods as $methodId=>$commonMethod):?>
  388. <?php if(isset($methodAnalyseArr[$methodId])):?>
  389. <div class="type-method">
  390. <div class="type-method-title">
  391. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/method_title_bg.png" alt="">
  392. <div class="method-title-cont">
  393. <span class="method-title-num">题型方法<?php echo numToUpper($flag++);?> :</span>
  394. <p class="method-title-txt"><?php echo isset($methodAnalyseArr[$methodId]['name'])?$methodAnalyseArr[$methodId]['name']:'';?></p>
  395. </div>
  396. </div>
  397. <div class="type-method-content">
  398. <div class="method-block method-details">
  399. <div class="method-block-title clearfix">
  400. <span class="block-title-txt">【方法解读】</span>
  401. <span class="block-title-icon">
  402. <i></i>
  403. <i></i>
  404. <i></i>
  405. </span>
  406. </div>
  407. <div class="method-text">
  408. <?php echo isset($methodAnalyseArr[$methodId]['content'])?$methodAnalyseArr[$methodId]['content']:'';?>
  409. </div>
  410. </div>
  411. <?php if(isset($methodAnalyseArr[$methodId]['classic_topic_ids']) && !empty($methodAnalyseArr[$methodId]['classic_topic_ids'])):?>
  412. <div class="method-block typical-examples">
  413. <div class="method-block-title clearfix">
  414. <span class="block-title-txt">【典型例题】</span>
  415. <span class="block-title-icon">
  416. <i></i>
  417. <i></i>
  418. <i></i>
  419. </span>
  420. </div>
  421. <?php foreach ($methodAnalyseArr[$methodId]['classic_topic_ids'] as $classic_topic_id):?>
  422. <?php if(isset($commonTopics[$classic_topic_id])):?>
  423. <div class="examples">
  424. <span class="examples-school">【<?php echo $commonTopics[$classic_topic_id]['topic_id'];?>】</span>
  425. <p class="examples-text"><?php echo $commonTopics[$classic_topic_id]['queBody'];?></p>
  426. </div>
  427. <div class="option-block">
  428. <ul class="option-list clearfix
  429. <?php if(isset($commonTopics[$classic_topic_id]['list_type'])):?>
  430. <?php if($commonTopics[$classic_topic_id]['list_type']==1) {
  431. echo 'y-4';
  432. }elseif ($commonTopics[$classic_topic_id]['list_type']==2) {
  433. echo 'x-4';
  434. }elseif ($commonTopics[$classic_topic_id]['list_type']==3) {
  435. echo 'xy-2';
  436. }else{
  437. echo 'y-4';
  438. };?>">
  439. <?php else:?>
  440. <?php echo 'y-4';?>
  441. <?php endif;?>
  442. <?php echo $commonTopics[$classic_topic_id]['options'];?>
  443. </ul>
  444. </div>
  445. <div class="answer-text">
  446. <span class="answer-txt">答案:</span>
  447. <div class="answer-result">
  448. <?php echo $commonTopics[$classic_topic_id]['answer'];?>
  449. </div>
  450. </div>
  451. <div class="analysis">
  452. <span class="analysis-title">【解析】</span>
  453. <p class="analysis-text">
  454. <?php echo $commonTopics[$classic_topic_id]['analysis'];?>
  455. </p>
  456. </div>
  457. <?php endif;?>
  458. <?php endforeach;?>
  459. </div>
  460. <?php endif;?>
  461. <?php if(!empty($commonMethod)):?>
  462. <div class="method-block method-training">
  463. <div class="method-block-title clearfix">
  464. <span class="block-title-txt">【方法专练】</span>
  465. <span class="block-title-icon">
  466. <i></i>
  467. <i></i>
  468. <i></i>
  469. </span>
  470. </div>
  471. <div class="training-wrap">
  472. <?php $i = 1;?>
  473. <?php foreach ($commonMethod as $key=>$topicId):?>
  474. <?php if(isset($commonTopics[$topicId])):?>
  475. <div class="training-item">
  476. <div class="training-title">
  477. <span class="source"><?php echo $i++;?>、【<?php echo $commonTopics[$topicId]['topic_id'];?>】</span>
  478. <p class="training-text"><?php echo $commonTopics[$topicId]['queBody'];?></p>
  479. </div>
  480. <div class="option-block">
  481. <ul class="option-list clearfix
  482. <?php if(isset($commonTopics[$topicId]['list_type'])):?>
  483. <?php if($commonTopics[$topicId]['list_type']==1) {
  484. echo 'y-4';
  485. }elseif ($commonTopics[$topicId]['list_type']==2) {
  486. echo 'x-4';
  487. }elseif ($commonTopics[$topicId]['list_type']==3) {
  488. echo 'xy-2';
  489. }else{
  490. echo 'y-4';
  491. };?>">
  492. <?php else:?>
  493. <?php echo 'y-4';?>
  494. <?php endif;?>
  495. <?php echo $commonTopics[$topicId]['options'];?>
  496. </ul>
  497. </div>
  498. <div class="answer-analysis">
  499. <div class="answer-text">
  500. <div class="answer-txt">答案:</div>
  501. <div class="answer-result">
  502. <?php echo $commonTopics[$topicId]['answer'];?>
  503. </div>
  504. </div>
  505. <div class="analysis">
  506. <div class="analysis-title">【解析】</div>
  507. <p class="analysis-text">
  508. <?php echo $commonTopics[$topicId]['analysis'];?>
  509. </p>
  510. </div>
  511. </div>
  512. </div>
  513. <?php endif;?>
  514. <?php endforeach;?>
  515. </div>
  516. </div>
  517. <?php endif;?>
  518. </div>
  519. </div>
  520. <?php endif;?>
  521. <?php endforeach;?>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526. <?php endif;?>
  527. </div>
  528. </div>
  529. </body>
  530. </html>