academicr_1.php 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. <link rel="stylesheet" href="<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/css/mathTeaching.css" />
  7. <style media="print">
  8. @media print {
  9. .Noprint {
  10. display: none;
  11. }
  12. body {
  13. color: #000;
  14. background: #fff;
  15. font-family: "宋体";
  16. }
  17. h1 {
  18. color: #000;
  19. background: none;
  20. }
  21. nav,
  22. aside {
  23. display: none;
  24. }
  25. body,
  26. article {
  27. width: 100%;
  28. margin: 0;
  29. padding: 0;
  30. }
  31. article a {
  32. font-weight: bolder;
  33. text-decoration: none;
  34. }
  35. article a[href^="http"] {
  36. display: none;
  37. }
  38. @page {
  39. margin: 1cm;
  40. }
  41. @page {
  42. size: B5 portrait;
  43. }
  44. @page: left {
  45. margin-left: 1cm;
  46. }
  47. @page: right {
  48. margin-left: 1cm;
  49. }
  50. @page: right {
  51. @bottom-right {
  52. margin: 10pt 0 30pt 0;
  53. border-top: 0.25pt solid #666;
  54. content: 33;
  55. font-size: 9pt;
  56. }
  57. }
  58. }
  59. </style>
  60. <style type="text/css">
  61. .tl-tit{
  62. background: url(<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/images/tl-tit_bg.png) no-repeat;
  63. background-size: contain;
  64. }
  65. .type-title {
  66. background: url(<?php echo isset($imgUrl)?$imgUrl:Yii::app()->request->hostInfo;?>/images/case_lable.png) no-repeat;
  67. background-size: 100% 100%;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72. <?php
  73. if(!isset($imgUrl)){
  74. $imgUrl = Yii::app()->request->hostInfo;
  75. }
  76. $part_no = 1;
  77. ?>
  78. <!-- 封面 -->
  79. <?php if(!$isPrecise):?>
  80. <div class="cover">
  81. <img src="<?php echo $imgUrl;?>/images/math-cover-1.jpg" alt="" />
  82. <div class="info">
  83. <div class="class"><?php echo $className ?></div>
  84. <div class="exam"><?php echo $examName; ?></div>
  85. <div class="teacher"><?php echo isset($teacherName)?$teacherName:''; ?></div>
  86. </div>
  87. </div>
  88. <?php else:?>
  89. <div class="cover2">
  90. <img src="<?php echo $imgUrl;?>/images/cover2.jpg" alt="" />
  91. <div class="info">
  92. <div class="class"><?php echo $className ?></div>
  93. <div class="exam"><?php echo $examName; ?></div>
  94. </div>
  95. </div>
  96. <?php endif;?>
  97. <div class="paper">
  98. <!--<p class="tec-title tac"><?php // echo $examName; ?>-<?php // echo $className ?>-教师讲案</p>-->
  99. <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:学情分析</h2>
  100. <div class="tec-lis">
  101. <p class="tl-tit fzl">一、班级情况分析</p>
  102. <table cellpadding="0" cellspacing="0" class="class-analyze-detail">
  103. <tr>
  104. <td>
  105. <p class="tl-num-detail">参加考试人数&nbsp;&nbsp;<?php if (isset($totalNum)): echo $totalNum; endif; ?>人</p>
  106. <p class="tl-num-warn"><?php if (isset($absentNum)): echo $absentNum; else: echo '0'; endif; ?>人缺考</p>
  107. </td>
  108. <td>
  109. <p class="tl-num-detail">平均得分率&nbsp;&nbsp;<?php if (isset($avgRate)): echo $avgRate; endif; ?>%</p>
  110. <p class="tl-num-warn">较上次考试<?php if (isset($avgFluctuate)): if ($avgFluctuate > 0): echo '+'; endif; echo $avgFluctuate; endif; ?>%</p>
  111. </td>
  112. <td>
  113. <p class="tl-num-detail">平均分&nbsp;&nbsp;<?php if (isset($avgScore)): echo $avgScore; endif; ?></p>
  114. <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>
  115. </td>
  116. <td>
  117. <p class="tl-num-detail">及格率&nbsp;&nbsp;<?php if (isset($passRate)): echo $passRate; else: echo '0'; endif; ?>%</p>
  118. <p class="tl-num-warn">其中得分率90%以上的有<?php if (isset($passNum_90)): echo $passNum_90; else: echo '0'; endif; ?>人</p>
  119. </td>
  120. </tr>
  121. </table>
  122. <div class="cad-main-tables clearfix">
  123. <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
  124. <tr>
  125. <td colspan="3" class="fzm">大幅进步</td>
  126. </tr>
  127. <tr class="gray-font">
  128. <td>姓名</td>
  129. <td>班级排名</td>
  130. <td>排名提升</td>
  131. </tr>
  132. <?php if (isset($forwards)): ?>
  133. <?php $i = 1; ?>
  134. <?php foreach ($forwards as $key => $val): ?>
  135. <?php foreach ($val as $k => $v): ?>
  136. <?php if ($i > 5): break 2; endif; ?>
  137. <tr>
  138. <td><?php echo $v['realname']; ?></td>
  139. <td><?php echo $v['rank']; ?></td>
  140. <td><?php echo $key; ?></td>
  141. </tr>
  142. <?php $i++; ?>
  143. <?php endforeach; ?>
  144. <?php endforeach; ?>
  145. <?php endif; ?>
  146. </table>
  147. <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
  148. <tr>
  149. <td colspan="3" class="fzm">大幅退步</td>
  150. </tr>
  151. <tr class="gray-font">
  152. <td>姓名</td>
  153. <td>班级排名</td>
  154. <td>排名下降</td>
  155. </tr>
  156. <?php if (isset($rewinds)): ?>
  157. <?php $i = 1; ?>
  158. <?php foreach ($rewinds as $key => $val): ?>
  159. <?php foreach ($val as $k => $v): ?>
  160. <?php if ($i > 5): break 2; endif; ?>
  161. <tr>
  162. <td><?php echo $v['realname']; ?></td>
  163. <td><?php echo $v['rank']; ?></td>
  164. <td><?php echo $key; ?></td>
  165. </tr>
  166. <?php $i++; ?>
  167. <?php endforeach; ?>
  168. <?php endforeach; ?>
  169. <?php endif; ?>
  170. </table>
  171. <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
  172. <tr>
  173. <td colspan="3" class="fzm">班级前五名</td>
  174. </tr>
  175. <tr class="gray-font">
  176. <td>姓名</td>
  177. <td>班级排名</td>
  178. </tr>
  179. <?php if (isset($ranks)): ?>
  180. <?php $i = 1; ?>
  181. <?php foreach ($ranks as $rank): ?>
  182. <?php if ($i > 5): break; endif; ?>
  183. <tr>
  184. <td><?php echo $rank['realname']; ?></td>
  185. <td><?php echo $rank['rank']; ?></td>
  186. </tr>
  187. <?php $i++; ?>
  188. <?php endforeach; ?>
  189. <?php endif; ?>
  190. </table>
  191. <table cellpadding="0" cellspacing="0" class="cmt-tab-lis tac fl">
  192. <tr>
  193. <td colspan="3" class="fzm">班级后五名</td>
  194. </tr>
  195. <tr class="gray-font">
  196. <td>姓名</td>
  197. <td>班级排名</td>
  198. </tr>
  199. <?php if (isset($ranks)): ?>
  200. <?php $i = 1; ?>
  201. <?php foreach (array_reverse($ranks) as $rank): ?>
  202. <?php if ($i > 5): break; endif; ?>
  203. <tr>
  204. <td><?php echo $rank['realname']; ?></td>
  205. <td><?php echo $rank['rank']; ?></td>
  206. </tr>
  207. <?php $i++; ?>
  208. <?php endforeach; ?>
  209. <?php endif; ?>
  210. </table>
  211. </div>
  212. </div>
  213. <div class="tec-lis">
  214. <p class="tl-tit fzl">二、考试情况分析</p>
  215. <?php if (isset($errorNums)): ?>
  216. <?php $n = count($errorNums); ?>
  217. <?php $p = ceil($n / 8); ?>
  218. <?php for ($i = 0; $i < $p; $i++): ?>
  219. <table cellpadding="0" cellspacing="0" class="knowledge-hasget-count tac">
  220. <tr>
  221. <td class="tal">&nbsp;题号</td>
  222. <?php for ($j = 1; $j <= 8; $j++): ?>
  223. <td>
  224. <?php if (isset($errorNums[$j + $i * 8])): ?>
  225. <?php // echo ($j + $i * 8); ?>
  226. <?php echo isset($newTopicNos[$noTopicIds[$j + $i * 8 - 1]]) ? $newTopicNos[$noTopicIds[$j + $i * 8 - 1]] : ($j + $i * 8);?>
  227. <?php endif; ?>
  228. </td>
  229. <?php endfor; ?>
  230. </tr>
  231. <tr>
  232. <td class="tal">&nbsp;平均分</td>
  233. <?php for ($j = 1; $j <= 8; $j++): ?>
  234. <td>
  235. <?php if (isset($errorNums[$j + $i * 8])): ?>
  236. <?php echo isset($noTopicIds[($j + $i * 8 - 1)])?$topics[$noTopicIds[$j + $i * 8 - 1]]['avgScore']:0;?>
  237. <?php endif;?>
  238. </td>
  239. <?php endfor; ?>
  240. </tr>
  241. <tr>
  242. <td class="tal">&nbsp;答错人数</td>
  243. <?php for ($j = 1; $j <= 8; $j++): ?>
  244. <td>
  245. <?php if (isset($errorNums[$j + $i * 8])): ?>
  246. <?php echo $errorNums[$j + $i * 8]; ?>
  247. <?php endif; ?>
  248. </td>
  249. <?php endfor; ?>
  250. </tr>
  251. <tr>
  252. <td class="tal" style="width:58px;">&nbsp;错误率</td>
  253. <?php
  254. for ($j = 1; $j <= 8; $j++): ?>
  255. <td style="width:51px;">
  256. <?php if (isset($errorNums[$j + $i * 8])): ?>
  257. <!--如果有选做题这种算法是错的-->
  258. <!--<?php //echo isset($noTopicIds[($j + $i * 8 - 1)])?(100 - $topics[$noTopicIds[$j + $i * 8 - 1]]['avgRate']):100; ?>%-->
  259. <?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; ?>%
  260. <?php endif; ?>
  261. </td>
  262. <?php endfor; ?>
  263. </tr>
  264. </table>
  265. <?php endfor; ?>
  266. <?php endif; ?>
  267. </div>
  268. <div class="tec-lis">
  269. <?php if(isset($answer_score_details) && $answer_score_details):?>
  270. <p class="tl-tit fzl">三、客观题得分明细</p>
  271. <?php $tr_size = 16;?>
  272. <?php $topic_count = count($answer_score_details);?>
  273. <?php $p = ceil($topic_count / $tr_size); ?>
  274. <?php for ($i = 0; $i < $p; $i++): ?>
  275. <?php $tr_data = array_slice($answer_score_details,$i*$tr_size,$tr_size);?>
  276. <table cellpadding="0" cellspacing="0" class="score-details tac">
  277. <tr>
  278. <td class="tal" style="width: 28mm">题号(答案)</td>
  279. <?php
  280. $temp_tr_data = array();
  281. $option_answer_html = '';
  282. $option_html = '';
  283. $option_count_html = '';
  284. foreach($tr_data as $k=>$v){
  285. if(!isset($temp_tr_data[$v['id']])){
  286. $temp_tr_data[$v['id']]['answer'] = $v['answer'];
  287. $temp_tr_data[$v['id']]['order'] = $v['order'];
  288. $temp_tr_data[$v['id']]['count'] = 1;
  289. }else{
  290. $temp_tr_data[$v['id']]['count']++;
  291. }
  292. $option_html.='<td class="sel">'.$v['option'].'</td>';
  293. $option_count_html.='<td>'.$v['option_count'].'</td>';
  294. }
  295. if($temp_tr_data){
  296. foreach($temp_tr_data as $k=>$v){
  297. $option_answer_html.= '<td colspan="'.$v['count'].'">'.$v['order'].'('.$v['answer'].')</td>';
  298. }
  299. }
  300. echo $option_answer_html;
  301. ?>
  302. </tr>
  303. <tr>
  304. <td class="tal">选项</td><?php echo $option_html;?>
  305. </tr>
  306. <tr>
  307. <td class="tal">选择人数</td><?php echo $option_count_html;?>
  308. </tr>
  309. </table>
  310. <?php endfor;?>
  311. <?php endif;?>
  312. </div>
  313. <div class="tec-lis">
  314. <?php if(isset($answer_score_details) && $answer_score_details):?>
  315. <p class="tl-tit fzl">四、考点掌握情况</p>
  316. <?php else:?>
  317. <p class="tl-tit fzl">三、考点掌握情况</p>
  318. <?php endif;?>
  319. <table cellpadding="0" cellspacing="0" class="knowledge-counts tac">
  320. <thead>
  321. <td class="test-point-name tac">考点名称</td>
  322. <td class="test-get-level">考点掌握水平</td>
  323. <td class="class-score-rate">班级得分率</td>
  324. <td class="error-counts">答错人数</td>
  325. <td class="sel-theme-ser tac">选题对应题号</td>
  326. </thead>
  327. <?php if (isset($methodNos)): ?>
  328. <?php foreach ($methodNos as $methodId => $nos): ?>
  329. <tr>
  330. <td class="test-point-name"><?php if (isset($methodNames[$methodId])): echo $methodNames[$methodId]; else: echo $methodId; endif; ?></td>
  331. <?php $rate = number_format($methodScores[$methodId] / $methodFullScores[$methodId], 4) * 100; ?>
  332. <td class="test-get-level">
  333. <?php if ($rate < 40): ?>
  334. <?php $star = 1; ?>
  335. <?php elseif ($rate >= 40 && $rate < 60): ?>
  336. <?php $star = 2; ?>
  337. <?php elseif ($rate >= 60 && $rate < 80): ?>
  338. <?php $star = 3; ?>
  339. <?php elseif ($rate >= 80 && $rate < 90): ?>
  340. <?php $star = 4; ?>
  341. <?php else: ?>
  342. <?php $star = 5; ?>
  343. <?php endif; ?>
  344. <?php for ($i = 1; $i <= $star; $i++): ?>
  345. <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">
  346. <?php endfor; ?>
  347. <?php if (5 - $star >= 1): ?>
  348. <?php for ($i = 1; $i <= 5 - $star; $i++): ?>
  349. <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">
  350. <?php endfor; ?>
  351. <?php endif; ?>
  352. </td>
  353. <td class="class-score-rate"><?php echo $rate; ?>%</td>
  354. <td class="error-counts"><?php echo count($methodErrorStudents[$methodId]); ?></td>
  355. <td class="sel-theme-ser">
  356. <?php foreach ($nos as $no): ?>
  357. <span class="sts-num tac"><?php echo $no; ?></span>
  358. <?php endforeach; ?>
  359. </td>
  360. </tr>
  361. <?php endforeach; ?>
  362. <?php endif; ?>
  363. </table>
  364. </div>
  365. <?php if(isset($gen_topics) && $gen_topics && isset($setting_arr['common']) && $setting_arr['common']):?>
  366. <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:共性问题精讲</h2>
  367. <div class="guide-wrap proposal">
  368. <div class="guide">
  369. <div class="guide-lable">
  370. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  371. <div class="fontBold guide-lable-txt">讲评建议</div>
  372. </div>
  373. <p class="font10">
  374. <?php
  375. $gen_tips = '';
  376. if(isset($gen_topics_msg) && $gen_topics_msg){
  377. foreach($gen_topics_msg as $k=>$v){
  378. if(isset($v['template_no']) && $v['template_no']){
  379. $gen_tips .="第<span class='org'>".$v['template_no']."</span>题、";
  380. }
  381. }
  382. }
  383. if($gen_tips){
  384. // $gen_tips = mb_substr($gen_tips,0,mb_strlen($gen_tips)-1);
  385. $gen_tips = mb_substr($gen_tips,0,-1,'utf-8');
  386. }
  387. ?>
  388. 本次考试<?php echo $className;?>平均得分率<?php echo isset($avgRate)?$avgRate:''; ?>%,共性问题为<?php echo $gen_tips;?>,涉及到的考点是<?php echo isset($gen_origin_methods)?$gen_origin_methods:'';?>,已为您精准匹配变式训练题,建议您重点讲解!
  389. </p>
  390. </div>
  391. </div>
  392. <div class="tec-lis">
  393. <?php foreach($gen_topics as $k=>$v):?>
  394. <div class="themes-block">
  395. <?php foreach($v as $gen_topic):?>
  396. <?php if(!isset($gen_topics_detail[$gen_topic["topic_id"]])){continue;}?>
  397. <?php
  398. $new_k_type_id = 1;
  399. if(isset($gen_topics_detail[$gen_topic["topic_id"]])){
  400. if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']){
  401. $new_k_type_id = $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id'];
  402. }else{
  403. $new_k_type_id = $gen_topics_detail[$gen_topic["topic_id"]]['type_id'];
  404. }
  405. }
  406. ?>
  407. <?php if($gen_topic['is_template'] == 1):?>
  408. <div class="them-apecial-style clearfix">
  409. <div class="tit-img">
  410. <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
  411. </div>
  412. <div class="tit-orange-bg fl">
  413. <span class="tts-msg">第<?php echo isset($newTopicNos[$gen_topic["topic_id"]])?$newTopicNos[$gen_topic["topic_id"]]:"";?>题</span>
  414. <span class="tts-msg"><?php echo isset($gen_topics_detail[$gen_topic["topic_id"]])?$gen_topics_detail[$gen_topic["topic_id"]]["type_name"]:'';?></span>
  415. </div>
  416. <div class="tas-score-detail">
  417. <span class="tsd-lis-detail">ID:<i class="org">
  418. <?php
  419. if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && substr($gen_topic["topic_id"],0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
  420. echo substr($gen_topic["topic_id"],4);
  421. }else{
  422. echo $gen_topic["topic_id"];
  423. }
  424. ?></i>
  425. </span>
  426. <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>
  427. <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>
  428. <!--<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>-->
  429. <!--<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>-->
  430. </div>
  431. </div>
  432. <div class="wrong-studen-block">
  433. <?php if(isset($topics[$gen_topic["topic_id"]]['rateLess70']) && isset($topics[$gen_topic["topic_id"]]['rateLess70']) && $topics[$gen_topic["topic_id"]]['rateLess70']):?>
  434. <div class="wrong-student">
  435. <span class="student">【答错<i><?php echo count($topics[$gen_topic["topic_id"]]['rateLess70']);?></i>人 <?php echo ($new_k_type_id == 1)?'答错学生':'得分率低于70%的学生';?>】</span>
  436. <span class="font-bold">
  437. <?php echo implode('、',$topics[$gen_topic["topic_id"]]['rateLess70']);?>
  438. </span>
  439. </div>
  440. <?php endif;?>
  441. </div>
  442. <?php else:?>
  443. <!--<div class="train">【变式训练】</div>-->
  444. <div class="train">
  445. <img src="<?php echo $imgUrl;?>/images/Variation-training.jpg" alt="">
  446. </div>
  447. <?php endif;?>
  448. <?php if(isset($gen_topics_detail[$gen_topic["topic_id"]])):?>
  449. <?php if($gen_topic['is_template'] && !$setting_arr['common_wrong']){continue;}?>
  450. <?php if($gen_topic['is_template'] == 1):?>
  451. <div class="details">
  452. <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
  453. </div>
  454. <?php endif;?>
  455. <div class="theme-detail-msg">
  456. <?php if(!$gen_topic['is_template']):?>
  457. <span class="org">【
  458. <?php
  459. //echo $gen_topic["topic_id"];
  460. if(isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && substr($gen_topic["topic_id"],0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
  461. echo substr($gen_topic["topic_id"],4);
  462. }else{
  463. echo $gen_topic["topic_id"];
  464. }
  465. ?>
  466. 】</span>
  467. <?php endif;?>
  468. <?php echo $gen_topics_detail[$gen_topic["topic_id"]]['title']; ?>
  469. </div>
  470. <?php $answers = array(); ?>
  471. <?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)
  472. || (isset($gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']) && $gen_topics_detail[$gen_topic["topic_id"]]['basic_type_id']==3)
  473. )
  474. && isset($gen_topics_detail[$gen_topic["topic_id"]]['items']) && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0])
  475. && isset($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'])): ?>
  476. <ul class="answer clearfix">
  477. <?php $i = 1; ?>
  478. <?php foreach ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'] as $option): ?>
  479. <?php if ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['list_type'] == 1): ?>
  480. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  481. <?php elseif ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['list_type'] == 2): ?>
  482. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  483. <?php else: ?>
  484. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  485. <?php endif; ?>
  486. <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
  487. <?php $i++; ?>
  488. <?php endforeach; ?>
  489. </ul>
  490. <?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'])): ?>
  491. <?php foreach ($gen_topics_detail[$gen_topic["topic_id"]]['items'][0]['options'] as $option): ?>
  492. <?php $answers[] = $option['option_content']; ?>
  493. <?php endforeach; ?>
  494. <?php endif; ?>
  495. <div class="answer-explain-detail clearfix">
  496. <?php if ($answers): ?>
  497. <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answer): ?><?php echo $answer; ?> <?php endforeach; ?></div>
  498. <?php endif;?>
  499. <div class="fl aed-answer-explain">
  500. <span>【解析】</span>
  501. <?php echo $gen_topics_detail[$gen_topic["topic_id"]]['parse_content']; ?>
  502. </div>
  503. </div>
  504. <?php endif;?>
  505. <?php endforeach;?>
  506. </div>
  507. <?php endforeach;?>
  508. </div>
  509. <?php endif;?>
  510. <?php if(isset($grade_topic_data) && $grade_topic_data):?>
  511. <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:年级共性问题精讲</h2>
  512. <div class="guide-wrap proposal">
  513. <div class="guide">
  514. <div class="guide-lable">
  515. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  516. <div class="fontBold guide-lable-txt">讲评建议</div>
  517. </div>
  518. <p class="font10">
  519. 推送<?php echo count($grade_topic_data);?>道年级共性问题,请您重点讲解!
  520. </p>
  521. </div>
  522. </div>
  523. <div class="tec-lis">
  524. <?php foreach($grade_topic_data as $k=>$v):?>
  525. <?php
  526. $new_k_type_id = 1;
  527. if(isset($v['basic_type_id']) && $v['basic_type_id']){
  528. $new_k_type_id = $v['basic_type_id'];
  529. }else{
  530. $new_k_type_id = $v['type_id'];
  531. }
  532. $methods_arr = array();
  533. if(isset($v['specials']) && $v['specials']){
  534. foreach($v['specials'] as $specials){
  535. if(isset($specials['method_name'])){
  536. $methods_arr[] = $specials['method_name'];
  537. }
  538. }
  539. }elseif(isset($v['kps']) && $v['kps']){
  540. foreach($v['kps'] as $kps){
  541. if(isset($kps['kp_name'])){
  542. $methods_arr[] = $kps['kp_name'];
  543. }
  544. }
  545. }
  546. ?>
  547. <div class="themes-block">
  548. <div class="them-apecial-style clearfix">
  549. <div class="tit-img">
  550. <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
  551. </div>
  552. <div class="tit-orange-bg fl">
  553. <span class="tts-msg">练习题<?php echo $k+1;?></span>
  554. </div>
  555. <div class="tas-score-detail">
  556. <span class="tsd-lis-detail">ID:<i class="org">
  557. <?php
  558. if(isset($v['basic_type_id']) && substr($v["id"],0,4) =="2015"){
  559. echo substr($v["id"],4);
  560. }else{
  561. echo $v["id"];
  562. }?></i>
  563. </span>
  564. <span class="tsd-lis-detail">知识点:<i class="org knowledge-point"><?php echo implode(",",$methods_arr)?></i></span>
  565. </div>
  566. </div>
  567. <div class="details">
  568. <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
  569. </div>
  570. <div class="theme-detail-msg">
  571. <?php echo $v['title']; ?>
  572. </div>
  573. <?php $answers = array(); ?>
  574. <?php if ((in_array($new_k_type_id,array(1,2)) || (isset($v['basic_type_id']) && $v['basic_type_id']==3) ||
  575. (!isset($v['basic_type_id']) && $v['type_id'] ==3))
  576. && isset($v['items']) && isset($v['items'][0]) && isset($v['items'][0]['options'])): ?>
  577. <ul class="answer clearfix">
  578. <?php $i = 1; ?>
  579. <?php foreach ($v['items'][0]['options'] as $option): ?>
  580. <?php if ($v['items'][0]['list_type'] == 1): ?>
  581. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  582. <?php elseif ($v['items'][0]['list_type'] == 2): ?>
  583. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  584. <?php else: ?>
  585. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  586. <?php endif; ?>
  587. <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
  588. <?php $i++; ?>
  589. <?php endforeach; ?>
  590. </ul>
  591. <?php elseif (isset($v['items']) && isset($v['items'][0]) && isset($v['items'][0]['options'])): ?>
  592. <?php foreach ($v['items'][0]['options'] as $option): ?>
  593. <?php $answers[] = $option['option_content']; ?>
  594. <?php endforeach; ?>
  595. <?php endif; ?>
  596. <div class="answer-explain-detail clearfix">
  597. <?php if ($answers): ?>
  598. <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answer): ?><?php echo $answer; ?> <?php endforeach; ?></div>
  599. <?php endif;?>
  600. <div class="fl aed-answer-explain">
  601. <span>【解析】</span>
  602. <?php echo $v['parse_content']; ?>
  603. </div>
  604. </div>
  605. </div>
  606. <?php endforeach;?>
  607. </div>
  608. <?php endif;?>
  609. <?php if(isset($setting_arr['paper']) && $setting_arr['paper']):?>
  610. <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:试卷讲评</h2>
  611. <?php if ($wb_isp_version != 1) :?>
  612. <div class="tec-lis">
  613. <?php if (isset($topicIds)): ?>
  614. <?php $idx = 1; ?>
  615. <?php foreach ($topicIds as $topicId): ?>
  616. <?php if (isset($topicDetails[$topicId]) && count($topics[$topicId]["studentIds"])>0):?>
  617. <div class="little-themes-con">
  618. <?php
  619. $new_k_type_id = 1;
  620. if(isset($topicDetails[$topicId]['basic_type_id']) && $topicDetails[$topicId]['basic_type_id']){
  621. $new_k_type_id = $topicDetails[$topicId]['basic_type_id'];
  622. }else{
  623. $new_k_type_id = $topicDetails[$topicId]['type_id'];
  624. }
  625. ?>
  626. <div class="them-apecial-style clearfix">
  627. <div class="tit-img">
  628. <img src="<?php echo $imgUrl;?>/images/first-level-label.png" alt="">
  629. </div>
  630. <div class="tit-orange-bg fl">
  631. <span class="tts-msg">第<?php echo isset($newTopicNos[$topicIds[$idx - 1]]) ? $newTopicNos[$topicIds[$idx - 1]] : $this->numToUpper($idx)?>题</span>
  632. <span class="tts-msg"><?php echo isset($topicDetails[$topicId]['type_name'])?$topicDetails[$topicId]['type_name']:'';?></span>
  633. </div>
  634. <div class="tas-score-detail">
  635. <span class="tsd-lis-detail">ID:<i class="org">
  636. <?php
  637. if (isset($topicDetails[$topicId]['basic_type_id']) && substr($topicId, 0, 4) == "2015") {
  638. echo substr($topicId, 4);
  639. } else {
  640. echo $topicId;
  641. } ?></i>
  642. </span>
  643. <span class="tsd-lis-detail">班级得分率:<i class="org"><?php if (isset($groupTopics[$topicId]) && isset($topics[$topicId]['classRate'])): echo $topics[$topicId]['classRate'].'%'; endif; ?></i></span>
  644. <span class="tsd-lis-detail">年级得分率:<i class="org"><?php if (isset($gradeTopicRate[$topicId])): echo $gradeTopicRate[$topicId].'%'; endif; ?></i></span>
  645. <!--<span class="tsd-lis-detail">答对:<i class="org"><?php if (isset($topics[$topicId])): echo $topics[$topicId]['numRight']; endif; ?>人</i></span>-->
  646. <!--<span class="tsd-lis-detail">答错:<i class="org"><?php if (isset($topics[$topicId])): echo $topics[$topicId]['numWrong']; endif; ?>人</i></span>-->
  647. </div>
  648. </div>
  649. <!--答错学生-->
  650. <div class="wrong-studen-block">
  651. <?php if(isset($topics[$topicId]['rateLess70']) && isset($topics[$topicId]['rateLess70']) && $topics[$topicId]['rateLess70']):?>
  652. <div class="wrong-student">
  653. <span class="student">【答错<i><?php echo count($topics[$topicId]['rateLess70']);?></i>人 <?php echo ($new_k_type_id == 1)?'答错学生':'得分率低于70%的学生';?>】</span>
  654. <span class="font-bold">
  655. <?php echo implode('、',$topics[$topicId]['rateLess70']);?>
  656. </span>
  657. </div>
  658. <?php endif;?>
  659. </div>
  660. <?php if(isset($setting_arr['paper_wrong']) && $setting_arr['paper_wrong']):?>
  661. <!--题目-->
  662. <div class="details">
  663. <img src="<?php echo $imgUrl;?>/images/details-tab.jpg" alt="">
  664. </div>
  665. <div class="theme-detail-msg">
  666. <?php echo $topicDetails[$topicId]['title']; ?>
  667. </div>
  668. <!--选项答案-->
  669. <?php $answers = array(); ?>
  670. <?php if(isset($topicDetails[$topicId]['slave']) && $topicDetails[$topicId]['slave']):?>
  671. <!--全学科有小题的情况-->
  672. <?php foreach($topicDetails[$topicId]['slave'] as $sla_k=>$sla_v):?>
  673. <?php if(isset($sla_v->title) && $sla_v->title):?>
  674. <!--题目-->
  675. <div class="theme-detail-msg">
  676. <?php echo $sla_v->title; ?>
  677. </div>
  678. <?php endif;?>
  679. <?php if(isset($sla_v->items) && isset($sla_v->items->options) && $sla_v->items->options):?>
  680. <!--选项-->
  681. <?php if(count($sla_v->items->options)>1):?>
  682. <ul class="answer clearfix">
  683. <?php $i = 1; ?>
  684. <?php foreach($sla_v->items->options as $sla_op_k=>$sla_op_v):?>
  685. <?php if(isset($sla_v->list_type) && $sla_v->list_type):?>
  686. <?php if ($sla_v->list_type == 1): ?>
  687. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
  688. <?php elseif ($sla_v->list_type == 2): ?>
  689. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
  690. <?php else: ?>
  691. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
  692. <?php endif; ?>
  693. <?php else:?>
  694. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $sla_op_v->option_content; ?></li>
  695. <?php endif;?>
  696. <?php if ($sla_op_v->option_correct): $answers[] = $this->numToLetter($i); endif; ?>
  697. <?php $i++; ?>
  698. <?php endforeach; ?>
  699. </ul>
  700. <?php else:?>
  701. <?php foreach($sla_v->items->options as $sla_op_k=>$sla_op_v):?>
  702. <?php $answers[] = $sla_op_v->option_content; ?>
  703. <?php endforeach; ?>
  704. <?php endif;?>
  705. <?php endif;?>
  706. <?php endforeach;?>
  707. <?php else:?>
  708. <?php //$topicDetails[$topicId]['basic_type_id'] && && $topicDetails[$topicId]['type_id'] ==3 兼容多选题 ?>
  709. <?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))
  710. && isset($topicDetails[$topicId]['items']) && isset($topicDetails[$topicId]['items'][0]) && isset($topicDetails[$topicId]['items'][0]['options'])): ?>
  711. <ul class="answer clearfix">
  712. <?php $i = 1; ?>
  713. <?php foreach ($topicDetails[$topicId]['items'][0]['options'] as $option): ?>
  714. <?php if ($topicDetails[$topicId]['items'][0]['list_type'] == 1): ?>
  715. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  716. <?php elseif ($topicDetails[$topicId]['items'][0]['list_type'] == 2): ?>
  717. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  718. <?php else: ?>
  719. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  720. <?php endif; ?>
  721. <?php if ($option['option_correct']): $answers[] = $this->numToLetter($i); endif; ?>
  722. <?php $i++; ?>
  723. <?php endforeach; ?>
  724. </ul>
  725. <?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'])): ?>
  726. <?php foreach ($topicDetails[$topicId]['items'][0]['options'] as $option): ?>
  727. <?php $answers[] = $option['option_content']; ?>
  728. <?php endforeach; ?>
  729. <?php endif; ?>
  730. <?php endif;?>
  731. <!--答案解析-->
  732. <div class="answer-explain-detail clearfix">
  733. <?php if ($answers): ?>
  734. <div class="fl aed-answer-msg"><span>【答案】</span><?php foreach ($answers as $answers): ?><?php echo $answers; ?> <?php endforeach; ?></div>
  735. <?php endif; ?>
  736. <div class="fl aed-answer-explain">
  737. <span>【解析】</span>
  738. <?php echo $topicDetails[$topicId]['parse_content']; ?>
  739. </div>
  740. </div>
  741. <!--同学优解名师指点-->
  742. <?php if(isset($excellent_solution) && $excellent_solution && isset($excellent_solution[$topicId]) && $excellent_solution[$topicId] && isset($setting_arr['classmateOptimization']) && $setting_arr['classmateOptimization']):?>
  743. <div class="classmate-optimization clearfix">
  744. <div class="classmate-left">
  745. <div class="classmate-info">
  746. <span class="classmate-title">【同学优解】</span>
  747. <!-- <span>本题无优解</span> -->
  748. <span class=""><?php echo isset($excellent_solution[$topicId]['class_name'])?$excellent_solution[$topicId]['class_name']:"";?></span>
  749. <span class=""><?php echo isset($excellent_solution[$topicId]['student_name'])?$excellent_solution[$topicId]['student_name']:"";?></span>
  750. </div>
  751. <div>
  752. <img src="<?php echo isset($excellent_solution[$topicId]['answer_url'])?$excellent_solution[$topicId]['answer_url']:"";?>" alt="" />
  753. </div>
  754. </div>
  755. <?php if ($topicDetails[$topicId]['teacher_tips']): ?>
  756. <div class="classmate-right">
  757. <div class="guide-wrap">
  758. <div class="guide">
  759. <div class="guide-lable">
  760. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  761. <div class="fontBold guide-lable-txt">名师指点</div>
  762. </div>
  763. <p class="font10">
  764. <?php echo $topicDetails[$topicId]['teacher_tips']; ?>
  765. </p>
  766. </div>
  767. </div>
  768. </div>
  769. <?php endif;?>
  770. </div>
  771. <?php else:?>
  772. <?php if(in_array($topicDetails[$topicId]['type_id'],array(7,17,27)) || ($is_qxk && in_array($topicDetails[$topicId]['type_id'], array(8,9)))):?>
  773. <div>本题无优解</div>
  774. <?php endif;?>
  775. <?php if ($topicDetails[$topicId]['teacher_tips']): ?>
  776. <div class="guide-wrap">
  777. <div class="guide">
  778. <div class="guide-lable">
  779. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  780. <div class="fontBold guide-lable-txt">名师指点</div>
  781. </div>
  782. <p class="font10">
  783. <?php echo $topicDetails[$topicId]['teacher_tips']; ?>
  784. </p>
  785. </div>
  786. </div>
  787. <?php endif;?>
  788. <?php endif;?>
  789. <?php endif;?>
  790. <!--案例题-->
  791. <?php // if (isset($fcCallbacks) && isset($fcCallbacks[$topicId]) && isset($topicDetails[$fcCallbacks[$topicId]])): ?>
  792. <?php if (isset($fcCallbacks) && isset($fcCallbacks[$topicId])): ?>
  793. <?php $newFcCallbacks = $fcCallbacks[$topicId];?>
  794. <?php foreach($newFcCallbacks as $exTopicId):?>
  795. <?php if(isset($topicDetails[$exTopicId])):?>
  796. <?php $fcCallbacks[$topicId] = $exTopicId;?>
  797. <div class="ltc-case-con clearfix">
  798. <div class="lcc-case-detail">
  799. <div class="train">
  800. <img src="<?php echo $imgUrl;?>/images/Variation-training.jpg" alt="">
  801. </div>
  802. <div class="theme-detail-msg">
  803. <span class="org">【
  804. <?php
  805. if (isset($topicDetails[$fcCallbacks[$topicId]]['basic_type_id']) && substr($topicDetails[$fcCallbacks[$topicId]]['id'], 0, 4) == "2015") {
  806. echo substr($topicDetails[$fcCallbacks[$topicId]]['id'], 4);
  807. } else {
  808. echo $topicDetails[$fcCallbacks[$topicId]]['id'];
  809. }
  810. ?>
  811. 】</span>
  812. <?php echo $topicDetails[$fcCallbacks[$topicId]]['title']; ?>
  813. </div>
  814. <?php $fcAnswers = array(); ?>
  815. <?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)
  816. || (isset($topicDetails[$fcCallbacks[$topicId]]['basic_type_id']) && $topicDetails[$fcCallbacks[$topicId]]['basic_type_id'] ==3)
  817. )
  818. && isset($topicDetails[$fcCallbacks[$topicId]]['items']) && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0])
  819. && isset($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'])): ?>
  820. <ul class="answer clearfix">
  821. <?php $i = 1; ?>
  822. <?php foreach ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'] as $option): ?>
  823. <?php if ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['list_type'] == 1): ?>
  824. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  825. <?php elseif ($topicDetails[$topicId]['items'][0]['list_type'] == 2): ?>
  826. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  827. <?php else: ?>
  828. <li class="fl"><?php echo $this->numToLetter($i); ?>.<?php echo $option['option_content']; ?></li>
  829. <?php endif; ?>
  830. <?php if ($option['option_correct']): $fcAnswers[] = $this->numToLetter($i); endif; ?>
  831. <?php $i++; ?>
  832. <?php endforeach; ?>
  833. </ul>
  834. <?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'])): ?>
  835. <?php foreach ($topicDetails[$fcCallbacks[$topicId]]['items'][0]['options'] as $option): ?>
  836. <?php $fcAnswers[] = $option['option_content']; ?>
  837. <?php endforeach; ?>
  838. <?php endif; ?>
  839. </div>
  840. </div>
  841. <div class="ltc-case-answer">
  842. <div class="ans"><span>【答案】</span><?php foreach ($fcAnswers as $fcAnswer): ?><?php echo $fcAnswer; ?> <?php endforeach; ?></div>
  843. <div class="ans-txt">
  844. <span>【解析】</span><?php echo $topicDetails[$fcCallbacks[$topicId]]['parse_content']; ?>
  845. </div>
  846. </div>
  847. <?php endif;?>
  848. <?php endforeach;?>
  849. <?php endif; ?>
  850. </div>
  851. <?php endif; ?>
  852. <?php $idx++; ?>
  853. <?php endforeach; ?>
  854. <?php endif; ?>
  855. </div>
  856. <?php elseif ($wb_isp_version == 1):?>
  857. <div class="tec-lis">
  858. <?php $index = 0; ?>
  859. <?php foreach ($template_topic_arr as $template_id => $level_topic) : $index += 1; $topic_detail = $topic_details[$template_id]?>
  860. <div class="little-themes-con">
  861. <div class="them-apecial-style clearfix">
  862. <!--<div class="fontBold topic-order fl">第<?php // echo $topic_no_arr[$template_id];?>题</div>【<?php // echo $template_id ?>】-->
  863. <div class="tit-orange-bg fl">
  864. <span class="tts-msg">第<?php echo $topic_no_arr[$template_id];?>题</span>
  865. <span class="tts-msg"><?php echo isset($topic_detail['type_name'])?$topic_detail['type_name']:'';?></span>
  866. </div>
  867. <div class="tas-score-detail">
  868. <span class="tsd-lis-detail">ID:<i class="org">
  869. <?php
  870. if(isset($topic_detail[$template_id]['basic_type_id']) && substr($template_id,0,4) =="2015" ){
  871. echo substr($template_id,4);
  872. }else{
  873. echo $template_id;
  874. }
  875. ?>
  876. </i></span>
  877. <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>
  878. <span class="tsd-lis-detail">年级得分率:<i class="org"><?php if (isset($gradeTopicRate[$template_id])): echo $gradeTopicRate[$template_id].'%'; endif; ?></i></span>
  879. <span class="tsd-lis-detail">答对:<i class="org"><?php if (isset($topics[$template_id])): echo $topics[$template_id]['numRight']; endif; ?>人</i></span>
  880. <span class="tsd-lis-detail">答错:<i class="org"><?php if (isset($topics[$template_id])): echo $topics[$template_id]['numWrong']; endif; ?>人</i></span>
  881. </div>
  882. </div>
  883. <!--答错人数-->
  884. <?php if(isset($topics[$template_id]['rateLess70']) && isset($topics[$template_id]['rateLess70']) && $topics[$template_id]['rateLess70']):?>
  885. <div class="wrong-studen-block">
  886. <div class="wrong-student">
  887. <div class="wrong-lable">
  888. <img
  889. class="wrong-lable-icon"
  890. src="<?php echo $imgUrl;?>/images/wrong_student.png"
  891. alt=""
  892. />
  893. <div class="fontBold wrong-lable-txt"><?php echo ($topic_detail['type'] == 1)?'答错学生:':'得分率低于70%的学生:';?></div>
  894. </div>
  895. <p class="font-bold">
  896. <?php echo implode('、',$topics[$template_id]['rateLess70']);?>
  897. </p>
  898. </div>
  899. </div>
  900. <?php endif;?>
  901. <?php if(isset($setting_arr['paper_wrong']) && $setting_arr['paper_wrong']):?>
  902. <div class="theme-answer-cons <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
  903. <div class="theme-detail-msg <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
  904. <?php echo $topic_detail['queBody'];?>
  905. </div>
  906. <?php if ($topic_detail['options']):?>
  907. <ul class="answer clearfix <?php if ($topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
  908. <?php echo $topic_detail['options'];?>
  909. </ul>
  910. <?php endif;?>
  911. <?php if ($topic_detail['parse_video_qrcode']):?>
  912. <img src="data:image/png;base64,<?php echo $topic_detail['parse_video_qrcode']; ?>" alt="" class="sweep-icon">
  913. <?php endif;?>
  914. </div>
  915. <!--答案解析-->
  916. <div class="answer-explain-detail clearfix">
  917. <div class="fl aed-answer-msg"><span>【答案】</span><?php echo $topic_detail['answer']; ?></div>
  918. <div class="fl aed-answer-explain">
  919. <span>【解析】</span>
  920. <?php echo $topic_detail['analysis'];?>
  921. </div>
  922. </div>
  923. <!--同学优解名师指点-->
  924. <?php if(isset($excellent_solution) && $excellent_solution && isset($excellent_solution[$template_id]) && $excellent_solution[$template_id]):?>
  925. <div class="classmate-optimization clearfix">
  926. <div class="classmate-left">
  927. <div class="classmate-info">
  928. <span class="classmate-title">【同学优解】</span>
  929. <!-- <span>本题无优解</span> -->
  930. <span class=""><?php echo isset($excellent_solution[$template_id]['class_name'])?$excellent_solution[$template_id]['class_name']:"";?></span>
  931. <span class=""><?php echo isset($excellent_solution[$template_id]['student_name'])?$excellent_solution[$template_id]['student_name']:"";?></span>
  932. </div>
  933. <div>
  934. <img src="<?php echo isset($excellent_solution[$template_id]['answer_url'])?$excellent_solution[$template_id]['answer_url']:"";?>" alt="" />
  935. </div>
  936. </div>
  937. <?php if ($topic_detail['teacher_tips']): ?>
  938. <div class="classmate-right">
  939. <div class="guide-wrap">
  940. <div class="guide">
  941. <div class="guide-lable">
  942. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  943. <div class="fontBold guide-lable-txt">名师指点</div>
  944. </div>
  945. <p class="font10">
  946. <?php echo $topic_detail['teacher_tips']; ?>
  947. </p>
  948. </div>
  949. </div>
  950. </div>
  951. <?php endif;?>
  952. </div>
  953. <?php else:?>
  954. <?php if(in_array($topic_detail['type'],array(7,17,27)) || ($is_qxk && in_array($topic_detail['type'], array(8,9)))):?>
  955. <div>本题无优解</div>
  956. <?php endif;?>
  957. <?php if ($topic_detail['teacher_tips']): ?>
  958. <div class="guide-wrap">
  959. <div class="guide">
  960. <div class="guide-lable">
  961. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  962. <div class="fontBold guide-lable-txt">名师指点</div>
  963. </div>
  964. <p class="font10">
  965. <?php echo $topic_detail['teacher_tips']; ?>
  966. </p>
  967. </div>
  968. </div>
  969. <?php endif;?>
  970. <?php endif;?>
  971. <?php endif;?>
  972. <div class="student-level-question">
  973. <?php foreach ($level_topic as $level => $topic_id): $level_topic_detail = $topic_details[$topic_id]; ?>
  974. <div class="slq-list">
  975. <div class="them-apecial-style clearfix">
  976. <div class="theme-answer-cons <?php if ($level_topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
  977. <?php // if($level_rule != 1):?>
  978. <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>
  979. <?php // endif;?>
  980. <div class="tas-score-detail no-border <?php if ($level_topic_detail['parse_video_qrcode']) echo 'has-ma'?>">
  981. <span>【<?php
  982. if(isset($level_topic_detail['basic_type_id']) && substr($topic_id,0,4) =="2015" ){//如果存在basic_type_id就是全学科的题目
  983. echo substr($topic_id,4);
  984. }else{
  985. echo $topic_id;
  986. }
  987. ?>】</span>
  988. <span><?php echo $level_topic_detail['queBody'];?></span>
  989. </div>
  990. <?php if ($level_topic_detail['options']):?>
  991. <ul class="slq-answer answer clearfix">
  992. <?php echo $level_topic_detail['options']; ?>
  993. </ul>
  994. <?php endif; ?>
  995. </div>
  996. <!--答案解析-->
  997. <div class="answer-explain-detail clearfix">
  998. <div class="fl aed-answer-msg"><span>【答案】</span><?php echo $level_topic_detail['answer']; ?></div>
  999. <div class="fl aed-answer-explain">
  1000. <span>【解析】</span>
  1001. <?php echo $level_topic_detail['analysis'];?>
  1002. </div>
  1003. </div>
  1004. <?php if ($level_topic_detail['parse_video_qrcode']):?>
  1005. <img src="data:image/png;base64,<?php echo $level_topic_detail['parse_video_qrcode']; ?>" alt="" class="sweep-icon">
  1006. <?php endif;?>
  1007. </div>
  1008. </div>
  1009. <?php endforeach;?>
  1010. </div>
  1011. </div>
  1012. <?php endforeach;?>
  1013. </div>
  1014. <?php endif; ?>
  1015. <?php endif;?>
  1016. <?php if(isset($gaokao_topic) && $gaokao_topic && isset($setting_arr['real_topic']) && $setting_arr['real_topic']):?>
  1017. <h2 class="part-title">第<?php echo numToUpper($part_no++);?>部分:真题速递</h2>
  1018. <div class="guide-wrap proposal">
  1019. <div class="guide">
  1020. <div class="guide-lable">
  1021. <img class="guide-lable-icon" src="<?php echo $imgUrl;?>/images/teacher.png" alt="" />
  1022. <div class="fontBold guide-lable-txt">讲评建议</div>
  1023. </div>
  1024. <p class="font10">
  1025. 根据<?php echo $className;?>的典型薄弱考点<?php echo isset($gen_origin_methods)?$gen_origin_methods:'';?>,精准匹配最适合本班的2道高考真题,助您讲解巩固!
  1026. </p>
  1027. </div>
  1028. </div>
  1029. <?php foreach($gaokao_topic as $k=>$v):?>
  1030. <div class="tec-lis">
  1031. <div class="little-themes-con">
  1032. <div class="ltc-case-con clearfix">
  1033. <div class="lcc-case-detail">
  1034. <div class="lcc-tit-msg">
  1035. <div class="type-title">【来源:<?php echo $v['source'];?>】考点:<?php echo $v['methods'];?></div>
  1036. </div>
  1037. <div class="theme-detail-msg">
  1038. <span class="org">【<?php echo $k;?>】</span>
  1039. <?php echo $v['queBody'];?>
  1040. </div>
  1041. <?php if($v['type'] == 1 || $v['type'] == 2):?>
  1042. <ul class="answer clearfix">
  1043. <?php echo isset($v['options'])?$v['options']:'';?>
  1044. </ul>
  1045. <?php endif;?>
  1046. </div>
  1047. </div>
  1048. <div class="ltc-case-answer">
  1049. <div class="ans"><span>【答案】</span><?php echo $v['answer'];?></div>
  1050. <div class="ans-txt">
  1051. <span>【解析】</span><?php echo $v['analysis'];?>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </div>
  1056. <?php endforeach;?>
  1057. <?php endif;?>
  1058. </div>
  1059. <script>
  1060. window.onload = function() {
  1061. var optionUl = document.getElementsByClassName('answer');
  1062. for (var i = 0; i < optionUl.length; i++) {
  1063. arrayFunction(optionUl[i])
  1064. }
  1065. function arrayFunction(option) {
  1066. // 选项结构宽度
  1067. var optionUlWidth = option.clientWidth
  1068. // 选项宽度数组
  1069. var optionWidthArr = []
  1070. // 选项高度数组
  1071. var optionHeightArr = []
  1072. // 每个选项
  1073. var optionLi = option.children;
  1074. for (var i = 0; i < optionLi.length; i++) {
  1075. optionWidthArr.push(optionLi[i].clientWidth)
  1076. optionHeightArr.push(optionLi[i].clientHeight)
  1077. }
  1078. // 最大选项宽度
  1079. var maxOptionWidth = optionWidthArr[0]
  1080. for (var i = 0; i < optionWidthArr.length; i++) {
  1081. if (optionWidthArr[i] > maxOptionWidth) {
  1082. maxOptionWidth = optionWidthArr[i]
  1083. }
  1084. }
  1085. // 最大选项高度
  1086. var maxOptionHeight = optionHeightArr[0]
  1087. for (var i = 0; i < optionHeightArr.length; i++) {
  1088. if (optionHeightArr[i] > maxOptionHeight) {
  1089. maxOptionHeight = optionHeightArr[i]
  1090. }
  1091. }
  1092. if (optionLi.length > 1) {
  1093. // 如果第一个选项高度大于第二个选项高度 给第二个选项设置高度 使第二个选项高度和第一个选项高度一样
  1094. if (optionLi[0].clientHeight > optionLi[1].clientHeight) {
  1095. optionLi[1].style.height = optionLi[0].clientHeight + 'px'
  1096. }
  1097. var optionWidth = null
  1098. if (optionUlWidth / maxOptionWidth > 4) {
  1099. // 一行四个
  1100. optionWidth = Math.floor(optionUlWidth / 4)
  1101. } else if (optionUlWidth / maxOptionWidth > 2) {
  1102. // 一行两个
  1103. optionWidth = Math.floor(optionUlWidth / 2)
  1104. } else {
  1105. // 一行一个
  1106. optionWidth = Math.floor(optionUlWidth);
  1107. // 当一行一个排列时 取消第二个选项的高度设置
  1108. optionLi[1].style.height = 'auto'
  1109. }
  1110. }
  1111. for (var i = 0; i < optionLi.length; i++) {
  1112. optionLi[i].style.width = optionWidth + 'px'
  1113. // 给每个选项设置一样的高度
  1114. optionLi[i].style.height = maxOptionHeight + 'px'
  1115. }
  1116. }
  1117. }
  1118. </script>
  1119. </body>
  1120. </html>