12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php if(isset($_htb_text_arr[$node_arr['pcId']]) && $_htb_text_arr[$node_arr['pcId']]):?>
- <?php
- $topic_text_arr = $_htb_text_arr[$node_arr['pcId']];
- $_details = isset($topic_text_arr['details'])?$topic_text_arr['details']:array();
- $topic_no = 0;
- $show_lib = true;//显示目录
- $show_topic_img = true;//显示好题标签
- ?>
- <?php foreach ($_details as $_k => $detail):?>
- <?php if($detail['pwId'] == 2):?>
- <?php
- $topic_id = $detail['topicId'];
- $topic_info = isset($topic_info_arr[$detail['topicId']]) ? $topic_info_arr[$detail['topicId']] : array();
- if(!$topic_info) continue;
- $topic_no++;
- ?>
- <?php include('good_topic.php');?>
- <?php elseif($detail['pwId'] == 1):?>
- <section class="products">
- <div class="edition">
- <?php if($show_lib):$show_lib = false;?>
- <?php if ($node_arr['level'] == 1):?>
- <div class="edition-title <?php echo $topic_text_arr['pc_id'];?>">
- <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
- </div>
- <?php elseif ($node_arr['level'] == 2):?>
- <div class="edition-title-two <?php echo $topic_text_arr['pc_id'];?>">
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-l.png';?> " alt="">
- <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
- <img src="<?php echo Yii::app()->request->hostInfo.'/images/math_htb/bg-edition-text-two-r.png';?> " alt="">
- </div>
- <?php else:?>
- <div class="edition-title-three">
- <!-- <img src="--><?php //echo config_item('static_url').'images/math_htb/bg-edition-three.png';?><!--" alt="周">-->
- <span class="text"><?php echo $topic_text_arr['pc_name'];?></span>
- </div>
- <?php endif;?>
- <?php endif;?>
- <div class="edition-msg msg-border">
- <div class="msg-text clearfix">
- <?php echo $detail['content'];?>
- </div>
- </div>
- </div>
- </section>
- <?php endif;?>
- <?php endforeach;?>
- <?php endif;?>
|