good_topic.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!-- 好题训练-开始 -->
  2. <?php if($show_topic_img):$show_topic_img = false;?>
  3. <section class="products-module">
  4. <div class="products-module-title">
  5. <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/img-good-topic-title.png';?>" alt="好题训练">
  6. </div>
  7. <div class="products-module-content">
  8. <div class="topic-block">
  9. <?php endif;?>
  10. <div class="is-qr-code-topic-block">
  11. <div class="topic-wrap train-topic-block">
  12. <div class="title">
  13. <span class="number"><?php echo $topic_no;?>、【<?php echo $topic_info['topic_id'];?>】 </span>
  14. <div class="text">
  15. <?php if(isset($topic_method_use[$topic_info['topic_id']])):?>
  16. <p>考点:<?php echo $topic_method_use[$topic_info['topic_id']];?></p>
  17. <?php endif;?>
  18. </div>
  19. </div>
  20. <div class="topic-main">
  21. <div class="clearfix" style="position:relative;">
  22. <!-- 题干 -->
  23. <div class="mt6 font-text"><?php echo $topic_info['queBody'];?></div>
  24. </div>
  25. <!-- 选项 -->
  26. <!-- col-1:一行1个 col-2:一行2个 col-4:一行4个 -->
  27. <?php if(isset($topic_info['options']) && $topic_info['options']):?>
  28. <?php
  29. $list_type = isset($topic_info['list_type'])?$topic_info['list_type']:0;
  30. if ($list_type == 1) {
  31. $option_num = 4;
  32. }elseif ($list_type == 2) {
  33. $option_num = 2;
  34. }else{
  35. $option_num = 1;
  36. }
  37. ?>
  38. <ul class="option clearfix col-<?php echo $option_num;?>">
  39. <?php echo $topic_info['options'];?>
  40. </ul>
  41. <?php endif;?>
  42. </div>
  43. <!-- 答题区域留白 -->
  44. <?php if($topic_info['type'] == 7):?>
  45. <p class="answer-area"></p>
  46. <?php endif;?>
  47. </div>
  48. <?php if(isset($method_video[$topic_info['topic_id']])):?>
  49. <div class="qr-code-wrap">
  50. <img src="<?php echo 'data:image/png;base64,'.$method_video[$topic_info['topic_id']];?>" alt="">
  51. </div>
  52. <?php endif;?>
  53. </div>
  54. <!--下一个不是题结束标签-->
  55. <?php if(!isset($_details[$_k+1]) || !(isset($_details[$_k+1]) && isset($_details[$_k+1]['pwId']) && $_details[$_k+1]['pwId'] == 2)):$show_topic_img = true;?>
  56. </div>
  57. </div>
  58. </section>
  59. <?php endif;?>
  60. <!-- 好题训练-结束 -->