123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874 |
- <!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>
- <meta name="description" content="">
- <meta name="keywords" content="">
- <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/reset.css">
- <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/base.css">
- <link rel="stylesheet" href="<?php echo Yii::app()->request->hostInfo;?>/css/english_reading/hot-spot.css">
- <style>
- .pdf-B5 .head-serial .xu-hao {
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/en_reading/bg-topic-number.png';?> ) no-repeat;
- background-size: 100% 100%;
- }
- .pdf-B5 .module-bgc {
- background: url(<?php echo Yii::app()->request->hostInfo.'/images/en_reading/gong-xing.png';?> ) no-repeat;
- background-size: 100% 100%;
- }
- </style>
- </head>
- <body>
- <!-- 内容开始 -->
- <?php
- $options_arr = array("A.","B.","C.","D.","E.","F.","G.","H.","I.","J");
- ?>
- <div class="pdf-B5">
- <div class="topic">
- <div class="head-serial">
- <span class="xu-hao">A</span>
- </div>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons1.png';?>" alt="">
- </div>
- <div class="guided-reading">
- <span class="dao-du">【导读】</span><?php echo isset($hot_data['dksydd'])?$hot_data['dksydd']:'';?>
- </div>
- <div class="main-body">
- <?php if(isset($hot_data['dksytp']) && $hot_data['dksytp']):?>
- <img class="img" src="<?php echo $hot_data['dksytp']?>" alt="">
- <?php endif;?>
- <?php echo isset($hot_data['dksywb'])?$hot_data['dksywb']:'';?>
- </div>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons2.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['xxtlsy']) && $hot_data['xxtlsy']):?>
- <?php foreach($hot_data['xxtlsy'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons3.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['ljfxsy']) && $hot_data['ljfxsy']):?>
- <?php foreach($hot_data['ljfxsy'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons4.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['sbsy']) && $hot_data['sbsy']):?>
- <?php foreach($hot_data['sbsy'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons5.png';?>" alt="">
- </div>
- <!-- <div class="good-vocabulary">
- 1.词汇活用
- </div> -->
- <div class="vocabulary">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons6.png';?>" alt="">
- </div>
- <div class="stem-a">
- <?php echo isset($hot_data['yychjl'])?$hot_data['yychjl']:'';?>
- </div>
- <div class="vocabulary">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons7.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['yychhy']) && $hot_data['yychhy']):?>
- <?php foreach($hot_data['yychhy'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="vocabulary">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons8.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['yyjjfx']) && $hot_data['yyjjfx']):?>
- <?php foreach($hot_data['yyjjfx'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="point-title">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/en_reading/icons9.png';?>" alt="">
- </div>
- <?php if(isset($hot_data['zhyysy']) && $hot_data['zhyysy']):?>
- <?php foreach($hot_data['zhyysy'] as $topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $topic_data = $topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($topic_data['title'])?$topic_data['title']:'';?>
- </div>
- <?php if(isset($topic_data['slave']) && $topic_data['slave'] && !in_array($topic_data['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($topic_data['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($topic_data['answer']) && $topic_data['answer']):?>
- <div class="answer-content">
- <?php if(count($topic_data['answer'])==1){ ?>
- <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer'])<15){ ?>
- <?php echo '1~'.count($topic_data['answer']);?> <?php echo implode('',$topic_data['answer']);?>
- <?php }elseif(count($topic_data['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$topic_data['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($topic_data['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($topic_data['parse_content'])?$topic_data['parse_content']:'';?></div>
- </div>
- <?php if(isset($topic_data['chjl']) && $topic_data['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $topic_data['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['jzpx']) && $topic_data['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['jzpx'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['gjctz']) && $topic_data['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['gjctz'];?></p>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($topic_data['cnjjx']) && $topic_data['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <p><?php echo $topic_data['cnjjx'];?></p>
- </div>
- </div>
- <?php endif;?>
-
-
- </div>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- <div class="topic">
- <?php if(isset($topic_ids) && $topic_ids):?>
- <?php $n = 1;?>
- <?php foreach($topic_ids as $type=>$topic_id):?>
- <?php
- if(isset($topic_detail[$topic_id])){
- $v=$topic_detail[$topic_id];
- }else{
- continue;
- }
- ?>
- <div class="head-serial">
- <span class="xu-hao"><?php echo chr(65+$n);?></span>
- </div>
- <section class="topic">
- <div class="topic-msg">
- <span>主题语境:<?php echo isset($v['ztyj'])?$v['ztyj']:'';?></span>
- <span>体裁:<?php echo isset($v['tc'])?$v['tc']:'';?></span>
- <span>语篇等级:<em class="highlight-a"><?php echo isset($v['ypdj'])?$v['ypdj']:'';?></em></span>
- <span><?php echo substr($topic_id,4);?></span>
- </div>
- <div class="stem-a">
- <div class="big-tit">
- <?php echo isset($v['title'])?$v['title']:'';?>
- </div>
- <?php if(isset($v['slave']) && $v['slave'] && !in_array($v['type_id'],$type_config['seven_selected_five'])):?>
- <?php foreach($v['slave'] as $slave_key=>$slave_value):?>
- <div class="small-tit">
-
- <?php if(in_array($v['type_id'],array(430,41))):?>
- <div class="min-topic-block">
- <ul class="sort-list">
- <li>
- <i><?php echo ($slave_key+1);?>.</i>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <ul class="option-list">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <li><?php echo $options_arr[$op_k];?><?php echo $op_v;?></li>
- <?php endforeach;?>
- </ul>
- <?php endif;?>
- </li>
- </ul>
- </div>
- <?php else:?>
- <div class="<?php echo $slave_value['title']?'xiao-tit':'xiao-tit-number';?>"><?php echo ($slave_key+1).'.'.$slave_value['title']?></div>
- <?php if(isset($slave_value['options']) && $slave_value['options']):?>
- <div class="xuanxiang">
- <?php foreach($slave_value['options'] as $op_k=>$op_v):?>
- <span class="option"><b class="option-a"><?php echo $options_arr[$op_k];?></b><?php echo $op_v;?></span>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- <?php endif;?>
- <div class="answer-s">
- <div class="answer-text">【答案】</div>
- <?php if(isset($v['answer']) && $v['answer']):?>
- <div class="answer-content">
- <?php if(count($v['answer'])==1){ ?>
- <?php echo implode('',$v['answer']);?>
- <?php }elseif(count($v['answer'])<15){ ?>
- <?php echo '1~'.count($v['answer']);?> <?php echo implode('',$v['answer']);?>
- <?php }elseif(count($v['answer']) == 15){ ?>
- <?php
- $all_answer = implode('',$v['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- ?>
- <?php }else{?>
- <?php
- $all_answer = implode('',$v['answer']);
- echo '1~5';echo substr($all_answer,0,5);
- echo ' 6~10';echo substr($all_answer,5,5);
- echo ' 11~15';echo substr($all_answer,10,5);
- echo ' 15~'.count($v['answer']);echo substr($all_answer,15,5);
- ?>
- <?php } ?>
- </div>
- <?php endif;?>
- </div>
- <div class="analysis-wrap">
- <p class="analysis-title">【解析】</P>
- <div class="analysis"><?php echo isset($v['parse_content'])?$v['parse_content']:'';?></div>
- </div>
- <?php if(isset($v['chjl']) && $v['chjl']):?>
- <div class="module-bgc">
- <i>词汇积累</i>
- </div>
- <div class="question-type-mod-content">
- <div class="word-mean-item">
- <?php echo $v['chjl'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($v['jzpx']) && $v['jzpx']):?>
- <div class="module-bgc">
- <i>句子剖析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <?php echo $v['jzpx'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($v['gjctz']) && $v['gjctz']):?>
- <div class="module-bgc">
- <i>关键词拓展</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <?php echo $v['gjctz'];?>
- </div>
- </div>
- <?php endif;?>
- <?php if(isset($v['cnjjx']) && $v['cnjjx']):?>
- <div class="module-bgc">
- <i>长难句解析</i>
- </div>
- <div class="syntactic-analysis">
- <div class="syntactic-analysis-item">
- <?php echo $v['cnjjx'];?>
- </div>
- </div>
- <?php endif;?>
- </div>
- </section>
-
- <?php $n++;?>
- <?php endforeach;?>
- <?php endif;?>
-
- </div>
-
-
-
- </div>
- <script>
- window.onload = function () {
- var optionUl = document.getElementsByClassName('xuanxiang');
- for (var i = 0; i < optionUl.length; i++) {
- arrayFunction(optionUl[i])
- }
- function arrayFunction(option) {
- for( var j = 0;j<option.children.length;j++){
- var sumWidth = 0
- sumWidth += option.children[j].offsetWidth
- }
- if (sumWidth > 111) {
- for (var k = 0; k < option.children.length; k++) {
- option.children[k].style.display = 'block'
- }
- } else {
- for (var m = 0; m < option.children.length; m++) {
- option.children[m].style.display = 'inline-block'
- option.children[m].style.float = 'left'
- if(option.children[m].offsetWidth>103){
- option.children[m].style.width = '44mm'
- }else{
- option.children[m].style.width = '30mm'
- }
- }
- }
- }
- }
- </script>
- </body>
- </html>
|