123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
- <div class="subjectModule">
- <?php foreach ($topicInfo['slave'] as $slave):?>
- <div class="subjectItem">
- <h3><?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>. <?php echo $slave['title'];?></h3>
- <?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 endforeach;?>
- </ul>
- <?php endif;?>
- </div>
- <?php endforeach;?>
- </div>
- <?php endif;?>
- <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 if($option['option_correct'] == 1):?>
- <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
- <?php endif;?>
- <?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>
|