en_reading.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612
  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. <style>
  11. <?php $imgUrl = Yii::app()->request->hostInfo;?>
  12. /* http://meyerweb.com/eric/tools/css/reset/
  13. v2.0 | 20110126
  14. License: none (public domain)
  15. */
  16. html, body, div, span, applet, object, iframe,
  17. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  18. a, abbr, acronym, address, big, cite, code,
  19. del, dfn, em, img, ins, kbd, q, s, samp,
  20. small, strike, strong, sub, sup, tt, var,
  21. b, u, i, center,
  22. dl, dt, dd, ol, ul, li,
  23. fieldset, form, label, legend,
  24. table, caption, tbody, tfoot, thead, tr, th, td,
  25. article, aside, canvas, details, embed,
  26. figure, figcaption, footer, header, hgroup,
  27. menu, nav, output, ruby, section, summary,
  28. time, mark, audio, video {
  29. margin: 0;
  30. padding: 0;
  31. border: 0;
  32. font-size: 100%;
  33. font: inherit;
  34. vertical-align: baseline;
  35. }
  36. /* HTML5 display-role reset for older browsers */
  37. article, aside, details, figcaption, figure,
  38. footer, header, hgroup, menu, nav, section {
  39. display: block;
  40. }
  41. body {
  42. line-height: 1;
  43. }
  44. ol, ul {
  45. list-style: none;
  46. }
  47. blockquote, q {
  48. quotes: none;
  49. }
  50. blockquote:before, blockquote:after,
  51. q:before, q:after {
  52. content: '';
  53. content: none;
  54. }
  55. table {
  56. border-collapse: collapse;
  57. border-spacing: 0;
  58. }
  59. .fl{float:left}
  60. .fr{float:right}
  61. .alignRight{text-align:right;}
  62. .alignCenter{text-align: center}
  63. .clearfix:after {content: "."; display: block; height:0; clear:both; visibility: hidden;}
  64. .clearfix {*zoom:1; }
  65. /*reading.css*/
  66. @charset "UTF-8";
  67. .fontBass, .pdf-content .topic .topic-main p,
  68. .pdf-content .topic .topic-main div,
  69. .pdf-content .topic .topic-main span {
  70. font-family: "Times New Roman", 'SimSun' !important;
  71. font-size: 9pt !important;
  72. line-height: 1.5em !important;
  73. color: #030000 !important;
  74. text-autospace: none !important;
  75. text-justify: none !important;
  76. font-style: normal !important;
  77. text-align: justify !important;
  78. }
  79. .highlight-a {
  80. color: #ea4f31;
  81. }
  82. .highlight-b {
  83. color: #003b86;
  84. }
  85. .YaHei, .pdf-B5 .pdf-footer .left .paper-number, .pdf-content .topic .topic-msg {
  86. font-family: 'Microsoft YaHei';
  87. }
  88. .ST, .pdf-B5 .pdf-footer .left .text, .pdf-B5 .pdf-footer .right p:last-child, .pdf-content .topic .topic-number {
  89. font-family: '宋体', 'SimSun';
  90. }
  91. .mgt {
  92. margin-top: 1mm;
  93. }
  94. .table {
  95. margin-top: 1mm;
  96. width: 100%;
  97. text-align: center;
  98. border-left: 1px solid #ccc;
  99. border-top: 1px solid #ccc;
  100. }
  101. .table td {
  102. padding: 2px;
  103. border-right: 1px solid #ccc;
  104. border-bottom: 1px solid #ccc;
  105. }
  106. .font-text {
  107. font-size: 10.5pt !important;
  108. }
  109. .pdf-B5 {
  110. max-width: 155.7mm;
  111. font-family: 'Times New Roman', 'SimSun';
  112. font-size: 9pt;
  113. padding-left: 6mm;
  114. padding-right: 6mm;
  115. color: #030000;
  116. }
  117. .pdf-B5 .pdf-header {
  118. line-height: 8.6mm;
  119. border-bottom: 2px solid #003b86;
  120. font-size: 8.16pt;
  121. font-weight: bold;
  122. font-family: '宋体', 'SimSun';
  123. color: #000;
  124. }
  125. .pdf-B5 .pdf-header .pdf-header-logo {
  126. height: 6.2mm;
  127. vertical-align: middle;
  128. }
  129. .pdf-B5 .pdf-header .center {
  130. width: 40%;
  131. text-align: center;
  132. }
  133. .pdf-B5 .pdf-header .left,
  134. .pdf-B5 .pdf-header .right {
  135. width: 30%;
  136. }
  137. .pdf-B5 .pdf-header .right {
  138. text-align: right;
  139. }
  140. .pdf-B5 .pdf-content {
  141. padding-bottom: 2mm;
  142. }
  143. .pdf-B5 .pdf-footer {
  144. line-height: 8.6mm;
  145. border-top: 2px solid #003b86;
  146. }
  147. .pdf-B5 .pdf-footer .left {
  148. width: 25%;
  149. font-size: 6.24pt;
  150. }
  151. .pdf-B5 .pdf-footer .left .paper-number {
  152. display: inline-block;
  153. width: 8.4mm;
  154. height: 4.4mm;
  155. line-height: 3.8mm;
  156. color: #fff;
  157. text-align: center;
  158. }
  159. .pdf-B5 .pdf-footer .left .text {
  160. display: inline-block;
  161. margin-left: 2mm;
  162. }
  163. .pdf-B5 .pdf-footer .right {
  164. padding-top: 2mm;
  165. width: 70%;
  166. }
  167. .pdf-B5 .pdf-footer .right p {
  168. line-height: 3.4mm;
  169. }
  170. .pdf-B5 .pdf-footer .right p:first-child {
  171. font-size: 6.24pt;
  172. }
  173. .pdf-B5 .pdf-footer .right p:last-child {
  174. font-size: 5.76pt;
  175. }
  176. .pdf-content .topic .topic-number {
  177. margin-top: 3.2mm;
  178. margin-bottom: 3.2mm;
  179. font-size: 12.96pt;
  180. font-weight: bold;
  181. text-align: center;
  182. color: #fff;
  183. }
  184. .pdf-content .topic .topic-msg {
  185. height: 7.4mm;
  186. line-height: 7.4mm;
  187. width: 100%;
  188. font-size: 8.5pt;
  189. font-weight: bold;
  190. color: #003b86;
  191. background-color: #eff5fb;
  192. text-align: center;
  193. }
  194. .pdf-content .topic .topic-msg > span {
  195. margin-right: 4mm;
  196. }
  197. .pdf-content .topic .topic-msg > span:last-child {
  198. margin-right: 0;
  199. }
  200. .pdf-content .topic .topic-main {
  201. margin-top: 2mm;
  202. line-height: 1.5em;
  203. font-size: 9pt;
  204. text-indent: 2em;
  205. }
  206. .pdf-content .topic .min-topic-block {
  207. line-height: 1.5em;
  208. font-size: 9pt;
  209. margin-top: 2mm;
  210. }
  211. .pdf-content .topic .min-topic-block .min-topic {
  212. margin-top: 5mm;
  213. }
  214. .pdf-content .topic .min-topic-block .min-topic .min-topic-content {
  215. page-break-inside: avoid;
  216. }
  217. .pdf-content .topic .min-topic-block .min-topic .min-topic-content > p {
  218. display: inline;
  219. }
  220. .pdf-content .topic .min-topic-block .sort-list > li {
  221. margin-bottom: 2mm;
  222. }
  223. .pdf-content .topic .min-topic-block .sort-list > li i {
  224. display: inline-block;
  225. width: 4mm;
  226. }
  227. .pdf-content .topic .min-topic-block .sort-list > li .option-list {
  228. width: 85%;
  229. display: -webkit-inline-box;
  230. display: -moz-inline-box;
  231. display: -ms-inline-flexbox;
  232. display: -webkit-inline-flex;
  233. display: inline-flex;
  234. justify-content: space-between;
  235. -webkit-justify-content: space-between;
  236. -moz-box-pack: space-between;
  237. }
  238. .pdf-content .topic .min-topic-block .sort-list > li .option-list li {
  239. width: 25%;
  240. display: -webkit-box;
  241. display: -moz-box;
  242. display: -ms-flexbox;
  243. display: -webkit-flex;
  244. display: flex;
  245. }
  246. .pdf-content .topic .option {
  247. page-break-inside: avoid;
  248. }
  249. .pdf-content .topic .option li p {
  250. display: inline;
  251. }
  252. .pdf-content .topic .col-1 li {
  253. width: 100% !important;
  254. }
  255. .pdf-content .topic .col-2 li {
  256. width: 50% !important;
  257. }
  258. .pdf-content .topic .col-4 li {
  259. width: 25% !important;
  260. }
  261. .reference-answer {
  262. font-size: 8.5pt;
  263. }
  264. .reference-answer .reference-answer-title {
  265. margin-top: 3mm;
  266. text-align: center;
  267. }
  268. .reference-answer .reference-answer-title img {
  269. width: 39mm;
  270. }
  271. .reference-answer .answer-wrap .answer-title {
  272. display: inline-block;
  273. color: #dd4e33;
  274. }
  275. .reference-answer .answer-wrap .answer-block {
  276. display: inline-block;
  277. }
  278. .reference-answer .answer-wrap .answer-block .answer {
  279. margin-right: 3mm;
  280. font-weight: bold;
  281. }
  282. .reference-answer .answer-wrap .col-2 span {
  283. display: inline-block;
  284. width: 48%;
  285. }
  286. .reference-answer .analysis-wrap {
  287. margin-top: 2mm;
  288. margin-bottom: 2mm;
  289. }
  290. .reference-answer .analysis-wrap .analysis-title {
  291. margin-bottom: 1mm;
  292. color: #003b86;
  293. display: inline;
  294. }
  295. .reference-answer .analysis-wrap .analysis,
  296. .reference-answer .analysis-wrap p {
  297. line-height: 4mm;
  298. }
  299. .reference-answer .analysis-wrap .analysis {
  300. display: inline;
  301. }
  302. .reference-answer .analysis-wrap .analysis p {
  303. display: inline;
  304. }
  305. .reference-answer .module-icon {
  306. position: relative;
  307. min-height: 5mm;
  308. margin-top: 2mm;
  309. margin-bottom: 2mm;
  310. overflow: hidden;
  311. }
  312. .reference-answer .module-icon .pic,
  313. .reference-answer .module-icon .txt {
  314. float: left;
  315. width: 5mm;
  316. height: 5mm;
  317. margin-right: 1mm;
  318. background: #003b86;
  319. border: 2px solid #003b86;
  320. color: #fff;
  321. box-sizing: border-box;
  322. }
  323. .reference-answer .module-icon .pic {
  324. display: block;
  325. text-align: center;
  326. }
  327. .reference-answer .module-icon .pic img {
  328. width: 2.9mm;
  329. height: 3.6mm;
  330. }
  331. .reference-answer .module-icon .txt {
  332. font-size: 8.16pt;
  333. text-align: center;
  334. line-height: 5mm;
  335. }
  336. .reference-answer .module-icon em {
  337. float: left;
  338. height: 5mm;
  339. line-height: 5mm;
  340. padding: 0 1.7mm;
  341. background: #fff;
  342. border: 2px solid #003b86;
  343. color: #003b86;
  344. font-size: 8.16pt;
  345. box-sizing: border-box;
  346. }
  347. .reference-answer .module-icon .img-module-title {
  348. width: 21mm;
  349. }
  350. .reference-answer .question-type-mod-content .word-mean-item {
  351. overflow: hidden;
  352. line-height: 5mm;
  353. }
  354. .reference-answer .question-type-mod-content .word-mean-item em {
  355. float: left;
  356. width: 23mm;
  357. font-weight: bold;
  358. }
  359. .reference-answer .question-type-mod-content .word-mean-item .text {
  360. float: left;
  361. width: calc(100% - 23mm);
  362. }
  363. .reference-answer .syntactic-analysis {
  364. line-height: 4.2mm;
  365. }
  366. .reference-answer .syntactic-analysis .syntactic-analysis-item {
  367. margin-top: 2mm;
  368. text-align: justify;
  369. }
  370. .reference-answer .syntactic-analysis .syntactic-analysis-item > p p {
  371. display: inline;
  372. }
  373. .reference-answer .syntactic-analysis .syntactic-analysis-item .highlight-b {
  374. font-weight: bold;
  375. }
  376. </style>
  377. <style>
  378. .pdf-B5 {
  379. background: url(<?php echo $imgUrl.'/images/en_reading/bg-watermark.png';?>);
  380. background-repeat: repeat-y;
  381. background-size: 100%;
  382. }
  383. .paper-number {
  384. background: url(<?php echo $imgUrl.'/images/en_reading/bg-paper-number.png';?>) no-repeat;
  385. background-size: 8.4mm;
  386. }
  387. .topic .topic-number .bg-wrap {
  388. display: inline-block;
  389. width: 22.2mm;
  390. height: 6.8mm;
  391. padding-left: 2.6mm;
  392. line-height: 5.8mm;
  393. background: url(<?php echo $imgUrl.'/images/en_reading/bg-topic-number.png';?>) no-repeat;
  394. background-size: 22.2mm 6.8mm;
  395. }
  396. </style>
  397. </head>
  398. <body>
  399. <!-- 内容开始 -->
  400. <div class="pdf-B5">
  401. <!-- 外刊阅读 -->
  402. <?php if($all_topics):?>
  403. <div class="pdf-content">
  404. <?php foreach($all_topics as $spr_key=>$topic_id):?>
  405. <?php
  406. $topic_detail = isset($reading_detail[$topic_id]) ? $reading_detail[$topic_id] : array();
  407. $isp_content = isset($topic_detail['isp_talk_group']) ? $topic_detail['isp_talk_group'] : '';
  408. $genres = isset($topic_detail['genres']) ? $topic_detail['genres'] : '';
  409. $syntax_parse = isset($topic_detail['syntax_parse']) ? $topic_detail['syntax_parse'] : array();
  410. $keyword_expand = isset($topic_detail['keyword_expand']) ? $topic_detail['keyword_expand'] : '';
  411. $isp_content_arr = array_unique(explode(' ',$isp_content));
  412. ?>
  413. <?php if($topic_detail):?>
  414. <section class="topic">
  415. <h2 class="topic-number">
  416. <span class="bg-wrap"><?php echo chr(65+$spr_key);?></span>
  417. </h2>
  418. <div class="topic-msg">
  419. <span>主题语境:<?php echo reset($isp_content_arr);?></span>
  420. <span>体裁:<?php echo $genres;?></span>
  421. <span>语篇等级:<em class="highlight-a"><?php echo $topic_detail['text_level'];?></em></span>
  422. <span><?php echo $topic_detail['topic_id'];?></span>
  423. </div>
  424. <div class="topic-main">
  425. <?php echo $topic_detail['queBody'];?>
  426. </div>
  427. <?php if($topic_detail['slave'] && $topic_detail['slave']):?>
  428. <?php if($topic_detail['type'] == 23) {?>
  429. <div class="min-topic-block">
  430. <ul class="sort-list">
  431. <?php foreach($topic_detail['slave'] as $slave_key=>$slave):?>
  432. <li>
  433. <i><?php echo ($slave_key+1).'.';?></i>
  434. <ul class="option-list">
  435. <?php echo str_replace("class='fl'",'',$slave['options'])?>
  436. </ul>
  437. </li>
  438. <?php endforeach;?>
  439. </ul>
  440. </div>
  441. <?php }else{?>
  442. <?php foreach($topic_detail['slave'] as $slave_key=>$slave):?>
  443. <div class="min-topic-block">
  444. <div class="min-topic">
  445. <!-- 题干 -->
  446. <div class="min-topic-content"><?php echo ($slave_key+1).'.'.$slave['queBody']?></div>
  447. <!-- 选项 -->
  448. <ul class="option clearfix col-1">
  449. <?php echo $slave['options']?>
  450. </ul>
  451. </div>
  452. </div>
  453. <?php endforeach;?>
  454. <?php }?>
  455. <?php endif;?>
  456. </section>
  457. <div class="reference-answer">
  458. <section class="topic">
  459. <h2 class="topic-number">
  460. </h2>
  461. <div class="topic-module-answer">
  462. <div class="answer-wrap">
  463. <span class="answer-title">【答案】</span>
  464. <p class="answer-block">
  465. <?php if(count($topic_detail['answer'])<15){ ?>
  466. <span class="answer"><?php echo '1~'.count($topic_detail['slave']);?> <?php echo implode('',$topic_detail['answer']);?></span>
  467. <?php }elseif(count($topic_detail['answer'] == 15)){ ?>
  468. <span class="answer"><?php
  469. $all_answer = implode('',$topic_detail['answer']);
  470. echo '1~5';echo substr($all_answer,0,5);
  471. echo ' 6~10';echo substr($all_answer,5,5);
  472. echo ' 11~15';echo substr($all_answer,10,5);
  473. ?>
  474. </span>
  475. <?php } ?>
  476. </p>
  477. </div>
  478. <div class="analysis-wrap">
  479. <p class="analysis-title">【解析】</P>
  480. <p class="analysis"><?php echo $topic_detail['analysis'];?></p>
  481. </div>
  482. <?php if($keyword_expand):?>
  483. <div class="module-icon">
  484. <!-- <em>词汇积累</em>-->
  485. <img src="<?php echo $imgUrl.'/images/en_reading/img-word-title.png';?>" alt="词汇积累" class="img-module-title">
  486. </div>
  487. <div class="question-type-mod-content">
  488. <div class="word-mean-item">
  489. <?php echo $topic_detail['keyword_expand'];?>
  490. </div>
  491. </div>
  492. <?php endif;?>
  493. <?php if($syntax_parse):?>
  494. <div class="module-icon">
  495. <!-- <em>句法剖析</em>-->
  496. <img src="<?php echo $imgUrl.'/images/en_reading/img-sentence-title.png';?>" alt="词汇积累" class="img-module-title">
  497. </div>
  498. <?php foreach($syntax_parse as $sp_key=>$sp):?>
  499. <div class="syntactic-analysis">
  500. <div class="syntactic-analysis-item">
  501. <p class="fwb"><?php echo ($sp_key+1).'. '.$sp['content'];?></p>
  502. <p><em class="highlight-b">句意:</em><?php echo $sp['mean'];?></p>
  503. <p><em class="highlight-b">句子分析:</em><?php echo $sp['analysis'];?></p>
  504. </div>
  505. </div>
  506. <?php endforeach;?>
  507. <?php endif;?>
  508. </div>
  509. </section>
  510. </div>
  511. <?php endif;?>
  512. <?php endforeach;?>
  513. </div>
  514. <?php endif;?>
  515. </div>
  516. </body>
  517. </html>