level.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. $show_lib = true;//显示目录
  7. $show_topic_img = true;//显示好题标签
  8. ?>
  9. <?php foreach ($_details as $_k => $detail):?>
  10. <?php if($detail['pwId'] == 2):?>
  11. <?php
  12. $topic_id = $detail['topicId'];
  13. $topic_info = isset($topic_info_arr[$detail['topicId']]) ? $topic_info_arr[$detail['topicId']] : array();
  14. if(!$topic_info) continue;
  15. $topic_no++;
  16. ?>
  17. <?php include('good_topic.php');?>
  18. <?php elseif($detail['pwId'] == 1):?>
  19. <section class="products">
  20. <div class="edition">
  21. <?php if($show_lib):$show_lib = false;?>
  22. <?php if ($node_arr['level'] == 1):?>
  23. <div class="edition-title <?php echo $topic_text_arr['pc_id'];?>">
  24. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  25. </div>
  26. <?php elseif ($node_arr['level'] == 2):?>
  27. <div class="edition-title-two <?php echo $topic_text_arr['pc_id'];?>">
  28. <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-l.png';?> " alt="">
  29. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  30. <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-r.png';?> " alt="">
  31. </div>
  32. <?php else:?>
  33. <div class="edition-title-three">
  34. <!-- <img src="--><?php //echo config_item('static_url').'images/math_htb/bg-edition-three.png';?><!--" alt="周">-->
  35. <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
  36. </div>
  37. <?php endif;?>
  38. <?php endif;?>
  39. <div class="edition-msg msg-border">
  40. <div class="msg-text clearfix">
  41. <?php echo $detail['content'];?>
  42. </div>
  43. </div>
  44. </div>
  45. </section>
  46. <?php endif;?>
  47. <?php endforeach;?>
  48. <?php endif;?>