en_topic.php 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <?php switch ($topicType):case 1:?><!--单项填空-->
  2. <div class="singleFillIn">
  3. <?php include('topic_count.php');?>
  4. <div class="subjectModule">
  5. <div class="subjectItem">
  6. <h3><?php echo $topicInfo['title'];?></h3>
  7. <?php $anwser = '';?>
  8. <?php if(isset($topicInfo['slave']) && $topicInfo['slave']):?>
  9. <?php foreach ($topicInfo['slave'] as $slave):?>
  10. <?php if(isset($slave['items'])&& isset($slave['items']['options']) &&$slave['items']['options']):?>
  11. <ul class="answers col-1 clearfix">
  12. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  13. <li><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <?php echo $option['option_content'];?></li>
  14. <?php if($option['option_correct'] == 1) $anwser = isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
  15. <?php endforeach;?>
  16. </ul>
  17. <?php endif;?>
  18. <?php endforeach;?>
  19. <?php endif;?>
  20. <div class="standardAnswerContent">
  21. <div class="answerItem">
  22. <div class="answerTitle">
  23. <i class="answerTag">【答案】</i>
  24. <div>
  25. <span class="key"><?php echo $anwser;?></span>
  26. <?php if(isset($topicRateStu['choice_topic_wrong']) && isset($topicRateStu['choice_topic_wrong'][$topicId])):?>
  27. <?php
  28. arsort($topicRateStu['choice_topic_wrong'][$topicId]);
  29. $_str = '';
  30. foreach ($topicRateStu['choice_topic_wrong'][$topicId] as $k => $v) {
  31. $_str .= $k.'('.$v.'),';
  32. }
  33. $_str = rtrim($_str, ',');
  34. ?>
  35. <strong class="fl act">选错情况及人数:<?php echo $_str;?></strong>
  36. <?php endif;?>
  37. </div>
  38. </div>
  39. <div class="answerContent">
  40. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <?php break;?>
  48. <!--完形填空-->
  49. <?php case 2:?>
  50. <div class="clozeTest">
  51. <?php include('topic_count.php');?>
  52. <div class="clozeItem">
  53. <p class="title">请认真阅读下面短文,从短文后各题所给的A、B、C、D四个选项中,选出最佳选项,并在答题卡上将该项涂黑。</p>
  54. <div class="paragraph"><?php echo $topicInfo['title'];?></div>
  55. </div>
  56. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  57. <div class="clozeAnswer">
  58. <ul>
  59. <?php foreach ($topicInfo['slave'] as $slave):?>
  60. <li class="clearfix">
  61. <b><?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>. <?php echo $slave['title'];?></b>
  62. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  63. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  64. <span><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <?php echo strip_tags($option['option_content']);?></span>
  65. <?php endforeach;?>
  66. <?php endif;?>
  67. </li>
  68. <?php endforeach;?>
  69. </ul>
  70. </div>
  71. <?php endif;?>
  72. <div class="standardAnswerContent">
  73. <div class="answerItem">
  74. <div class="answerTitle">
  75. <i class="answerTag">【答案】</i>
  76. <div>
  77. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  78. <?php foreach ($topicInfo['slave'] as $slave):?>
  79. <span class="key">
  80. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  81. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  82. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  83. <?php if($option['option_correct'] == 1):?>
  84. <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
  85. <?php endif;?>
  86. <?php endforeach;?>
  87. <?php endif;?>
  88. </span>
  89. <?php endforeach;?>
  90. <?php endif;?>
  91. </div>
  92. </div>
  93. <div class="answerContent">
  94. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <?php break?>
  100. <!--阅读理解-->
  101. <?php case 3:?>
  102. <div class="readUnderstand">
  103. <?php include('topic_count.php');?>
  104. <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
  105. <div class="readUnderstandItem">
  106. <?php echo $topicInfo['title'];?>
  107. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  108. <div class="subjectModule">
  109. <?php foreach ($topicInfo['slave'] as $slave):?>
  110. <?php $readingWrongStu = isset($topicRateStu['reading_wrong_stu'][(string)$slave['topic_slave_id']]) ? $topicRateStu['reading_wrong_stu'][(string)$slave['topic_slave_id']] : array();?>
  111. <div class="subjectItem">
  112. <h3><?php echo isset($smallTopicNo[(string)$slave['topic_slave_id']])?$smallTopicNo[(string)$slave['topic_slave_id']]:'';?>. <?php echo strip_tags($slave['title']);?></h3>
  113. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  114. <ul class="answers col-1 clearfix reading">
  115. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  116. <li><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <p><?php echo $option['option_content'];?></p></li>
  117. <?php if($readingWrongStu && isset($readingWrongStu[$optionArr[$oKey]]) && $readingWrongStu[$optionArr[$oKey]]){?>
  118. <li>【学生名单】<?php echo $readingWrongStu[$optionArr[$oKey]];?></li>
  119. <?php }?>
  120. <?php endforeach;?>
  121. </ul>
  122. <?php endif;?>
  123. </div>
  124. <?php endforeach;?>
  125. </div>
  126. <?php endif;?>
  127. </div>
  128. <div class="standardAnswerContent">
  129. <div class="answerItem">
  130. <div class="answerTitle">
  131. <i class="answerTag">【答案】</i>
  132. <div>
  133. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  134. <?php foreach ($topicInfo['slave'] as $slave):?>
  135. <span class="key">
  136. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  137. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  138. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  139. <?php if($option['option_correct'] == 1):?>
  140. <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
  141. <?php endif;?>
  142. <?php endforeach;?>
  143. <?php endif;?>
  144. </span>
  145. <?php endforeach;?>
  146. <?php endif;?>
  147. </div>
  148. </div>
  149. <div class="answerContent">
  150. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <?php break?>
  156. <!--任务型阅读-->
  157. <?php case 4:?>
  158. <div class="readUnderstand">
  159. <?php include('topic_count.php');?>
  160. <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
  161. <div class="readUnderstandItem">
  162. <?php echo $topicInfo['title'];?>
  163. </div>
  164. <div class="standardAnswerContent">
  165. <div class="answerItem">
  166. <div class="answerTitle">
  167. <i class="answerTag">【答案】</i>
  168. <div class="col-2">
  169. <?php foreach ($topicInfo['slave'] as $slave):?>
  170. <span class="key">
  171. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  172. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  173. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  174. <?php echo $option['option_content'];?>
  175. <?php endforeach;?>
  176. <?php endif;?>
  177. </span>
  178. <?php endforeach;?>
  179. </div>
  180. </div>
  181. <div class="answerContent">
  182. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <?php break?>
  188. <!--七选五-->
  189. <?php case 5:?>
  190. <div class="readUnderstand">
  191. <?php include('topic_count.php');?>
  192. <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
  193. <div class="readUnderstandItem">
  194. <?php echo $topicInfo['title'];?>
  195. </div>
  196. <div class="standardAnswerContent">
  197. <div class="answerItem">
  198. <div class="answerTitle">
  199. <i class="answerTag">【答案】</i>
  200. <div>
  201. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  202. <?php foreach ($topicInfo['slave'] as $slave):?>
  203. <span class="key">
  204. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  205. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  206. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  207. <?php echo $option['option_content'];?>
  208. <?php endforeach;?>
  209. <?php endif;?>
  210. </span>
  211. <?php endforeach;?>
  212. <?php endif;?>
  213. </div>
  214. </div>
  215. <div class="answerContent">
  216. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  217. </div>
  218. </div>
  219. </div>
  220. </div>
  221. <?php break?>
  222. <!--语法填空-->
  223. <?php case 6:?>
  224. <div class="textFillIn">
  225. <?php include('topic_count.php');?>
  226. <div class="textItem">
  227. <?php echo $topicInfo['title'];?>
  228. </div>
  229. <div class="standardAnswerContent">
  230. <div class="answerItem">
  231. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  232. <div class="answerTitle">
  233. <i class="answerTag">【答案】</i>
  234. <div class="col-2">
  235. <?php foreach ($topicInfo['slave'] as $slave):?>
  236. <span class="key">
  237. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  238. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  239. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  240. <?php echo $option['option_content'];?>
  241. <?php endforeach;?>
  242. <?php endif;?>
  243. </span>
  244. <?php endforeach;?>
  245. </div>
  246. </div>
  247. <?php endif;?>
  248. <div class="answerContent">
  249. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <?php break?>
  255. <!--短文改错-->
  256. <?php case 7:?>
  257. <div class="errorCorrection">
  258. <?php include('topic_count.php');?>
  259. <div class="errorCorrectionItem">
  260. <?php echo $topicInfo['title'];?>
  261. </div>
  262. <div class="standardAnswerContent">
  263. <div class="answerItem">
  264. <div class="answerTitle">
  265. <i class="answerTag">【答案】</i>
  266. </div>
  267. <div class="paragraph">
  268. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  269. <?php foreach ($topicInfo['slave'] as $slave):?>
  270. <span class="key">
  271. <!-- --><?php //echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?><!--.-->
  272. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  273. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  274. <?php echo $option['option_content'];?>
  275. <?php endforeach;?>
  276. <?php endif;?>
  277. </span>
  278. <?php endforeach;?>
  279. <?php endif;?>
  280. </div>
  281. <div class="answerContent">
  282. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  283. </div>
  284. </div>
  285. </div>
  286. </div>
  287. <?php break?>
  288. <!--单词拼写-->
  289. <?php case 8:?>
  290. <div class="wordWrite">
  291. <?php include('topic_count.php');?>
  292. <div class="wordWriteList">
  293. <div class="wordWriteItem">
  294. <p class="subject"><?php echo $topicInfo['title'];?></p>
  295. <div class="standardAnswerContent">
  296. <div class="answerItem">
  297. <div class="answerTitle">
  298. <i class="answerTag">【答案】</i>
  299. <p>
  300. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  301. <?php foreach ($topicInfo['slave'] as $slave):?>
  302. <span class="key">
  303. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  304. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  305. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  306. <?php echo $option['option_content'];?>
  307. <?php endforeach;?>
  308. <?php endif;?>
  309. </span>
  310. <?php endforeach;?>
  311. <?php endif;?>
  312. </p>
  313. </div>
  314. <div class="answerContent">
  315. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. </div>
  322. <?php break?>
  323. <!--选词填空-->
  324. <?php case 9:?>
  325. <div class="selectWordFillIn">
  326. <?php include('topic_count.php');?>
  327. <div class="selectWordItem">
  328. <!-- <div class="canSelWord clearfix">-->
  329. <!-- <span>A.wodk</span>-->
  330. <!-- <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span>-->
  331. <!-- <span>A.wodk</span>-->
  332. <!-- <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span>-->
  333. <!-- </div>-->
  334. <div class="paragraph"><?php echo $topicInfo['title'];?></div>
  335. </div>
  336. <div class="standardAnswerContent">
  337. <div class="answerItem">
  338. <div class="answerTitle">
  339. <i class="answerTag">【答案】</i>
  340. <div>
  341. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  342. <?php foreach ($topicInfo['slave'] as $slave):?>
  343. <span class="key">
  344. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  345. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  346. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  347. <?php echo $option['option_content'];?>
  348. <?php endforeach;?>
  349. <?php endif;?>
  350. </span>
  351. <?php endforeach;?>
  352. <?php endif;?>
  353. </div>
  354. </div>
  355. <div class="answerContent">
  356. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  357. </div>
  358. </div>
  359. </div>
  360. </div>
  361. <?php break?>
  362. <!--课文填空-->
  363. <?php case 10:?>
  364. <div class="textFillIn">
  365. <?php include('topic_count.php');?>
  366. <div class="textItem">
  367. <?php echo $topicInfo['title'];?>
  368. </div>
  369. <div class="standardAnswerContent">
  370. <div class="answerItem">
  371. <div class="answerTitle">
  372. <i class="answerTag">【答案】</i>
  373. <div class="col-2">
  374. <?php foreach ($topicInfo['slave'] as $slave):?>
  375. <span class="key">
  376. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  377. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  378. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  379. <?php echo $option['option_content'];?>
  380. <?php endforeach;?>
  381. <?php endif;?>
  382. </span>
  383. <?php endforeach;?>
  384. </div>
  385. </div>
  386. <div class="answerContent">
  387. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  388. </div>
  389. </div>
  390. </div>
  391. </div>
  392. <?php break?>
  393. <!--句子翻译-->
  394. <?php case 11:?>
  395. <div class="translate">
  396. <?php include('topic_count.php');?>
  397. <div class="translateList">
  398. <div class="translateItem">
  399. <p><?php echo $topicInfo['title'];?></p>
  400. <div class="standardAnswerContent">
  401. <div class="answerItem">
  402. <div class="answerTitle">
  403. <i class="answerTag">【答案】</i>
  404. <div>
  405. <?php foreach ($topicInfo['slave'] as $slave):?>
  406. <span class="key">
  407. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  408. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  409. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  410. <?php echo $option['option_content'];?>
  411. <?php endforeach;?>
  412. <?php endif;?>
  413. </span>
  414. <?php endforeach;?>
  415. </div>
  416. </div>
  417. <div class="answerContent">
  418. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  419. </div>
  420. </div>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <?php break?>
  426. <!--完成句子-->
  427. <?php case 12:?>
  428. <div class="completeSentence">
  429. <?php include('topic_count.php');?>
  430. <div class="sentenceList">
  431. <?php echo $topicInfo['title'];?>
  432. </div>
  433. <div class="standardAnswerContent">
  434. <div class="answerItem">
  435. <div class="answerTitle">
  436. <i class="answerTag">【答案】</i>
  437. <div class="col-1">
  438. <?php foreach ($topicInfo['slave'] as $slave):?>
  439. <span class="key">
  440. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  441. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  442. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  443. <?php echo $option['option_content'];?>
  444. <?php endforeach;?>
  445. <?php endif;?>
  446. </span>
  447. <?php endforeach;?>
  448. </div>
  449. </div>
  450. <div class="answerContent">
  451. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. <?php break?>
  457. <!--书面表达-->
  458. <?php case 13:?>
  459. <div class="writtenExpression">
  460. <?php include('topic_count.php');?>
  461. <div class="tips">
  462. <?php echo $topicInfo['title'];?>
  463. </div>
  464. <div class="articalArea">
  465. _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
  466. </div>
  467. <div class="standardAnswerContent">
  468. <div class="answerItem">
  469. <div class="answerTitle">
  470. <i class="answerTag">【答案】</i>
  471. </div>
  472. <div class="writtenAnswer">
  473. <span class="key"><?php echo isset($topicInfo['answer'])?$topicInfo['answer']:'';?></span>
  474. </div>
  475. <div class="answerContent">
  476. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  477. </div>
  478. </div>
  479. </div>
  480. <!-- 作文解析 -->
  481. <?php include('en_article.php');?>
  482. </div>
  483. <?php break?>
  484. <!--阅读表达-->
  485. <?php case 14:?>
  486. <div class="readExpression">
  487. <?php include('topic_count.php');?>
  488. <div class="readExpressionIem">
  489. <?php echo $topicInfo['title'];?>
  490. </div>
  491. <div class="small-question">
  492. <?php foreach ($topicInfo['slave'] as $slave): ?>
  493. <div class="question-item">
  494. <?php echo isset($smallTopicNo[$slave['topic_slave_id']]) ? $smallTopicNo[$slave['topic_slave_id']] . '.' : ''; ?>
  495. <?php if (isset($slave['title']) && $slave['title']): ?>
  496. <?php echo $slave['title']; ?>
  497. <?php endif; ?>
  498. </div>
  499. <?php endforeach; ?>
  500. </div>
  501. <div class="standardAnswerContent">
  502. <div class="answerItem">
  503. <div class="answerTitle">
  504. <i class="answerTag">【答案】</i>
  505. <div class="col-1">
  506. <?php foreach ($topicInfo['slave'] as $slave):?>
  507. <span class="key">
  508. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  509. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  510. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  511. <?php echo $option['option_content'];?>
  512. <?php endforeach;?>
  513. <?php endif;?>
  514. </span>
  515. <?php endforeach;?>
  516. </div>
  517. </div>
  518. <div class="answerContent">
  519. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. <?php break?>
  525. <!--考试听力-->
  526. <?php case 15:?>
  527. <?php $letter_arr = array('A', 'B', 'C', 'D', 'E');?>
  528. <div class="hearingModule">
  529. <?php include('topic_count.php');?>
  530. <div class="subjectModule">
  531. <?php echo $topicInfo['title'];?>
  532. </div>
  533. <div class="standardAnswerContent">
  534. <div class="answerItem">
  535. <div class="answerTitle">
  536. <i class="answerTag">【答案】</i>
  537. <div>
  538. <?php if(isset($topicInfo['slave']) && $topicInfo['slave']):?>
  539. <?php foreach ($topicInfo['slave'] as $slave):?>
  540. <span class="key">
  541. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  542. <?php
  543. $option_asr = '';
  544. if (isset($slave['items']) && $slave['items']) {
  545. if (isset($slave['items']['options_answer']) && $slave['items']['options_answer']) {
  546. $option_asr = $slave['items']['options_answer'];
  547. }elseif (isset($slave['items']['options']) && $slave['items']['options']) {
  548. foreach ($slave['items']['options'] as $op_key => $option) {
  549. if ($option['option_correct']) {
  550. $option_asr = isset($letter_arr[$op_key]) ? $letter_arr[$op_key] : '';
  551. break;
  552. }
  553. }
  554. }
  555. }
  556. echo $option_asr;
  557. ?>
  558. </span>
  559. <?php endforeach;?>
  560. <?php endif;?>
  561. </div>
  562. </div>
  563. <div class="answerContent">
  564. <p><i class="analysisTag">【解析】</i></p>
  565. <div class="paragraphs">
  566. <p><?php echo isset($topicInfo['parse_content']) && $topicInfo['parse_content']?$topicInfo['parse_content']:'略';?></p>
  567. </div>
  568. </div>
  569. </div>
  570. </div>
  571. </div>
  572. <?php break?>
  573. <!--应用文写作-->
  574. <?php case 16:?>
  575. <!-- --><?php //break?>
  576. <!--读后续写-->
  577. <?php case 17:?>
  578. <div class="continueAfterRead">
  579. <?php include('topic_count.php');?>
  580. <div class="continueItem">
  581. <?php echo $topicInfo['title'];?>
  582. </div>
  583. <div class="standardAnswerContent">
  584. <div class="answerItem">
  585. <div class="answerTitle">
  586. <i class="answerTag">【答案】</i>
  587. </div>
  588. <div class="continueAnswer">
  589. <p class="col-1">
  590. <?php foreach ($topicInfo['slave'] as $slave):?>
  591. <span class="key">
  592. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  593. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  594. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  595. <?php echo $option['option_content'];?>
  596. <?php endforeach;?>
  597. <?php endif;?>
  598. </span>
  599. <?php endforeach;?>
  600. </p>
  601. </div>
  602. <div class="answerContent">
  603. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  604. </div>
  605. </div>
  606. </div>
  607. </div>
  608. <?php break?>
  609. <!--单句改错-->
  610. <?php case 18:?>
  611. <div class="sentenceError">
  612. <?php include('topic_count.php');?>
  613. <div class="errorList">
  614. <div class="errorItem">
  615. <p><?php echo $topicInfo['title'];?></p>
  616. <div class="standardAnswerContent">
  617. <div class="answerItem">
  618. <div class="answerTitle">
  619. <i class="answerTag">【答案】</i>
  620. <div>
  621. <span class="key">
  622. <?php
  623. $option_cont = isset($topicInfo['slave'])&&isset($topicInfo['slave']['items'])&&isset($topicInfo['slave']['items']['options']) && $topicInfo['slave']['items']['options']?$topicInfo['slave']['items']['options']['option_content']:'';
  624. if (!$option_cont) {
  625. $option_cont = isset($topicInfo['items']) && isset($topicInfo['items'][0]) && isset($topicInfo['items'][0]['options']) && isset($topicInfo['items'][0]['options'][0]) && $topicInfo['items'][0]['options'][0] ? $topicInfo['items'][0]['options'][0]['option_content'] : '';
  626. }
  627. echo $option_cont;
  628. ?>
  629. </span>
  630. </div>
  631. </div>
  632. <div class="answerContent">
  633. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  634. </div>
  635. </div>
  636. </div>
  637. </div>
  638. </div>
  639. </div>
  640. <?php break?>
  641. <!--单句语法填空-->
  642. <?php case 19:?>
  643. <div class="wordGrammar">
  644. <?php include('topic_count.php');?>
  645. <div class="wordGrammarList">
  646. <div class="wordGrammarItem">
  647. <p><?php echo $topicInfo['title'];?></p>
  648. <div class="standardAnswerContent">
  649. <div class="answerItem">
  650. <div class="answerTitle">
  651. <i class="answerTag">【答案】</i>
  652. <div>
  653. <?php foreach ($topicInfo['slave'] as $slave):?>
  654. <span class="key">
  655. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  656. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  657. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  658. <?php echo $option['option_content'];?>
  659. <?php endforeach;?>
  660. <?php endif;?>
  661. </span>
  662. <?php endforeach;?>
  663. </div>
  664. </div>
  665. <div class="answerContent">
  666. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  667. </div>
  668. </div>
  669. </div>
  670. </div>
  671. </div>
  672. </div>
  673. <?php break?>
  674. <!--单句翻译-->
  675. <?php case 20:?>
  676. <div class="sentenceTranslate">
  677. <?php include('topic_count.php');?>
  678. <div class="sentenceList">
  679. <div class="sentenceItem">
  680. <?php echo $topicInfo['title'];?>
  681. </div>
  682. </div>
  683. <div class="standardAnswerContent">
  684. <div class="answerItem">
  685. <div class="answerTitle">
  686. <i class="answerTag">【答案】</i>
  687. <div class="col-1">
  688. <?php foreach ($topicInfo['slave'] as $slave):?>
  689. <span class="key">
  690. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  691. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  692. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  693. <?php echo $option['option_content'];?>
  694. <?php endforeach;?>
  695. <?php endif;?>
  696. </span>
  697. <?php endforeach;?>
  698. </div>
  699. </div>
  700. <div class="answerContent">
  701. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  702. </div>
  703. </div>
  704. </div>
  705. </div>
  706. <?php break?>
  707. <?php endswitch;?>
  708. <?php if(in_array($topicType, array(2, 3, 4, 5))):?>
  709. <?php include('en_key_words.php');?>
  710. <?php endif;?>