en_hot.php 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>外刊宝</title>
  8. <meta name="description" content="">
  9. <meta name="keywords" content="">
  10. <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/reset.css">
  11. <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/base.css">
  12. <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/hot-spot.css">
  13. <style>
  14. .pdf-B5 .head-serial .xu-hao {
  15. background: url(<?php echo Yii::app()->request->hostInfo.'/images/en_reading/bg-topic-number.png';?> ) no-repeat;
  16. background-size: 100% 100%;
  17. }
  18. .pdf-B5 .module-bgc {
  19. background: url(<?php echo Yii::app()->request->hostInfo.'/images/en_reading/gong-xing.png';?> ) no-repeat;
  20. background-size: 100% 100%;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <!-- 内容开始 -->
  26. <?php
  27. $options_arr = array("A.","B.","C.","D.","E.","F.","G.","H.","I.","J");
  28. ?>
  29. <div class="pdf-B5">
  30. <div class="topic">
  31. <div class="head-serial">
  32. <span class="xu-hao">A</span>
  33. </div>
  34. <div class="point-title">
  35. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons1.png';?>" alt="">
  36. </div>
  37. <div class="guided-reading">
  38. <span class="dao-du">【导读】</span><?php echo isset($hot_data['dksydd'])?$hot_data['dksydd']:'';?>
  39. </div>
  40. <div class="main-body">
  41. <?php if(isset($hot_data['dksytp']) && $hot_data['dksytp']):?>
  42. <img class="img" src="<?php echo $hot_data['dksytp']?>" alt="">
  43. <?php endif;?>
  44. <?php echo isset($hot_data['dksywb'])?$hot_data['dksywb']:'';?>
  45. </div>
  46. <div class="point-title">
  47. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons2.png';?>" alt="">
  48. </div>
  49. <?php if(isset($hot_data['xxtlsy']) && $hot_data['xxtlsy']):?>
  50. <?php foreach($hot_data['xxtlsy'] as $topic_id):?>
  51. <?php
  52. if(isset($topic_detail[$topic_id])){
  53. $topic_data = $topic_detail[$topic_id];
  54. }else{
  55. continue;
  56. }
  57. ?>
  58. <div class="stem-a">
  59. <div class="big-tit">
  60. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  61. </div>
  62. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  63. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  64. <div class="small-tit">
  65. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  66. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  67. <div class="xuanxiang">
  68. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  69. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  70. <?php endforeach;?>
  71. </div>
  72. <?php endif;?>
  73. </div>
  74. <?php endforeach;?>
  75. <?php endif;?>
  76. <div class="answer-s">
  77. <div class="answer-text">【答案】</div>
  78. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  79. <div class="answer-content">
  80. <?php if(count($topic_data['answer'])==1){ ?>
  81. <?php echo implode('',$topic_data['answer']);?>
  82. <?php }elseif(count($topic_data['answer'])<15){ ?>
  83. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  84. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  85. <?php
  86. $all_answer = implode('',$topic_data['answer']);
  87. echo '1~5';echo substr($all_answer,0,5);
  88. echo ' 6~10';echo substr($all_answer,5,5);
  89. echo ' 11~15';echo substr($all_answer,10,5);
  90. ?>
  91. <?php }else{?>
  92. <?php
  93. $all_answer = implode('',$topic_data['answer']);
  94. echo '1~5';echo substr($all_answer,0,5);
  95. echo ' 6~10';echo substr($all_answer,5,5);
  96. echo ' 11~15';echo substr($all_answer,10,5);
  97. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  98. ?>
  99. <?php } ?>
  100. </div>
  101. <?php endif;?>
  102. </div>
  103. <div class="analysis-wrap">
  104. <p class="analysis-title">【解析】</P>
  105. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  106. </div>
  107. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  108. <div class="module-bgc">
  109. <i>词汇积累</i>
  110. </div>
  111. <div class="question-type-mod-content">
  112. <div class="word-mean-item">
  113. <?php echo $topic_data['chjl'];?>
  114. </div>
  115. </div>
  116. <?php endif;?>
  117. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  118. <div class="module-bgc">
  119. <i>句子剖析</i>
  120. </div>
  121. <div class="syntactic-analysis">
  122. <div class="syntactic-analysis-item">
  123. <p><?php echo $topic_data['jzpx'];?></p>
  124. </div>
  125. </div>
  126. <?php endif;?>
  127. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  128. <div class="module-bgc">
  129. <i>关键词拓展</i>
  130. </div>
  131. <div class="syntactic-analysis">
  132. <div class="syntactic-analysis-item">
  133. <p><?php echo $topic_data['gjctz'];?></p>
  134. </div>
  135. </div>
  136. <?php endif;?>
  137. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  138. <div class="module-bgc">
  139. <i>长难句解析</i>
  140. </div>
  141. <div class="syntactic-analysis">
  142. <div class="syntactic-analysis-item">
  143. <p><?php echo $topic_data['cnjjx'];?></p>
  144. </div>
  145. </div>
  146. <?php endif;?>
  147. </div>
  148. <?php endforeach;?>
  149. <?php endif;?>
  150. <div class="point-title">
  151. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons3.png';?>" alt="">
  152. </div>
  153. <?php if(isset($hot_data['ljfxsy']) && $hot_data['ljfxsy']):?>
  154. <?php foreach($hot_data['ljfxsy'] as $topic_id):?>
  155. <?php
  156. if(isset($topic_detail[$topic_id])){
  157. $topic_data = $topic_detail[$topic_id];
  158. }else{
  159. continue;
  160. }
  161. ?>
  162. <div class="stem-a">
  163. <div class="big-tit">
  164. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  165. </div>
  166. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  167. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  168. <div class="small-tit">
  169. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  170. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  171. <div class="xuanxiang">
  172. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  173. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  174. <?php endforeach;?>
  175. </div>
  176. <?php endif;?>
  177. </div>
  178. <?php endforeach;?>
  179. <?php endif;?>
  180. <div class="answer-s">
  181. <div class="answer-text">【答案】</div>
  182. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  183. <div class="answer-content">
  184. <?php if(count($topic_data['answer'])==1){ ?>
  185. <?php echo implode('',$topic_data['answer']);?>
  186. <?php }elseif(count($topic_data['answer'])<15){ ?>
  187. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  188. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  189. <?php
  190. $all_answer = implode('',$topic_data['answer']);
  191. echo '1~5';echo substr($all_answer,0,5);
  192. echo ' 6~10';echo substr($all_answer,5,5);
  193. echo ' 11~15';echo substr($all_answer,10,5);
  194. ?>
  195. <?php }else{?>
  196. <?php
  197. $all_answer = implode('',$topic_data['answer']);
  198. echo '1~5';echo substr($all_answer,0,5);
  199. echo ' 6~10';echo substr($all_answer,5,5);
  200. echo ' 11~15';echo substr($all_answer,10,5);
  201. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  202. ?>
  203. <?php } ?>
  204. </div>
  205. <?php endif;?>
  206. </div>
  207. <div class="analysis-wrap">
  208. <p class="analysis-title">【解析】</P>
  209. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  210. </div>
  211. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  212. <div class="module-bgc">
  213. <i>词汇积累</i>
  214. </div>
  215. <div class="question-type-mod-content">
  216. <div class="word-mean-item">
  217. <?php echo $topic_data['chjl'];?>
  218. </div>
  219. </div>
  220. <?php endif;?>
  221. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  222. <div class="module-bgc">
  223. <i>句子剖析</i>
  224. </div>
  225. <div class="syntactic-analysis">
  226. <div class="syntactic-analysis-item">
  227. <p><?php echo $topic_data['jzpx'];?></p>
  228. </div>
  229. </div>
  230. <?php endif;?>
  231. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  232. <div class="module-bgc">
  233. <i>关键词拓展</i>
  234. </div>
  235. <div class="syntactic-analysis">
  236. <div class="syntactic-analysis-item">
  237. <p><?php echo $topic_data['gjctz'];?></p>
  238. </div>
  239. </div>
  240. <?php endif;?>
  241. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  242. <div class="module-bgc">
  243. <i>长难句解析</i>
  244. </div>
  245. <div class="syntactic-analysis">
  246. <div class="syntactic-analysis-item">
  247. <p><?php echo $topic_data['cnjjx'];?></p>
  248. </div>
  249. </div>
  250. <?php endif;?>
  251. </div>
  252. <?php endforeach;?>
  253. <?php endif;?>
  254. <div class="point-title">
  255. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons4.png';?>" alt="">
  256. </div>
  257. <?php if(isset($hot_data['sbsy']) && $hot_data['sbsy']):?>
  258. <?php foreach($hot_data['sbsy'] as $topic_id):?>
  259. <?php
  260. if(isset($topic_detail[$topic_id])){
  261. $topic_data = $topic_detail[$topic_id];
  262. }else{
  263. continue;
  264. }
  265. ?>
  266. <div class="stem-a">
  267. <div class="big-tit">
  268. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  269. </div>
  270. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  271. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  272. <div class="small-tit">
  273. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  274. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  275. <div class="xuanxiang">
  276. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  277. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  278. <?php endforeach;?>
  279. </div>
  280. <?php endif;?>
  281. </div>
  282. <?php endforeach;?>
  283. <?php endif;?>
  284. <div class="answer-s">
  285. <div class="answer-text">【答案】</div>
  286. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  287. <div class="answer-content">
  288. <?php if(count($topic_data['answer'])==1){ ?>
  289. <?php echo implode('',$topic_data['answer']);?>
  290. <?php }elseif(count($topic_data['answer'])<15){ ?>
  291. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  292. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  293. <?php
  294. $all_answer = implode('',$topic_data['answer']);
  295. echo '1~5';echo substr($all_answer,0,5);
  296. echo ' 6~10';echo substr($all_answer,5,5);
  297. echo ' 11~15';echo substr($all_answer,10,5);
  298. ?>
  299. <?php }else{?>
  300. <?php
  301. $all_answer = implode('',$topic_data['answer']);
  302. echo '1~5';echo substr($all_answer,0,5);
  303. echo ' 6~10';echo substr($all_answer,5,5);
  304. echo ' 11~15';echo substr($all_answer,10,5);
  305. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  306. ?>
  307. <?php } ?>
  308. </div>
  309. <?php endif;?>
  310. </div>
  311. <div class="analysis-wrap">
  312. <p class="analysis-title">【解析】</P>
  313. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  314. </div>
  315. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  316. <div class="module-bgc">
  317. <i>词汇积累</i>
  318. </div>
  319. <div class="question-type-mod-content">
  320. <div class="word-mean-item">
  321. <?php echo $topic_data['chjl'];?>
  322. </div>
  323. </div>
  324. <?php endif;?>
  325. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  326. <div class="module-bgc">
  327. <i>句子剖析</i>
  328. </div>
  329. <div class="syntactic-analysis">
  330. <div class="syntactic-analysis-item">
  331. <p><?php echo $topic_data['jzpx'];?></p>
  332. </div>
  333. </div>
  334. <?php endif;?>
  335. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  336. <div class="module-bgc">
  337. <i>关键词拓展</i>
  338. </div>
  339. <div class="syntactic-analysis">
  340. <div class="syntactic-analysis-item">
  341. <p><?php echo $topic_data['gjctz'];?></p>
  342. </div>
  343. </div>
  344. <?php endif;?>
  345. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  346. <div class="module-bgc">
  347. <i>长难句解析</i>
  348. </div>
  349. <div class="syntactic-analysis">
  350. <div class="syntactic-analysis-item">
  351. <p><?php echo $topic_data['cnjjx'];?></p>
  352. </div>
  353. </div>
  354. <?php endif;?>
  355. </div>
  356. <?php endforeach;?>
  357. <?php endif;?>
  358. <div class="point-title">
  359. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons5.png';?>" alt="">
  360. </div>
  361. <!-- <div class="good-vocabulary">
  362. 1.词汇活用
  363. </div> -->
  364. <div class="vocabulary">
  365. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons6.png';?>" alt="">
  366. </div>
  367. <div class="stem-a">
  368. <?php echo isset($hot_data['yychjl'])?$hot_data['yychjl']:'';?>
  369. </div>
  370. <div class="vocabulary">
  371. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons7.png';?>" alt="">
  372. </div>
  373. <?php if(isset($hot_data['yychhy']) && $hot_data['yychhy']):?>
  374. <?php foreach($hot_data['yychhy'] as $topic_id):?>
  375. <?php
  376. if(isset($topic_detail[$topic_id])){
  377. $topic_data = $topic_detail[$topic_id];
  378. }else{
  379. continue;
  380. }
  381. ?>
  382. <div class="stem-a">
  383. <div class="big-tit">
  384. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  385. </div>
  386. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  387. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  388. <div class="small-tit">
  389. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  390. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  391. <div class="xuanxiang">
  392. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  393. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  394. <?php endforeach;?>
  395. </div>
  396. <?php endif;?>
  397. </div>
  398. <?php endforeach;?>
  399. <?php endif;?>
  400. <div class="answer-s">
  401. <div class="answer-text">【答案】</div>
  402. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  403. <div class="answer-content">
  404. <?php if(count($topic_data['answer'])==1){ ?>
  405. <?php echo implode('',$topic_data['answer']);?>
  406. <?php }elseif(count($topic_data['answer'])<15){ ?>
  407. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  408. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  409. <?php
  410. $all_answer = implode('',$topic_data['answer']);
  411. echo '1~5';echo substr($all_answer,0,5);
  412. echo ' 6~10';echo substr($all_answer,5,5);
  413. echo ' 11~15';echo substr($all_answer,10,5);
  414. ?>
  415. <?php }else{?>
  416. <?php
  417. $all_answer = implode('',$topic_data['answer']);
  418. echo '1~5';echo substr($all_answer,0,5);
  419. echo ' 6~10';echo substr($all_answer,5,5);
  420. echo ' 11~15';echo substr($all_answer,10,5);
  421. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  422. ?>
  423. <?php } ?>
  424. </div>
  425. <?php endif;?>
  426. </div>
  427. <div class="analysis-wrap">
  428. <p class="analysis-title">【解析】</P>
  429. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  430. </div>
  431. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  432. <div class="module-bgc">
  433. <i>词汇积累</i>
  434. </div>
  435. <div class="question-type-mod-content">
  436. <div class="word-mean-item">
  437. <?php echo $topic_data['chjl'];?>
  438. </div>
  439. </div>
  440. <?php endif;?>
  441. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  442. <div class="module-bgc">
  443. <i>句子剖析</i>
  444. </div>
  445. <div class="syntactic-analysis">
  446. <div class="syntactic-analysis-item">
  447. <p><?php echo $topic_data['jzpx'];?></p>
  448. </div>
  449. </div>
  450. <?php endif;?>
  451. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  452. <div class="module-bgc">
  453. <i>关键词拓展</i>
  454. </div>
  455. <div class="syntactic-analysis">
  456. <div class="syntactic-analysis-item">
  457. <p><?php echo $topic_data['gjctz'];?></p>
  458. </div>
  459. </div>
  460. <?php endif;?>
  461. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  462. <div class="module-bgc">
  463. <i>长难句解析</i>
  464. </div>
  465. <div class="syntactic-analysis">
  466. <div class="syntactic-analysis-item">
  467. <p><?php echo $topic_data['cnjjx'];?></p>
  468. </div>
  469. </div>
  470. <?php endif;?>
  471. </div>
  472. <?php endforeach;?>
  473. <?php endif;?>
  474. <div class="vocabulary">
  475. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons8.png';?>" alt="">
  476. </div>
  477. <?php if(isset($hot_data['yyjjfx']) && $hot_data['yyjjfx']):?>
  478. <?php foreach($hot_data['yyjjfx'] as $topic_id):?>
  479. <?php
  480. if(isset($topic_detail[$topic_id])){
  481. $topic_data = $topic_detail[$topic_id];
  482. }else{
  483. continue;
  484. }
  485. ?>
  486. <div class="stem-a">
  487. <div class="big-tit">
  488. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  489. </div>
  490. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  491. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  492. <div class="small-tit">
  493. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  494. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  495. <div class="xuanxiang">
  496. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  497. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  498. <?php endforeach;?>
  499. </div>
  500. <?php endif;?>
  501. </div>
  502. <?php endforeach;?>
  503. <?php endif;?>
  504. <div class="answer-s">
  505. <div class="answer-text">【答案】</div>
  506. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  507. <div class="answer-content">
  508. <?php if(count($topic_data['answer'])==1){ ?>
  509. <?php echo implode('',$topic_data['answer']);?>
  510. <?php }elseif(count($topic_data['answer'])<15){ ?>
  511. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  512. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  513. <?php
  514. $all_answer = implode('',$topic_data['answer']);
  515. echo '1~5';echo substr($all_answer,0,5);
  516. echo ' 6~10';echo substr($all_answer,5,5);
  517. echo ' 11~15';echo substr($all_answer,10,5);
  518. ?>
  519. <?php }else{?>
  520. <?php
  521. $all_answer = implode('',$topic_data['answer']);
  522. echo '1~5';echo substr($all_answer,0,5);
  523. echo ' 6~10';echo substr($all_answer,5,5);
  524. echo ' 11~15';echo substr($all_answer,10,5);
  525. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  526. ?>
  527. <?php } ?>
  528. </div>
  529. <?php endif;?>
  530. </div>
  531. <div class="analysis-wrap">
  532. <p class="analysis-title">【解析】</P>
  533. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  534. </div>
  535. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  536. <div class="module-bgc">
  537. <i>词汇积累</i>
  538. </div>
  539. <div class="question-type-mod-content">
  540. <div class="word-mean-item">
  541. <?php echo $topic_data['chjl'];?>
  542. </div>
  543. </div>
  544. <?php endif;?>
  545. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  546. <div class="module-bgc">
  547. <i>句子剖析</i>
  548. </div>
  549. <div class="syntactic-analysis">
  550. <div class="syntactic-analysis-item">
  551. <p><?php echo $topic_data['jzpx'];?></p>
  552. </div>
  553. </div>
  554. <?php endif;?>
  555. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  556. <div class="module-bgc">
  557. <i>关键词拓展</i>
  558. </div>
  559. <div class="syntactic-analysis">
  560. <div class="syntactic-analysis-item">
  561. <p><?php echo $topic_data['gjctz'];?></p>
  562. </div>
  563. </div>
  564. <?php endif;?>
  565. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  566. <div class="module-bgc">
  567. <i>长难句解析</i>
  568. </div>
  569. <div class="syntactic-analysis">
  570. <div class="syntactic-analysis-item">
  571. <p><?php echo $topic_data['cnjjx'];?></p>
  572. </div>
  573. </div>
  574. <?php endif;?>
  575. </div>
  576. <?php endforeach;?>
  577. <?php endif;?>
  578. <div class="point-title">
  579. <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons9.png';?>" alt="">
  580. </div>
  581. <?php if(isset($hot_data['zhyysy']) && $hot_data['zhyysy']):?>
  582. <?php foreach($hot_data['zhyysy'] as $topic_id):?>
  583. <?php
  584. if(isset($topic_detail[$topic_id])){
  585. $topic_data = $topic_detail[$topic_id];
  586. }else{
  587. continue;
  588. }
  589. ?>
  590. <div class="stem-a">
  591. <div class="big-tit">
  592. <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
  593. </div>
  594. <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
  595. <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
  596. <div class="small-tit">
  597. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  598. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  599. <div class="xuanxiang">
  600. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  601. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  602. <?php endforeach;?>
  603. </div>
  604. <?php endif;?>
  605. </div>
  606. <?php endforeach;?>
  607. <?php endif;?>
  608. <div class="answer-s">
  609. <div class="answer-text">【答案】</div>
  610. <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
  611. <div class="answer-content">
  612. <?php if(count($topic_data['answer'])==1){ ?>
  613. <?php echo implode('',$topic_data['answer']);?>
  614. <?php }elseif(count($topic_data['answer'])<15){ ?>
  615. <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
  616. <?php }elseif(count($topic_data['answer']) == 15){ ?>
  617. <?php
  618. $all_answer = implode('',$topic_data['answer']);
  619. echo '1~5';echo substr($all_answer,0,5);
  620. echo ' 6~10';echo substr($all_answer,5,5);
  621. echo ' 11~15';echo substr($all_answer,10,5);
  622. ?>
  623. <?php }else{?>
  624. <?php
  625. $all_answer = implode('',$topic_data['answer']);
  626. echo '1~5';echo substr($all_answer,0,5);
  627. echo ' 6~10';echo substr($all_answer,5,5);
  628. echo ' 11~15';echo substr($all_answer,10,5);
  629. echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
  630. ?>
  631. <?php } ?>
  632. </div>
  633. <?php endif;?>
  634. </div>
  635. <div class="analysis-wrap">
  636. <p class="analysis-title">【解析】</P>
  637. <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
  638. </div>
  639. <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
  640. <div class="module-bgc">
  641. <i>词汇积累</i>
  642. </div>
  643. <div class="question-type-mod-content">
  644. <div class="word-mean-item">
  645. <?php echo $topic_data['chjl'];?>
  646. </div>
  647. </div>
  648. <?php endif;?>
  649. <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
  650. <div class="module-bgc">
  651. <i>句子剖析</i>
  652. </div>
  653. <div class="syntactic-analysis">
  654. <div class="syntactic-analysis-item">
  655. <p><?php echo $topic_data['jzpx'];?></p>
  656. </div>
  657. </div>
  658. <?php endif;?>
  659. <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
  660. <div class="module-bgc">
  661. <i>关键词拓展</i>
  662. </div>
  663. <div class="syntactic-analysis">
  664. <div class="syntactic-analysis-item">
  665. <p><?php echo $topic_data['gjctz'];?></p>
  666. </div>
  667. </div>
  668. <?php endif;?>
  669. <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
  670. <div class="module-bgc">
  671. <i>长难句解析</i>
  672. </div>
  673. <div class="syntactic-analysis">
  674. <div class="syntactic-analysis-item">
  675. <p><?php echo $topic_data['cnjjx'];?></p>
  676. </div>
  677. </div>
  678. <?php endif;?>
  679. </div>
  680. <?php endforeach;?>
  681. <?php endif;?>
  682. </div>
  683. <div class="topic">
  684. <?php if(isset($topic_ids) && $topic_ids):?>
  685. <?php $n = 1;?>
  686. <?php foreach($topic_ids as $type=>$topic_id):?>
  687. <?php
  688. if(isset($topic_detail[$topic_id])){
  689. $v=$topic_detail[$topic_id];
  690. }else{
  691. continue;
  692. }
  693. ?>
  694. <div class="head-serial">
  695. <span class="xu-hao"><?php echo chr(65+$n);?></span>
  696. </div>
  697. <section class="topic">
  698. <div class="topic-msg">
  699. <span>主题语境:<?php echo isset($v['ztyj'])?$v['ztyj']:'';?></span>
  700. <span>体裁:<?php echo isset($v['tc'])?$v['tc']:'';?></span>
  701. <span>语篇等级:<em class="highlight-a"><?php echo isset($v['ypdj'])?$v['ypdj']:'';?></em></span>
  702. <span><?php echo substr($topic_id,4);?></span>
  703. </div>
  704. <div class="stem-a">
  705. <div class="big-tit">
  706. <?php echo isset($v['title'])?$v['title']:'';?>
  707. </div>
  708. <?php if(isset($v['slave']) && $v['slave'] && !in_array($v['type_id'],$type_config['seven_selected_five'])):?>
  709. <?php foreach($v['slave'] as $slave_key=>$slave_value):?>
  710. <div class="small-tit">
  711. <?php if(in_array($v['type_id'],array(430,41))):?>
  712. <div class="min-topic-block">
  713. <ul class="sort-list">
  714. <li>
  715. <i><?php echo ($slave_key+1);?>.</i>
  716. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  717. <ul class="option-list">
  718. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  719. <li><?php echo $options_arr[$op_k];?><?php echo $op_v;?></li>
  720. <?php endforeach;?>
  721. </ul>
  722. <?php endif;?>
  723. </li>
  724. </ul>
  725. </div>
  726. <?php else:?>
  727. <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
  728. <?php if(isset($slave_value['options']) && $slave_value['options']):?>
  729. <div class="xuanxiang">
  730. <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
  731. <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
  732. <?php endforeach;?>
  733. </div>
  734. <?php endif;?>
  735. <?php endif;?>
  736. </div>
  737. <?php endforeach;?>
  738. <?php endif;?>
  739. <div class="answer-s">
  740. <div class="answer-text">【答案】</div>
  741. <?php if(isset($v['answer']) && $v['answer']):?>
  742. <div class="answer-content">
  743. <?php if(count($v['answer'])==1){ ?>
  744. <?php echo implode('',$v['answer']);?>
  745. <?php }elseif(count($v['answer'])<15){ ?>
  746. <?php echo '1~'.count($v['answer']);?> <?php echo implode('',$v['answer']);?>
  747. <?php }elseif(count($v['answer']) == 15){ ?>
  748. <?php
  749. $all_answer = implode('',$v['answer']);
  750. echo '1~5';echo substr($all_answer,0,5);
  751. echo ' 6~10';echo substr($all_answer,5,5);
  752. echo ' 11~15';echo substr($all_answer,10,5);
  753. ?>
  754. <?php }else{?>
  755. <?php
  756. $all_answer = implode('',$v['answer']);
  757. echo '1~5';echo substr($all_answer,0,5);
  758. echo ' 6~10';echo substr($all_answer,5,5);
  759. echo ' 11~15';echo substr($all_answer,10,5);
  760. echo ' 15~'.count($v['answer']);echo substr($all_answer,15,5);
  761. ?>
  762. <?php } ?>
  763. </div>
  764. <?php endif;?>
  765. </div>
  766. <div class="analysis-wrap">
  767. <p class="analysis-title">【解析】</P>
  768. <div class="analysis"><?php echo isset($v['parse_content'])?$v['parse_content']:'';?></div>
  769. </div>
  770. <?php if(isset($v['chjl']) && $v['chjl']):?>
  771. <div class="module-bgc">
  772. <i>词汇积累</i>
  773. </div>
  774. <div class="question-type-mod-content">
  775. <div class="word-mean-item">
  776. <?php echo $v['chjl'];?>
  777. </div>
  778. </div>
  779. <?php endif;?>
  780. <?php if(isset($v['jzpx']) && $v['jzpx']):?>
  781. <div class="module-bgc">
  782. <i>句子剖析</i>
  783. </div>
  784. <div class="syntactic-analysis">
  785. <div class="syntactic-analysis-item">
  786. <?php echo $v['jzpx'];?>
  787. </div>
  788. </div>
  789. <?php endif;?>
  790. <?php if(isset($v['gjctz']) && $v['gjctz']):?>
  791. <div class="module-bgc">
  792. <i>关键词拓展</i>
  793. </div>
  794. <div class="syntactic-analysis">
  795. <div class="syntactic-analysis-item">
  796. <?php echo $v['gjctz'];?>
  797. </div>
  798. </div>
  799. <?php endif;?>
  800. <?php if(isset($v['cnjjx']) && $v['cnjjx']):?>
  801. <div class="module-bgc">
  802. <i>长难句解析</i>
  803. </div>
  804. <div class="syntactic-analysis">
  805. <div class="syntactic-analysis-item">
  806. <?php echo $v['cnjjx'];?>
  807. </div>
  808. </div>
  809. <?php endif;?>
  810. </div>
  811. </section>
  812. <?php $n++;?>
  813. <?php endforeach;?>
  814. <?php endif;?>
  815. </div>
  816. </div>
  817. <script>
  818. window.onload = function () {
  819. var optionUl = document.getElementsByClassName('xuanxiang');
  820. for (var i = 0; i < optionUl.length; i++) {
  821. arrayFunction(optionUl[i])
  822. }
  823. function arrayFunction(option) {
  824. for( var j = 0;j<option.children.length;j++){
  825. var sumWidth = 0
  826. sumWidth += option.children[j].offsetWidth
  827. }
  828. if (sumWidth > 111) {
  829. for (var k = 0; k < option.children.length; k++) {
  830. option.children[k].style.display = 'block'
  831. }
  832. } else {
  833. for (var m = 0; m < option.children.length; m++) {
  834. option.children[m].style.display = 'inline-block'
  835. option.children[m].style.float = 'left'
  836. if(option.children[m].offsetWidth>103){
  837. option.children[m].style.width = '44mm'
  838. }else{
  839. option.children[m].style.width = '30mm'
  840. }
  841. }
  842. }
  843. }
  844. }
  845. </script>
  846. </body>
  847. </html>