123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426 |
- <div class="paper teaching">
- <!-- 词汇集训-->
- <div class="part vocabulary">
- <div class="content">
- <div class="title-head">
- <div class="title">
- <div class="title-text">
- Expression Intensive Training(词汇集训)
- </div>
- </div>
- <div class="title-bottom">
- <!--span>人教必修一</span-->
- <span><?php echo $title; ?></span>
- </div>
- </div>
- <!-- 词汇回顾 -->
- <?php if($word_review && $wordReview){ ?>
- <div class="modular review">
- <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]; ?>、Expression Review (词汇回顾)</div>
- <?php foreach($word_review as $value){
- if(!$value['single_word'] && !$value['phrase']) continue;
- ?>
- <div class="unit-block">
- <div class="unit-title">
- <img src="<?php echo $server.'/images/magic_word/start.png';?>" alt="" />
- <span><?php echo $value['name']; ?></span>
- </div>
- <div class="type-block word-block">
- <div class="word-type">单词:</div>
- <p>
- <?php if($value['single_word']){
- $_word = '';
- foreach($value['single_word'] as $id=>$word){
- $_word .= $word['content'].', ';
- }
- echo substr($_word,0,-1);
- }?>
- </p>
- </div>
- <div class="type-block word-block">
- <div class="word-type">短语:</div>
- <p>
- <?php if($value['phrase']){
- $_word = '';
- foreach($value['phrase'] as $id=>$word){
- $_word .= $word['content'].',';
- }
- echo substr($_word,0,-1);
- }?>
- </p>
- </div>
- </div>
- <?php }?>
- <div class="qr-code">
- <div class="qr-code-text">用APP扫码点读词汇→</div>
- <img src="<?php echo $h5_image;?>" alt="" />
- </div>
- </div>
- <?php
- $flag_m_no++; } ?>
- <!-- 词汇精讲 -->
- <?php if($word_phase && $wordExplain){ ?>
- <div class="modular explain">
- <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]; ?>、Expression Consolidation (词汇精讲)
- </div>
- <div class="word-table">
- <table>
- <tbody>
- <?php
- $word_explain_no = 1;
- foreach($word_phase as $word_id=>$info){
- ?>
- <tr>
- <td>
- <div class="word-table-left">
- <div class="word">
- <i><?php echo $word_explain_no; ?></i>
- <span><?php echo $info['content']; ?></span><?php echo $info['phonetic_symbol']; ?>
- </div>
- <p><?php echo $info['mean']; ?></p>
- </div>
- </td>
- <td>
- <div class="word-table-right">
- <?php if(isset($info['derivative']['derivative']) && $info['derivative']['derivative']){ ?>
- <div class="from">
- <span class="from-lable">【派生】</span>
- <p class="from-txt">
- <?php
- $_content = '';
- foreach($info['derivative']['derivative'] as $id=>$content){
- $_content .= $content.';';
- }
- echo substr($_content,0,-1);
- ?>
- </p>
- </div>
- <?php }?>
- <?php if(isset($info['phrase']['phrase']) && $info['phrase']['phrase']){?>
- <div class="from">
- <span class="from-lable">【短语】</span>
- <p class="from-txt">
- <?php
- $_content = '';
- foreach($info['phrase']['phrase'] as $id=>$content){
- $_content .= $content.';';
- }
- echo substr($_content,0,-1);
- ?>
- </p>
- </div>
- <?php }?>
- <?php if(isset($info['assoc']) && $info['assoc']){?>
- <div class="from">
- <span class="from-lable">【趣味记忆法】</span>
- <p class="from-txt">
- <?php echo $info['assoc'];?>
- </p>
- </div>
- <?php }?>
- </div>
- </td>
- </tr>
- <?php $word_explain_no++; } ?>
- </tbody>
- </table>
- </div>
- <div class="qr-code">
- <div class="qr-code-text">用APP扫码点读词汇→</div>
- <img src="<?php echo $h5_image;?>" alt="" />
- </div>
- </div>
- <?php $flag_m_no++;}?>
- <!-- 精准训练 -->
- <?php
- if($translate || $wordApply || $discourse){
- ?>
- <div class="modular train">
- <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 s-line 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['mean']; ?><i><?php echo $val['content']; ?></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['mean'] :$val['content']; ?><i><?php echo $translate_type_no < 11 ? $val['content'] : $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }elseif($setting['translate_type'] == 2){ //英译中
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i><?php echo $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i><?php echo $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }else{ //中译英
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['mean']; ?><i><?php echo $val['content']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['mean'] ; ?><i><?php echo $val['content']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }
- }else{ //个性
- if(isset($translates['type']) && $translates['type'] == 1){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['mean']; ?><i><?php echo $val['content']; ?></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['mean'] : $val['content']; ?><i><?php echo $translate_type_no < 11 ? $val['content'] : $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }elseif(isset($translates['type']) && $translates['type'] == 2){
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i><?php echo $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['content']; ?><i><?php echo $val['mean']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }elseif(isset($translates['type']) && $translates['type'] == 3){
- if(isset($translates['phrases'])){
- foreach ($translates['phrases'] as $val){
- ?>
- <li><?php echo $val['mean']; ?><i><?php echo $val['content']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- if(isset($translates['single_words'])){
- foreach ($translates['single_words'] as $val){
- ?>
- <li><?php echo $val['mean'] ; ?><i><?php echo $val['content']; ?></i></li>
- <?php
- $translate_type_no++;
- }
- }
- }
- }
- ?>
- </ol>
- </div>
- </div>
- <?php $flag_m_no++; } ?>
- <!-- 词汇运用 -->
- <?php if($word_apply_ids && $wordApply){
- #$wordSpell 单词拼写是否显示
- #$sentenceFill 单句语法填空是否显示
- # $sentenceTranslate 单句翻译是否显示
- if($wordSpell || $sentenceFill || $sentenceTranslate) {
- $topic_type = array(8=>'Word Spelling (单词拼写)',19=>'Grammar Gap in Sentence (单句语法填空)',20=>'Sentence Translation (单句翻译)');
- $no = 1;
- // print_r($word_apply_content);exit;
- ?>
- <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)){
- if(!$wordSpell && $tp == 8)continue;
- if(!$sentenceFill && $tp == 19)continue;
- if(!$sentenceTranslate && $tp == 20)continue;
- ?>
- <div class="type-block">
- <div class="type-title">
- <div class="type-title-content">
- <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>
- <ol class="sort-list <?php echo $tp == 20 ? 'b-line' : ''; ?>">
- <?php foreach($word_apply_ids[$tp] as $topic_id){
- ?>
- <li>
- <?php if(isset($word_apply_content[$topic_id])){
- echo preg_replace("/<\/?[p|P|article][^>]*>/si","",$word_apply_content[$topic_id]['queBody']);
- $answer = isset($word_apply_content[$topic_id]['answer'][$topic_id]) ? preg_replace("/<\/?[p|P][^>]*>/si","",$word_apply_content[$topic_id]['answer'][$topic_id]) : '';
- $analysis = preg_replace("/<\/?[p|P][^>]*>/si","",$word_apply_content[$topic_id]['analysis']);
- echo $tp == 20 ? '<i>'.$answer.'</i>' : '<div class="ans-ana">
- <div class="ans">
- <em class="ana-lable">【答案】</em>
- <span>'.$answer.'</span>
- </div>
- <p class="analysis">
- <em class="ana-lable">【解析】</em>
- '.$analysis.'
- </p>
- </div>';
- }else{
- continue;
- } ?>
- </li>
- <?php
- }
- ?>
- </ol>
- </div>
- <?php }?>
- <?php
- $no++;} $flag_m_no++;
- }
- }?>
- <!-- 语篇训练 -->
- <?php if($card_topic_ids && $discourse){
- $topic_type = array(2=>'Choice Cloze (完形填空)', 3=>'Reading Comprehension (阅读理解)', 5=>'Sentence Cloze (七选五)', 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 paragraph">
- <div class="type-title">
- <div class="type-title-content">
- <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>
- <article>
- <?php echo isset($card_topic_content[$card_topic_ids[$tp]]) ? preg_replace("/(?:height|width)=(\'|\").*?\"/si","",$card_topic_content[$card_topic_ids[$tp]]['queBody']) : ''; ?>
- </article>
- <?php if($tp == 3 ){ ?>
- <div class="option-block">
- <?php if(isset($card_topic_content[$card_topic_ids[$tp]])){
- $topic_no = 1;
- foreach($card_topic_content[$card_topic_ids[$tp]]['slave'] as $v){
- ?>
- <div class="question-block">
- <p class="question">
- <?php echo $topic_no.'.'.preg_replace("/<\/?[p|P][^>]*>/si","",$v['queBody']) ; ?>
- </p>
- <ul class="option-list">
- <?php echo preg_replace("/<\/?[p|P][^>]*>/si","",$v['options']) ; ?>
- </ul>
- </div>
- <?php $topic_no++;}
- }?>
- </div>
- <?php }elseif($tp == 2){
- if(isset($card_topic_content[$card_topic_ids[$tp]])){
- ?>
- <div class="option-block">
- <ul class="sort-list">
- <?php foreach($card_topic_content[$card_topic_ids[$tp]]['slave'] as $v){
- ?>
- <li>
- <ul class="option-list">
- <?php echo preg_replace("/<\/?[p|P][^>]*>/si","",$v['options']) ; ?>
- </ul>
- </li>
- <?php
- }?>
- </ul>
- </div>
- <?php
- }
- }?>
- <div class="ans-ana">
- <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 style="font-weight: bold"><?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']; ?>
- </div>
- </div>
- </div>
- <?php }
- $no++; }?>
- </div>
- <?php
- } ?>
- </div>
- </div>
- <?php $flag_m_no++;}?>
- <div style="page-break-after: always;"></div>
- </div>
- </div>
- <div style="page-break-after: always;"></div>
|