123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?php
- $wordReview = $product_setting['training']['wordReview']; //词汇回顾
- $wordExplain = $product_setting['training']['wordExplain']; //词汇精讲
- $translate = $product_setting['training']['practiceExact']['translate']; //英汉互译(中译英、英译中)
- $wordApply = $product_setting['training']['practiceExact']['wordApply']; //词汇运用
- $discourse = $product_setting['training']['practiceExact']['discourse']; //语篇训练
- $checkCard = $product_setting['checkCard']; //词汇检测卡
- $wrongPractice = $product_setting['wrongPractice']; //错词再练
- $title_no = array(1=>'Ⅰ',2=>'Ⅱ',3=>'Ⅲ',4=>'Ⅳ');
- $title_m_no = array(1=>'一',2=>'二',3=>'三',4=>'四');
- $flag_no = 1;
- $flag_m_no = 1;
- ?>
- <!-- 词汇集训答案 -->
- <div class="part vocabulary">
- <!-- 答案 -->
- <div class="answer">
- <div class="title-head">
- <div class="title">
- <div class="title-text">Answer to Expression Intensive Training(词汇集训答案)</div>
- </div>
- </div>
- <div class="modular train">
- <?php
- if($wordReview && $wordExplain){
- $flag_m_no = 3;
- }elseif(($wordReview && !$wordExplain) || (!$wordReview && $wordExplain)){
- $flag_m_no = 2;
- }else{
- $flag_m_no = 1;
- }
- $title_m_no = array(1=>'一',2=>'二',3=>'三',4=>'四');
- ?>
- <div class="modular-title">
- <img class="modular-title-icon" src="<?php echo $server.'/images/magic_word/lable1-icon.png'; ?> " alt="">
- <?php echo $title_m_no[$flag_m_no]; ?>、Precise Application (精准训练)
- </div>
- <!-- 英汉互译 -->
- <?php
- $flag_m_no = 1;
- if($translates && $translate){
- ?>
- <div class="unit-block">
- <div class="unit-title b-title">
- <img src="<?php echo $server.'/images/magic_word/start.png';?>" alt="" />
- <span>(<?php echo $title_m_no[$flag_m_no]; ?>)<?php if($setting['practice_type'] == 1){ //共性
- echo $translate_type[$setting['translate_type']];
- }else{ //个性
- echo isset($translates['type']) ? $translate_type[$translates['type']] : $translate_type[1];
- }
- ?></span>
- </div>
- <div class="type-block">
- <ol class="sort-list lr-list clearfix">
- <?php
- $translate_type_no = 1;
- if($setting['practice_type'] == 1){ //共性
- if($setting['translate_type'] == 1){ //英汉互译
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i></i></li>
- <?php
- $translate_type_no++;
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $translate_type_no < 11 ? $val['content'] : $val['mean']; ?><i></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }elseif($setting['translate_type'] == 2){ //英译中
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $key=>$val){
- ?>
- <li><?php echo $val['mean']; ?><i></i></li>
- <?php
- }
- }
- }else{ //中译英
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i></i></li>
- <?php
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['content'] ; ?><i></i></li>
- <?php
- }
- }
- }
- }else{ //个性
- if(isset($translates['type']) && $translates['type'] == 1){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i></i></li>
- <?php
- $translate_type_no++;
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $translate_type_no < 11 ? $val['content'] : $val['mean']; ?><i></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }elseif(isset($translates['type']) && $translates['type'] == 2){
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $key=>$val){
- ?>
- <li><?php echo $val['mean']; ?><i></i></li>
- <?php
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $key=>$val){
- ?>
- <li><?php echo $val['mean']; ?><i></i></li>
- <?php
- }
- }
- }elseif(isset($translates['type']) && $translates['type'] == 3){
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i></i></li>
- <?php
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['content'] ; ?><i></i></li>
- <?php
- }
- }
- }
- }
- ?>
- </ol>
- </div>
- </div>
- <?php $flag_m_no++;}?>
- <!-- 词汇运用 -->
- <?php if($word_apply_ids && $wordApply){
- $topic_type = array(8=>'Word Spelling (单词拼写)',19=>'Grammar Gap in Sentence (单句语法填空)',20=>'Sentence Translation (单句翻译)');
- $no =1;
- ?>
- <div class="unit-block has-three">
- <div class="unit-title b-title">
- <img src="<?php echo $server.'/images/magic_word/start.png';?>" alt="" />
- <span>(<?php echo $title_m_no[$flag_m_no]; ?>)Word in Practice (单词运用)</span>
- </div>
- <?php foreach($word_apply_ids as $tp=>$topic_id){
- if(array_key_exists($tp,$topic_type)){
- ?>
- <div class="type-block">
- <div class="type-title">
- <img src="<?php echo $server.'/images/magic_word/Feather-bg.png';?>" alt="" />
- <i><?php echo $title_no[$no];?></i><?php echo isset($topic_type[$tp]) ? $topic_type[$tp] : ''; ?>
- </div>
- <div class="ans-analysis">
- <ul class="sort-list">
- <?php foreach($word_apply_ids[$tp] as $topic_id){
- ?>
- <li>
- <?php if(isset($word_apply_content[$topic_id])){ ?>
- <span><?php echo isset($word_apply_content[$topic_id]['answer'][$topic_id]) ? preg_replace("/<\/?[p|P][^>]*>/si","",$word_apply_content[$topic_id]['answer'][$topic_id]) : '' ;?></span>
- <?php if($tp != 20){ //单句翻译不需要解析?>
- <p class="analysis">
- <em class="ana-lable">【解析】</em>
- <?php
- $content = preg_replace("/<\/?[p|P][^>]*>/si","",$word_apply_content[$topic_id]['analysis']);
- echo $content;
- ?>
- </p>
- <?php }
- }?>
- </li>
- <?php } ?>
- </ul>
- </div>
- </div>
- <?php }
- $no++;}?>
- </div>
- <?php $flag_m_no++;}?>
- <!-- 语篇训练 -->
- <?php if($card_topic_ids && $discourse){
- $topic_type = array(2=>'Choice Cloze (完形填空)', 3=>'Reading Comprehension (阅读理解)', 5=>'七选五', 6=>'Grammar Gap Filling (语法填空)');
- $no = 1;
- ?>
- <div class="unit-block has-three">
- <div class="unit-title b-title">
- <img src="<?php echo $server.'/images/magic_word/start.png';?>" alt="" />
- <span>(<?php echo $title_m_no[$flag_m_no]; ?>) Passage Test (语篇训练)</span>
- </div>
- <?php foreach($card_topic_ids as $tp=>$topic_id){
- if(array_key_exists($tp,$topic_type)){
- ?>
- <div class="type-block">
- <div class="type-title">
- <img src="<?php echo $server.'/images/magic_word/Feather-bg.png';?>" alt="" />
- <i><?php echo $title_no[$no];?></i><?php echo isset($topic_type[$tp]) ? $topic_type[$tp] : ''; ?>
- </div>
- <?php if(isset($card_topic_content[$card_topic_ids[$tp]])){ ?>
- <div class="ans-analysis">
- <div class="ans-list">
- <em class="ans-lable">【答案】</em>
- <ul class="sort-list">
- <?php foreach($card_topic_content[$card_topic_ids[$tp]]['answer'] as $option_answer){?>
- <li><?php echo preg_replace("/<\/?[p|P][^>]*>/si","",$option_answer);?></li>
- <?php }?>
- </ul>
- </div>
- <div class="analysis">
- <em class="ana-lable">【解析】</em>
- <?php echo $card_topic_content[$card_topic_ids[$tp]]['analysis']; ?>
- <!--ul class="sort-list">
- <li>
- <em class="Blod">细节理解题。</em>
- <p>
- 根据“Don't let the noise of others' opinions drown out
- your own inner
- voice...”不要让别人的意见淹没了你内心的声音。意思是不要被别人的言论影响。本句话是出自Steve
- Jobs,故选C。
- </p>
- </li>
- <li>
- <em class="Blod">细节理解题。</em>
- <p>
- 根据题目关键词“Oprah Winfrey”找到“And the solution will arise from the
- challenge.”可知,直面挑战才能找到解决问题的方法。
- </p>
- </li>
- <li>
- <em class="Blod">细节理解题。</em>
- <p>
- 根据题目中的人名“Michael Dell“找到“But you will learn from your mistakes and the
- mistakes of others.”你会从你的错误和别人的错误中吸取教训。故选D。
- </p>
- </li>
- <li>
- <em class="Blod">推理判断题。</em>
- <p>
- 根据每位伟人的演讲内容“Don't be affected by what other people say.”以及“To meet
- challenges in your life.”以及“learn from our
- mistakes”可知,我们能从毕业典礼的演讲上得到人生经验教训,即:life lessons。
- </p>
- </li>
- </ul-->
- </div>
- </div>
- <?php } ?>
- </div>
- <?php }
- $no++; }?>
- </div>
- <?php }?>
- </div>
- </div>
- </div>
- <div style="page-break-after: always;"></div>
|