123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740 |
- <?php switch ($topicType):case 1:?><!--单项填空-->
- <div class="singleFillIn">
- <?php include('topic_count.php');?>
- <div class="subjectModule">
- <div class="subjectItem">
- <h3><?php echo $topicInfo['title'];?></h3>
- <?php $anwser = '';?>
- <?php if(isset($topicInfo['slave']) && $topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <?php if(isset($slave['items'])&& isset($slave['items']['options']) &&$slave['items']['options']):?>
- <ul class="answers col-1 clearfix">
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <li><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <?php echo $option['option_content'];?></li>
- <?php if($option['option_correct'] == 1) $anwser = isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
- <?php endforeach;?>
- </ul>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif;?>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <span class="key"><?php echo $anwser;?></span>
- <?php if(isset($topicRateStu['choice_topic_wrong']) && isset($topicRateStu['choice_topic_wrong'][$topicId])):?>
- <?php
- arsort($topicRateStu['choice_topic_wrong'][$topicId]);
- $_str = '';
- foreach ($topicRateStu['choice_topic_wrong'][$topicId] as $k => $v) {
- $_str .= $k.'('.$v.'),';
- }
- $_str = rtrim($_str, ',');
- ?>
- <strong class="fl act">选错情况及人数:<?php echo $_str;?></strong>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break;?>
- <!--完形填空-->
- <?php case 2:?>
- <div class="clozeTest">
- <?php include('topic_count.php');?>
- <div class="clozeItem">
- <p class="title">请认真阅读下面短文,从短文后各题所给的A、B、C、D四个选项中,选出最佳选项,并在答题卡上将该项涂黑。</p>
- <div class="paragraph"><?php echo $topicInfo['title'];?></div>
- </div>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <div class="clozeAnswer">
- <ul>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <li class="clearfix">
- <b><?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>. <?php echo $slave['title'];?></b>
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <span><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <?php echo strip_tags($option['option_content']);?></span>
- <?php endforeach;?>
- <?php endif;?>
- </li>
- <?php endforeach;?>
- </ul>
- </div>
- <?php endif;?>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php if($option['option_correct'] == 1):?>
- <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--阅读理解-->
- <?php case 3:?>
- <div class="readUnderstand">
- <?php include('topic_count.php');?>
- <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
- <div class="readUnderstandItem">
- <?php echo $topicInfo['title'];?>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <div class="subjectModule">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <?php $readingWrongStu = isset($topicRateStu['reading_wrong_stu'][(string)$slave['topic_slave_id']]) ? $topicRateStu['reading_wrong_stu'][(string)$slave['topic_slave_id']] : array();?>
- <div class="subjectItem">
- <h3><?php echo isset($smallTopicNo[(string)$slave['topic_slave_id']])?$smallTopicNo[(string)$slave['topic_slave_id']]:'';?>. <?php echo strip_tags($slave['title']);?></h3>
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <ul class="answers col-1 clearfix reading">
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <li><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <p><?php echo $option['option_content'];?></p></li>
- <?php if($readingWrongStu && isset($readingWrongStu[$optionArr[$oKey]]) && $readingWrongStu[$optionArr[$oKey]]){?>
- <li>【学生名单】<?php echo $readingWrongStu[$optionArr[$oKey]];?></li>
- <?php }?>
- <?php endforeach;?>
- </ul>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php if($option['option_correct'] == 1):?>
- <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--任务型阅读-->
- <?php case 4:?>
- <div class="readUnderstand">
- <?php include('topic_count.php');?>
- <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
- <div class="readUnderstandItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-2">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--七选五-->
- <?php case 5:?>
- <div class="readUnderstand">
- <?php include('topic_count.php');?>
- <p class="pargaph">请认真阅读下面短文,并根据所读内容在文章后表格中的空格里填入一个最恰当的单词。</p>
- <div class="readUnderstandItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--语法填空-->
- <?php case 6:?>
- <div class="textFillIn">
- <?php include('topic_count.php');?>
- <div class="textItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-2">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <?php endif;?>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--短文改错-->
- <?php case 7:?>
- <div class="errorCorrection">
- <?php include('topic_count.php');?>
- <div class="errorCorrectionItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- </div>
- <div class="paragraph">
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <!-- --><?php //echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?><!--.-->
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--单词拼写-->
- <?php case 8:?>
- <div class="wordWrite">
- <?php include('topic_count.php');?>
- <div class="wordWriteList">
- <div class="wordWriteItem">
- <p class="subject"><?php echo $topicInfo['title'];?></p>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <p>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </p>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--选词填空-->
- <?php case 9:?>
- <div class="selectWordFillIn">
- <?php include('topic_count.php');?>
- <div class="selectWordItem">
- <!-- <div class="canSelWord clearfix">-->
- <!-- <span>A.wodk</span>-->
- <!-- <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span>-->
- <!-- <span>A.wodk</span>-->
- <!-- <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span> <span>A.wodk</span>-->
- <!-- </div>-->
- <div class="paragraph"><?php echo $topicInfo['title'];?></div>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--课文填空-->
- <?php case 10:?>
- <div class="textFillIn">
- <?php include('topic_count.php');?>
- <div class="textItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-2">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--句子翻译-->
- <?php case 11:?>
- <div class="translate">
- <?php include('topic_count.php');?>
- <div class="translateList">
- <div class="translateItem">
- <p><?php echo $topicInfo['title'];?></p>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--完成句子-->
- <?php case 12:?>
- <div class="completeSentence">
- <?php include('topic_count.php');?>
- <div class="sentenceList">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-1">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--书面表达-->
- <?php case 13:?>
- <div class="writtenExpression">
- <?php include('topic_count.php');?>
- <div class="tips">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="articalArea">
- _____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- </div>
- <div class="writtenAnswer">
- <span class="key"><?php echo isset($topicInfo['answer'])?$topicInfo['answer']:'';?></span>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- <!-- 作文解析 -->
- <?php include('en_article.php');?>
- </div>
- <?php break?>
- <!--阅读表达-->
- <?php case 14:?>
- <div class="readExpression">
- <?php include('topic_count.php');?>
- <div class="readExpressionIem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="small-question">
- <?php foreach ($topicInfo['slave'] as $slave): ?>
- <div class="question-item">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']]) ? $smallTopicNo[$slave['topic_slave_id']] . '.' : ''; ?>
- <?php if (isset($slave['title']) && $slave['title']): ?>
- <?php echo $slave['title']; ?>
- <?php endif; ?>
- </div>
- <?php endforeach; ?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-1">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--考试听力-->
- <?php case 15:?>
- <?php $letter_arr = array('A', 'B', 'C', 'D', 'E');?>
- <div class="hearingModule">
- <?php include('topic_count.php');?>
- <div class="subjectModule">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php if(isset($topicInfo['slave']) && $topicInfo['slave']):?>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php
- $option_asr = '';
- if (isset($slave['items']) && $slave['items']) {
- if (isset($slave['items']['options_answer']) && $slave['items']['options_answer']) {
- $option_asr = $slave['items']['options_answer'];
- }elseif (isset($slave['items']['options']) && $slave['items']['options']) {
- foreach ($slave['items']['options'] as $op_key => $option) {
- if ($option['option_correct']) {
- $option_asr = isset($letter_arr[$op_key]) ? $letter_arr[$op_key] : '';
- break;
- }
- }
- }
- }
- echo $option_asr;
- ?>
- </span>
- <?php endforeach;?>
- <?php endif;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i></p>
- <div class="paragraphs">
- <p><?php echo isset($topicInfo['parse_content']) && $topicInfo['parse_content']?$topicInfo['parse_content']:'略';?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--应用文写作-->
- <?php case 16:?>
- <!-- --><?php //break?>
- <!--读后续写-->
- <?php case 17:?>
- <div class="continueAfterRead">
- <?php include('topic_count.php');?>
- <div class="continueItem">
- <?php echo $topicInfo['title'];?>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- </div>
- <div class="continueAnswer">
- <p class="col-1">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </p>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--单句改错-->
- <?php case 18:?>
- <div class="sentenceError">
- <?php include('topic_count.php');?>
- <div class="errorList">
- <div class="errorItem">
- <p><?php echo $topicInfo['title'];?></p>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <span class="key">
- <?php
- $option_cont = isset($topicInfo['slave'])&&isset($topicInfo['slave']['items'])&&isset($topicInfo['slave']['items']['options']) && $topicInfo['slave']['items']['options']?$topicInfo['slave']['items']['options']['option_content']:'';
- if (!$option_cont) {
- $option_cont = isset($topicInfo['items']) && isset($topicInfo['items'][0]) && isset($topicInfo['items'][0]['options']) && isset($topicInfo['items'][0]['options'][0]) && $topicInfo['items'][0]['options'][0] ? $topicInfo['items'][0]['options'][0]['option_content'] : '';
- }
- echo $option_cont;
- ?>
- </span>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--单句语法填空-->
- <?php case 19:?>
- <div class="wordGrammar">
- <?php include('topic_count.php');?>
- <div class="wordGrammarList">
- <div class="wordGrammarItem">
- <p><?php echo $topicInfo['title'];?></p>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div>
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <!--单句翻译-->
- <?php case 20:?>
- <div class="sentenceTranslate">
- <?php include('topic_count.php');?>
- <div class="sentenceList">
- <div class="sentenceItem">
- <?php echo $topicInfo['title'];?>
- </div>
- </div>
- <div class="standardAnswerContent">
- <div class="answerItem">
- <div class="answerTitle">
- <i class="answerTag">【答案】</i>
- <div class="col-1">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <span class="key">
- <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
- <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
- <?php foreach ($slave['items']['options'] as $oKey => $option):?>
- <?php echo $option['option_content'];?>
- <?php endforeach;?>
- <?php endif;?>
- </span>
- <?php endforeach;?>
- </div>
- </div>
- <div class="answerContent">
- <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
- </div>
- </div>
- </div>
- </div>
- <?php break?>
- <?php endswitch;?>
- <?php if(in_array($topicType, array(2, 3, 4, 5))):?>
- <?php include('en_key_words.php');?>
- <?php endif;?>
|