teach.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  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>
  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. <div class="topic">
  244. <div class="topic-one-title">
  245. <span>三、题型方法考察情况</span>
  246. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-one-title.png" alt="">
  247. </div>
  248. <!-- 知识点情况 -->
  249. <div class="knowledge-situation">
  250. <table>
  251. <tbody>
  252. <tr>
  253. <td>题型方法</td>
  254. <td>难度</td>
  255. <td>班级本次得分率</td>
  256. <td>对应题号(答错人数)</td>
  257. </tr>
  258. <?php foreach ($methodAnalyseArr as $item):?>
  259. <tr>
  260. <td><?php echo $item['name'];?></td>
  261. <td><?php echo !empty($item['difficult'])?$item['difficult']:'中等';?></td>
  262. <td><?php echo $item['rate'];?>%</td>
  263. <td>
  264. <?php foreach ($item['topicRs'] as $rs):?>
  265. <i><?php echo $rs['topic_no'];?></i>(<?php echo $rs['wrong_stu_num'];?>人),
  266. <?php endforeach;?>
  267. </td>
  268. </tr>
  269. <?php endforeach;?>
  270. </tbody>
  271. </table>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <?php if($paperCommentsArr):?>
  277. <div class="part">
  278. <div class="part-title">
  279. <div class="title-txt">第二部分:试卷讲评</div>
  280. </div>
  281. <div class="part-content">
  282. <?php foreach ($paperCommentsArr as $paperConment):?>
  283. <?php
  284. $topicId = $paperConment['topic_id'];
  285. $topicInfo = isset($topicInfoArr[$topicId])?$topicInfoArr[$topicId]:array();
  286. if(!$topicInfo) continue;
  287. ?>
  288. <div class="question-block">
  289. <div class="question-title">
  290. <!-- <img src="--><?php //echo $zsyas2Url;?><!--/images/junior/teach/question_title_bg.png" alt="">-->
  291. <div class="question-title-text">
  292. <div class="question-number">
  293. 第<?php echo $paperConment['topic_no'];?>题
  294. <span>【<?php echo $topicId;?>】</span>
  295. </div>
  296. <div class="question-data">
  297. <span>班级得分率:<i><?php echo $paperConment['class_scoring_rate'];?>%</i></span>
  298. <span>答对:<i><?php echo $paperConment['right_stu_num'];?></i>人</span>
  299. <span>答错:<i><?php echo $paperConment['wrong_stu_num'];?></i>人</span>
  300. </div>
  301. </div>
  302. </div>
  303. <div class="wrong-studen-block">
  304. <div class="wrong-student-lable">
  305. <img class="wrong-lable-icon" src="<?php echo $zsyas2Url;?>/images/junior/teach/wrong-student-icon.png" alt="">
  306. <div class="wrong-lable-txt">答错学生</div>
  307. </div>
  308. <p class="wrong-studen-name">
  309. <?php foreach ($paperConment['wrong_stu_arr'] as $key => $stuId):?>
  310. <?php echo $key > 0?'、':'';?><?php echo isset($stuNameArr[$stuId])?$stuNameArr[$stuId]:'';?>
  311. <?php endforeach;?>
  312. </p>
  313. </div>
  314. <div class="question-text">
  315. <p><?php echo $topicInfo['queBody'];?></p>
  316. </div>
  317. <?php if(($topicInfo['options'])):?>
  318. <div class="option-block">
  319. <!-- 根据题库选项排列方式;横向排列用 x-4 类名,纵向排列用 y-4 类名,上下排列用 xy-2 类名 -->
  320. <ul class="option-list clearfix
  321. <?php if($topicInfo['list_type']==1) {
  322. echo 'y-4';
  323. }elseif ($topicInfo['list_type']==2) {
  324. echo 'x-4';
  325. }elseif ($topicInfo['list_type']==3) {
  326. echo 'xy-2';
  327. }else{
  328. echo 'y-4';
  329. };?>">
  330. <?php echo $topicInfo['options'];?>
  331. </ul>
  332. </div>
  333. <?php endif;?>
  334. <div class="answer-analysis">
  335. <div class="answer-text">
  336. <div class="answer-txt">答案:</div>
  337. <div class="answer-result"><?php echo $topicInfo['answer'];?></div>
  338. </div>
  339. <div class="analysis">
  340. <span class="analysis-title">【解析】</span>
  341. <p class="analysis-text">
  342. <?php echo $topicInfo['analysis'];?>
  343. </p>
  344. </div>
  345. </div>
  346. </div>
  347. <?php endforeach;?>
  348. </div>
  349. </div>
  350. <?php endif;?>
  351. <div class="part">
  352. <div class="part-title">
  353. <div class="title-txt">第三部分:题型方法精讲</div>
  354. </div>
  355. <div class="part-content">
  356. <div class="topic">
  357. <div class="topic-title">
  358. <span>讲评建议</span>
  359. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/topic-title-bg.png" alt="">
  360. </div>
  361. <div class="diagnosis">
  362. <p class="diagnosis-introduce">讲评建议:根据本次测试成绩以及错题分析,班级共性题型方法如下,需要加强训练:</p>
  363. <ul class="diagnosis-list">
  364. <?php foreach ($commonMethods as $methodId=>$commonMethod):?>
  365. <?php if(isset($methodAnalyseArr[$methodId])):?>
  366. <li><?php echo isset($methodAnalyseArr[$methodId]['name'])?$methodAnalyseArr[$methodId]['name']:'';?>;</li>
  367. <?php endif;?>
  368. <?php endforeach;?>
  369. <!-- <li>由一元二次方程根的情况求字母的取值范围;</li>-->
  370. </ul>
  371. <div class="diagnosis-analysis">
  372. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/start.png" alt="">
  373. <p>针对以上题型,我们为您匹配了精准的变式训练题,建议您重点讲解!</p>
  374. </div>
  375. </div>
  376. <div class="method-wrap">
  377. <?php $flag = 1;?>
  378. <?php foreach ($commonMethods as $methodId=>$commonMethod):?>
  379. <?php if(isset($methodAnalyseArr[$methodId])):?>
  380. <div class="type-method">
  381. <div class="type-method-title">
  382. <img src="<?php echo $zsyas2Url;?>/images/junior/teach/method_title_bg.png" alt="">
  383. <div class="method-title-cont">
  384. <span class="method-title-num">题型方法<?php echo numToUpper($flag++);?> :</span>
  385. <p class="method-title-txt"><?php echo isset($methodAnalyseArr[$methodId]['name'])?$methodAnalyseArr[$methodId]['name']:'';?></p>
  386. </div>
  387. </div>
  388. <div class="type-method-content">
  389. <div class="method-block method-details">
  390. <div class="method-block-title clearfix">
  391. <span class="block-title-txt">【方法解读】</span>
  392. <span class="block-title-icon">
  393. <i></i>
  394. <i></i>
  395. <i></i>
  396. </span>
  397. </div>
  398. <div class="method-text">
  399. <?php echo isset($methodAnalyseArr[$methodId]['content'])?$methodAnalyseArr[$methodId]['content']:'';?>
  400. </div>
  401. </div>
  402. <?php if(isset($methodAnalyseArr[$methodId]['classic_topic_ids']) && !empty($methodAnalyseArr[$methodId]['classic_topic_ids'])):?>
  403. <div class="method-block typical-examples">
  404. <div class="method-block-title clearfix">
  405. <span class="block-title-txt">【典型例题】</span>
  406. <span class="block-title-icon">
  407. <i></i>
  408. <i></i>
  409. <i></i>
  410. </span>
  411. </div>
  412. <?php foreach ($methodAnalyseArr[$methodId]['classic_topic_ids'] as $classic_topic_id):?>
  413. <?php if(isset($commonTopics[$classic_topic_id])):?>
  414. <div class="examples">
  415. <span class="examples-school">【<?php echo $commonTopics[$classic_topic_id]['topic_id'];?>】</span>
  416. <p class="examples-text"><?php echo $commonTopics[$classic_topic_id]['queBody'];?></p>
  417. </div>
  418. <div class="option-block">
  419. <ul class="option-list clearfix
  420. <?php if($commonTopics[$classic_topic_id]['list_type']==1) {
  421. echo 'y-4';
  422. }elseif ($commonTopics[$classic_topic_id]['list_type']==2) {
  423. echo 'x-4';
  424. }elseif ($commonTopics[$classic_topic_id]['list_type']==3) {
  425. echo 'xy-2';
  426. }else{
  427. echo 'y-4';
  428. };?>">
  429. <?php echo $commonTopics[$classic_topic_id]['options'];?>
  430. </ul>
  431. </div>
  432. <div class="answer-text">
  433. <span class="answer-txt">答案:</span>
  434. <div class="answer-result">
  435. <?php echo $commonTopics[$classic_topic_id]['answer'];?>
  436. </div>
  437. </div>
  438. <div class="analysis">
  439. <span class="analysis-title">【解析】</span>
  440. <p class="analysis-text">
  441. <?php echo $commonTopics[$classic_topic_id]['analysis'];?>
  442. </p>
  443. </div>
  444. <?php endif;?>
  445. <?php endforeach;?>
  446. </div>
  447. <?php endif;?>
  448. <?php if(!empty($commonMethod)):?>
  449. <div class="method-block method-training">
  450. <div class="method-block-title clearfix">
  451. <span class="block-title-txt">【方法专练】</span>
  452. <span class="block-title-icon">
  453. <i></i>
  454. <i></i>
  455. <i></i>
  456. </span>
  457. </div>
  458. <div class="training-wrap">
  459. <?php $i = 1;?>
  460. <?php foreach ($commonMethod as $key=>$topicId):?>
  461. <?php if(isset($commonTopics[$topicId])):?>
  462. <div class="training-item">
  463. <div class="training-title">
  464. <span class="source"><?php echo $i++;?>、【<?php echo $commonTopics[$topicId]['topic_id'];?>】</span>
  465. <p class="training-text"><?php echo $commonTopics[$topicId]['queBody'];?></p>
  466. </div>
  467. <div class="option-block">
  468. <ul class="option-list clearfix
  469. <?php if($commonTopics[$topicId]['list_type']==1) {
  470. echo 'y-4';
  471. }elseif ($commonTopics[$topicId]['list_type']==2) {
  472. echo 'x-4';
  473. }elseif ($commonTopics[$topicId]['list_type']==3) {
  474. echo 'xy-2';
  475. }else{
  476. echo 'y-4';
  477. };?>">
  478. <?php echo $commonTopics[$topicId]['options'];?>
  479. </ul>
  480. </div>
  481. <div class="answer-analysis">
  482. <div class="answer-text">
  483. <div class="answer-txt">答案:</div>
  484. <div class="answer-result">
  485. <?php echo $commonTopics[$topicId]['answer'];?>
  486. </div>
  487. </div>
  488. <div class="analysis">
  489. <div class="analysis-title">【解析】</div>
  490. <p class="analysis-text">
  491. <?php echo $commonTopics[$topicId]['analysis'];?>
  492. </p>
  493. </div>
  494. </div>
  495. </div>
  496. <?php endif;?>
  497. <?php endforeach;?>
  498. </div>
  499. </div>
  500. <?php endif;?>
  501. </div>
  502. </div>
  503. <?php endif;?>
  504. <?php endforeach;?>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. </body>
  512. </html>