123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>周样品推送</title>
- <?php $server = Yii::app()->request->hostInfo;?>
- <link rel="stylesheet" type="text/css" href="<?php echo $server.'/css/english_week_teacher/reset.css';?>">
- <link rel="stylesheet" type="text/css" href="<?php echo $server.'/css/english_week_teacher/base.css';?>">
- <link rel="stylesheet" type="text/css" href="<?php echo $server.'/css/english_week_teacher/en-weekDemo.css';?>" >
- </head>
- <body>
- <?php $tags = array(1=>'Ⅰ' ,2=>'Ⅱ', 3=>'Ⅲ'); ?>
- <div class="pdf-B5-new">
- <div class="pdf-content">
- <section class="topic">
- <?php
- $i=1;
- $coreVocabulary = $product_setting['vocabularySelfTest']['coreVocabulary']['onOff']; //核心词汇
- $vocabularyUse = $product_setting['vocabularySelfTest']['coreVocabulary']['vocabularyUse']; //词汇运用
- $keyPhrases = $product_setting['vocabularySelfTest']['keyPhrases']; //重点短语
- if($coreVocabulary || $vocabularyUse || $keyPhrases) {
- $j = 1;
- ?>
- <!---------核心词汇BEGIN----------->
- <div class="dib wdp-title">
- <img src="<?php echo $server . '/images/english_week_teacher/one.png'; ?>" alt="">
- <span class="wdp-tit-num">01</span>
- <span class="wdp-tit-msg">Expression Review(词汇自测)</span>
- <div class="wdp-tit-blo"></div>
- </div>
- <?php if ($single_words) { ?>
- <?php if($coreVocabulary) { ?>
- <!-- 核心词汇-01 -->
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>"
- alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Key Word(核心单词)</span>
- </div>
- <!-- <img src="./img/hxch.png" alt="" class="sub-tit-icon vtm"> -->
- <span class="sub-tit-msg vtm">(本单元词汇你记住了多少啊~请把他们写下来吧)</span>
- </div>
-
- <?php if($single_words_derivative):?>
- <!--words_type 1提示汉语释义 2提示英语单词 3中英互译-->
- <!--题目-->
- <ol class="sort-ol">
- <?php $td_no = 1;?>
- <?php if(isset($single_words_derivative[0])):?>
- <?php $half_count = ceil(count($single_words_derivative[0])/2) - 1;?>
- <?php foreach($single_words_derivative[0] as $k=>$v):?>
- <?php if($words_type == 2)://英译中?>
- <li><?php echo $v['b_answer']; ?></li>
- <?php elseif($words_type == 3)://中英互译?>
- <?php echo $td_no < $half_count?'<li>'.$v['body'].'</li>':'<li>'.$v['b_answer'].'</li>';?>
- <?php else://中译英?>
- <li><?php echo $v['body']; ?></li>
- <?php endif;?>
- <?php $td_no++;?>
- <?php endforeach;?>
- <?php endif;?>
- <?php if(isset($single_words_derivative[1])):?>
- <?php $half_count = ceil(count($single_words_derivative[1])/2) - 1;?>
- <?php foreach($single_words_derivative[1] as $k=>$v):?>
- <?php if($words_type == 2)://英译中?>
- <li><?php echo $v['b_answer']; ?></li>
- <?php elseif($words_type == 3)://中英互译?>
- <?php echo $k < $half_count?'<li>'.$v['body'].'</li>':'<li>'.$v['b_answer'].'</li>';?>
- <?php else://中译英?>
- <li><?php echo $v['body']; ?></li>
- <?php endif;?>
- <?php $td_no++;?>
- <?php endforeach;?>
- <?php endif;?>
- </ol>
- <!--答案-->
- <ol class="sort-ol">
- <?php $td_no = 1;?>
- <?php if(isset($single_words_derivative[0])):?>
- <?php $half_count = ceil(count($single_words_derivative[0])/2) - 1;?>
- <?php foreach($single_words_derivative[0] as $k=>$v):?>
- <?php if($words_type == 2)://英译中?>
- <li><?php echo $v['b_body']; ?></li>
- <?php elseif($words_type == 3)://中英互译?>
- <?php echo $td_no < $half_count?'<li>'.$v['answer'].'</li>':'<li>'.$v['b_body'].'</li>';?>
- <?php else://中译英?>
- <li><?php echo $v['answer']; ?></li>
- <?php endif;?>
- <?php $td_no++;?>
- <?php endforeach;?>
- <?php endif;?>
- <?php if(isset($single_words_derivative[1])):?>
- <?php $half_count = ceil(count($single_words_derivative[1])/2) - 1;?>
- <?php foreach($single_words_derivative[1] as $k=>$v):?>
- <?php if($words_type == 2)://英译中?>
- <li><?php echo $v['b_body']; ?></li>
- <?php elseif($words_type == 3)://中英互译?>
- <?php echo $k < $half_count?'<li>'.$v['answer'].'</li>':'<li>'.$v['b_body'].'</li>';?>
- <?php else://中译英?>
- <li><?php echo $v['answer']; ?></li>
- <?php endif;?>
- <?php $td_no++;?>
- <?php endforeach;?>
- <?php endif;?>
- </ol>
-
-
- <?php else:?>
- <ol class="sort-ol">
- <?php if ($single_words) {
- foreach ($single_words as $key => $val) {
- ?>
- <li><?php echo $val['teacher']; ?></li>
- <?php
- }
- } ?>
- </ol>
- <?php endif;?>
-
-
-
-
-
- <?php
- $j++;
- }?>
- <!-- 核心词汇关联的单句语法填空 -->
- <?php if($vocabularyUse) { ?>
- <?php if ($word_single_translation || $word_grammar_blank || $word_spelling || $complete_sentence) { ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>"
- alt="">
- <span class="wdp-tit-msg tac dib">Word in Practice(词汇运用)</span>
- </div>
- </div>
- <ol class="sort-ol">
- <!-- 单词拼写-->
- <?php foreach ($word_spelling as $val) { ?>
- <li><?php echo $val['queBody']; ?></li>
- <?php } ?>
-
- <!-- 单句语法填空-->
- <?php foreach ($word_grammar_blank as $val) { ?>
- <li><?php echo $val['queBody']; ?></li>
- <?php } ?>
- <!-- 完成句子-->
- <?php foreach ($complete_sentence as $val) { ?>
- <li><?php echo $val['queBody']; ?></li>
- <?php } ?>
- <!-- 单句翻译-->
- <?php foreach ($word_single_translation as $val) { ?>
- <li><?php echo $val['queBody']; ?></li>
- <?php } ?>
- </ol>
- <ol class="sort-ol">
- <?php foreach ($word_spelling as $topic_id => $val) { ?>
- <li>
- <div class="clearfix">
- <div class="answer-menu-msg fl">【答案】</div>
- <div class="real-menu-content"><?php
- if(is_array($val['answer'])){
- $res = implode(";",$val['answer']);
- }else{
- $res = $val['answer'];
- }
- $res = str_replace("<p>", '', $res);
- $res = str_replace("</p>", '', $res);
- echo $res; ?>
- </div>
- </div>
- <?php if($val['analysis']):?>
- <div class="clearfix">
- <div class="explain-menu-msg fl">【解析】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['analysis']);
- $res = str_replace("</p>", '', $res);
- echo $res;
- ?>
- </div>
- </div>
- <?php endif;?>
- </li>
- <?php } ?>
- <?php foreach ($word_grammar_blank as $topic_id => $val) { ?>
- <li>
- <div class="clearfix">
- <div class="answer-menu-msg fl">【答案】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['answer'][$topic_id]);
- $res = str_replace("</p>", '', $res);
- echo $res; ?>
- </div>
- </div>
- <?php if($val['analysis']):?>
- <div class="clearfix">
- <div class="explain-menu-msg fl">【解析】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['analysis']);
- $res = str_replace("</p>", '', $res);
- echo $res;
- ?>
- </div>
- </div>
- <?php endif;?>
- </li>
- <?php } ?>
- <?php foreach ($complete_sentence as $topic_id => $val) { ?>
- <li>
- <div class="clearfix">
- <div class="answer-menu-msg fl">【答案】</div>
- <div class="real-menu-content"><?php
- if(is_array($val['answer'])){
- $res = implode(";",$val['answer']);
- }else{
- $res = $val['answer'];
- }
- $res = str_replace("<p>", '', $res);
- $res = str_replace("</p>", '', $res);
- echo $res; ?>
- </div>
- </div>
- <?php if($val['analysis']):?>
- <div class="clearfix">
- <div class="explain-menu-msg fl">【解析】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['analysis']);
- $res = str_replace("</p>", '', $res);
- echo $res;
- ?>
- </div>
- </div>
- <?php endif;?>
- </li>
- <?php } ?>
- <?php
- if (($word_single_translation && !isset($word_single_translation['error'])) || $word_grammar_blank) { ?>
- <div class="answer-menu-msg need-margin">【答案】</div>
- <?php foreach ($word_single_translation as $id => $val) {
- ?>
- <li><?php echo $val['answer'][$id]; ?></li>
- <?php
- }
- } ?>
-
- </ol>
- <?php }
- }?>
- <!-- 核心词汇关联的单句语法填空 END -->
- <?php }
- ?>
- <!---------核心词汇END----------->
- <!---------重点短语BEGIN----------->
- <?php if($keyPhrases) { ?>
- <?php if ($phrase) { ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>"
- alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Key Phrase(核心短语)</span>
- </div>
- <span class="sub-tit-msg vtm">(将本单元学习的词汇运用到短语中,能加强记忆哟~)</span>
- </div>
- <ol class="sort-ol">
- <?php
- foreach ($phrase as $val) {
- ?>
- <li><?php echo $val['content'] . ' ' . $val['mean']; ?></li>
- <?php
- }
- ?>
- </ol>
- <?php }
- }
- $i++;
- }?>
- <!---------重点短语END----------->
- </section>
- <section class="topic">
- <?php
- $singleSentenceGrammar = $product_setting['focusOnGrammar']['singleSentenceGrammar']; //单句语法填空
- $grammaticalFillIn = $product_setting['focusOnGrammar']['grammaticalFillIn']; //语法填空
- if($singleSentenceGrammar || $grammaticalFillIn) {
- $j = 1;
- ?>
- <div class="dib wdp-title">
- <img src="<?php echo $server . '/images/english_week_teacher/one.png'; ?>" alt="">
- <span class="wdp-tit-num tac">0<?php echo $i; ?></span>
- <span class="wdp-tit-msg tac">Grammar Focus(语法聚焦)</span>
- <div class="wdp-tit-blo"></div>
- </div>
- <!---------单句语法填空BEGIN----------->
- <?php if($singleSentenceGrammar){ ?>
- <?php if ($topic_type_six) { ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>" alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Grammar Gap in Sentence(单句语法填空)</span>
- </div>
- </div>
- <ol class="sort-ol">
- <?php
- foreach ($topic_type_six as $val) {
- ?>
- <li><?php echo $val['queBody']; ?></li>
- <?php
- }
- ?>
- </ol>
- <?php } ?>
- <ol class="sort-ol">
- <?php if ($topic_type_six) {
- foreach ($topic_type_six as $topic_id => $val) {
- ?>
- <li>
- <div class="">
- <div class="answer-menu-msg fl">【答案】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['answer'][$topic_id]);
- $res = str_replace("</p>", '', $res);
- echo $res; ?></div>
- </div>
- <?php if($val['analysis']):?>
- <div class="clearfix">
- <div class="explain-menu-msg fl">【解析】</div>
- <div class="real-menu-content"><?php
- $res = str_replace("<p>", '', $val['analysis']);
- $res = str_replace("</p>", '', $res);
- echo $res;
- ?>
- </div>
- </div>
- <?php endif;?>
- </li>
- <?php
- }
- } ?>
- </ol>
- <?php $j++;
- }?>
- <!---------单句语法填空END----------->
- <!---------语法填空BEGIN----------->
- <?php if($grammaticalFillIn) { ?>
- <?php if ($topic_type_nineteen) { ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>"
- alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Grammar Gap Filling(语法填空)</span>
- </div>
- <!--<span class="sub-tit-msg vtm">【<?php echo key($topic_type_nineteen); ?>】</span>-->
- </div>
- <?php $no_passage = 1;?>
- <?php foreach($topic_type_nineteen as $key=>$val):?>
- <div class="wdp-sub-title three-title">
- <div class="dib sub-title-sim vtm">
- <img src="<?php echo $server.'/images/english_week_teacher/three.png'; ?>" alt="">
- <span class="sim-tit-msg tac dib">Passage <?php echo $no_passage;?></span>
- </div>
- <span class="sub-tit-msg">【<?php echo $key;?>】</span>
- </div>
- <div class="article-con">
- <?php echo $val['queBody'];?>
- </div>
- <div class="answer-menu-msg need-margin">【答案】</div>
- <ol class="sort-ol answer-ol-con">
- <?php foreach ($val['answer'] as $answer):?>
- <li class=""><?php $res = str_replace("<p>", '', $answer);
- $res = str_replace("</p>", '', $res);
- echo $res;
- ?></li>
- <?php endforeach;?>
- </ol>
- <?php if($val['analysis']):?>
- <div class="explain-menu-msg">【解析】</div>
- <div class="article-con">
- <?php echo $val['analysis']; ?>
- </div>
- <?php endif;?>
- <?php $no_passage++;?>
- <?php endforeach;?>
-
- <?php
- }
- }
-
- $i++;
- }
- ?>
- <!---------语法填空END----------->
- </section>
- <section class="topic">
- <!---------写作训练BEGIN----------->
- <?php
- $commentsOnGoodSentences = $product_setting['writingTraining']['commentsOnGoodSentences']; //佳句点拨
- $actualCombatDrill = $product_setting['writingTraining']['actualCombatDrill']; //实战演练
- if($commentsOnGoodSentences || $actualCombatDrill){
- $j = 1;
- ?>
- <?php if ($writing_training) { ?>
- <div class="dib wdp-title">
- <img src="<?php echo $server . '/images/english_week_teacher/one.png'; ?>" alt="">
- <span class="wdp-tit-num tac">0<?php echo $i; ?></span>
- <span class="wdp-tit-msg tac">Composition Drill(写作训练)</span>
- <div class="wdp-tit-blo"></div>
- </div>
- <div class="article-con">
- <?php echo $writing_training['content']; ?>
- </div>
- <?php } ?>
- <?php if($commentsOnGoodSentences){ ?>
- <?php if ($single_translation){ ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>" alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Key Sentence Translation(佳句点拨)</span>
- </div>
- </div>
- <ol class="sort-ol">
- <?php foreach ($single_translation as $val) { ?>
- <li><?php echo isset($val['queBody']) ? $val['queBody'] : ''; ?>
- ____________________________________________________________________________
- </li>
- <?php } ?>
- </ol>
- <div class="answer-menu-msg need-margin">【答案】</div>
- <ol class="sort-ol">
- <?php
- foreach ($single_translation as $id => $val) {
- ?>
- <li><?php echo $val['answer'][$id]; ?></li>
- <?php
- }
- } ?>
- </ol>
- <?php
- $j++;
- } ?>
- <!---------写作训练END----------->
- <?php if($actualCombatDrill){ ?>
- <?php if ($writing_training){ ?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server . '/images/english_week_teacher/sub-bg.png'; ?>" alt="">
- <span class="wdp-tit-num tac"><?php echo $tags[$j]; ?></span>
- <span class="wdp-tit-msg tac dib">Writing Practice(实战演练)</span>
- </div>
- <span class="sub-tit-msg vtm">(请运用佳句点拨完成写作)</span>
- </div>
- <div class="article-con line-style-height">
- <!-- Keeping a Positive Attitude
- How times flies! As students just entering high school, we will be faced with more learning tasks and heavier pressure.<br>___________________________ .-->
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- ____________________________________________________________________________
- </div>
- <div class="answer-menu-msg need-margin">【答案】</div>
- <div class="article-con">
- <?php
- echo $writing_training['model_essay'];
- }
- ?>
- </div>
- <?php }?>
- <?php
- $i++;
- }?>
- </section>
- <?php if($essayDetail){
- $essay_id = key($essayDetail);
- $accumulationOfNewWords = $product_setting['extensiveReadingOfForeignJournals']['accumulationOfNewWords']; //新词积累
- $appreciationOfGoldenSentences = $product_setting['extensiveReadingOfForeignJournals']['appreciationOfGoldenSentences']; //金句赏析
- $fullTextTranslation = $product_setting['extensiveReadingOfForeignJournals']['fullTextTranslation']; //全文翻译
- if($accumulationOfNewWords || $appreciationOfGoldenSentences || $fullTextTranslation){
- ?>
-
- <section class="topic">
- <div class="dib wdp-title">
- <img src="<?php echo $server.'/images/english_week_teacher/one.png'; ?>" alt="">
- <span class="wdp-tit-num tac">0<?php echo $i; ?></span>
- <span class="wdp-tit-msg tac">Extensive Reading(外刊泛读)</span>
- <div class="wdp-tit-blo"></div>
- </div>
- <?php $no_small= 1;?>
- <?php foreach($essayDetail as $ess_k=>$ess_v):?>
- <?php $essay_id = $ess_k;?>
- <div class="wdp-sub-title">
- <div class="dib sub-title vtm">
- <img src="<?php echo $server.'/images/english_week_teacher/sub-bg.png'; ?>" alt="">
- <span class="wdp-tit-num tac"><?php echo $i.'.'.$no_small;?></span>
- <span class="wdp-tit-msg tac dib">Passage <?php echo $no_small;?>(文章<?php echo $no_small;?>)</span>
- </div>
- </div>
- <div class="article-con">
- <?php echo $essayDetail[$essay_id]['title']; echo $essayDetail[$essay_id]['content']; ?>
- </div>
- <?php if($accumulationOfNewWords){ ?>
- <div class="wdp-sub-title three-title">
- <div class="dib sub-title-sim vtm">
- <img src="<?php echo $server.'/images/english_week_teacher/three.png'; ?>" alt="">
- <span class="sim-tit-msg tac dib">New Expression Accumulation(新词积累)</span>
- </div>
- </div>
- <div class="word-detail">
- <div class="word-list flex">
- <div class=""><?php echo $essayDetail[$essay_id]['accumulation']; ?></div>
- </div>
- </div>
- <?php } ?>
- <?php if($appreciationOfGoldenSentences){ ?>
- <div class="wdp-sub-title three-title">
- <div class="dib sub-title-sim vtm">
- <img src="<?php echo $server.'/images/english_week_teacher/three.png'; ?>" alt="">
- <span class="sim-tit-msg tac dib">Appreciation of Complex Sentence(金句赏析)</span>
- </div>
- </div>
- <div class="article-con">
- <?php echo $essayDetail[$essay_id]['golden_sentence']; ?>
- </div>
- <?php }?>
- <?php if($fullTextTranslation){ ?>
- <div class="wdp-sub-title three-title">
- <div class="dib sub-title-sim vtm">
- <img src="<?php echo $server.'/images/english_week_teacher/three.png'; ?>" alt="">
- <span class="sim-tit-msg tac dib">Passage Translation(全文翻译)</span>
- </div>
- </div>
- <div class="article-con">
- <?php echo $essayDetail[$essay_id]['translation']; ?>
- </div>
- <?php }?>
- <?php $no_small++;?>
- <?php endforeach;?>
- </section>
-
- <?php }
- } ?>
- </div>
- </div>
- </body>
- </html>
|