en_slave_option.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  2. <div class="subjectModule">
  3. <?php foreach ($topicInfo['slave'] as $slave):?>
  4. <div class="subjectItem">
  5. <h3><?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>. <?php echo $slave['title'];?></h3>
  6. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  7. <ul class="answers col-1 clearfix">
  8. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  9. <li><?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>. <?php echo $option['option_content'];?></li>
  10. <?php endforeach;?>
  11. </ul>
  12. <?php endif;?>
  13. </div>
  14. <?php endforeach;?>
  15. </div>
  16. <?php endif;?>
  17. <div class="answerTitle">
  18. <i class="answerTag">【答案】</i>
  19. <p>
  20. <?php if(isset($topicInfo['slave'])&&$topicInfo['slave']):?>
  21. <?php foreach ($topicInfo['slave'] as $slave):?>
  22. <span class="key">
  23. <?php echo isset($smallTopicNo[$slave['topic_slave_id']])?$smallTopicNo[$slave['topic_slave_id']]:'';?>.
  24. <?php if(isset($slave['items']) && isset($slave['items']['options']) && $slave['items']['options']):?>
  25. <?php foreach ($slave['items']['options'] as $oKey => $option):?>
  26. <?php if($option['option_correct'] == 1):?>
  27. <?php echo isset($optionArr[$oKey])?$optionArr[$oKey]:'';?>
  28. <?php endif;?>
  29. <?php endforeach;?>
  30. <?php endif;?>
  31. </span>
  32. <?php endforeach;?>
  33. <?php endif;?>
  34. </p>
  35. </div>
  36. <div class="answerContent">
  37. <p><i class="analysisTag">【解析】</i><?php echo $topicInfo['parse_content'];?></p>
  38. </div>