htb_anwser.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php if(isset($_htb_text_arr[$node_arr['pcId']]) && $_htb_text_arr[$node_arr['pcId']]):?>
  2. <?php
  3. $topic_text_arr = $_htb_text_arr[$node_arr['pcId']];
  4. $_details = isset($topic_text_arr['details'])?$topic_text_arr['details']:array();
  5. $topic_no = 0;
  6. ?>
  7. <div class="standard-answer-mod">
  8. <div class="standard-answer-mod-title edition">
  9. <?php if ($node_arr['level'] == 1):?>
  10. <div class="edition-title">
  11. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  12. </div>
  13. <?php elseif ($node_arr['level'] == 2):?>
  14. <div class="edition-title-two">
  15. <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-l.png';?>" alt="">
  16. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  17. <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-r.png';?>" alt="">
  18. </div>
  19. <?php else:?>
  20. <div class="edition-title-three">
  21. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  22. </div>
  23. <?php endif;?>
  24. </div>
  25. <?php foreach ($_details as $_k => $detail):?>
  26. <?php if(isset($detail['pwId']) && $detail['pwId'] == 2):?>
  27. <div class="answer-topic-block">
  28. <?php
  29. $topic_info = isset($topic_info_arr[$detail['topicId']]) ? $topic_info_arr[$detail['topicId']] : array();
  30. if(!$topic_info) continue;
  31. $topic_no++;
  32. ?>
  33. <div class="answer-topic-item">
  34. <div class="fwb">
  35. <span class="number"><?php echo $topic_no;?>、【<?php echo $topic_info['topic_id'];?>】 </span>
  36. <span>【答案】<?php echo $topic_info['answer'];?> </span>
  37. </div>
  38. <div>
  39. <span class="fwb">【解析】 </span><?php echo $topic_info['analysis'];?>
  40. </div>
  41. </div>
  42. </div>
  43. <?php endif;?>
  44. <?php endforeach;?>
  45. </div>
  46. <?php endif;?>