换成这个
<?php echo fun('qun@getByid',$rs['ext_id'])['title']; ?>
<!--你当前选择的模板文件是:common/view/title/img_001.htm-->
<link href="http://www.chongwuzhao.com/public\static//images/template/title/img_001/style.css" rel="stylesheet" type="text/css" />
<div class="qb_img_001">
<?php if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$rs): $mod = ($i % 2 );++$i;?>
<ul>
<ol><a href="<?php echo $rs['url']; ?>" target="_blank"><img onerror="this.src='__STATIC__/images/nopic.png'" src="<?php echo $rs['picurl']; ?>"></a></ol>
<li>
<h3><a href="<?php echo $rs['url']; ?>" target="_blank"><?php echo $rs['title']; ?></a></h3>
<p><?php echo fun('bbs@getContents',$rs['id'],$cleng>200?:400); ?></p>
<div>所属栏目:<?php echo $rs['sort_name']; ?>
所属圈子:{notempty name="$info.qun"}<a href="{:urls('qun/content/show',['id'=>$info['ext_id']])}">{$info['qun']['title']}</a>{else /}{/notempty}{notempty name="$info.qun"}<a href="{:urls('qun/content/show',['id'=>$info['ext_id']])}">{$info['qun']['title']}</a>{else /}{/notempty}
红色的获取不到圈子的名称
</div>
</li>
</ul>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<script type="text/javascript">
$(window).resize(function () { //当浏览器大小变化时
qb_img_001();
});
$(function(){
qb_img_001();
});
function qb_img_001(){
$('.qb_img_001').each(function(){
$(this).find('ul').removeAttr('class');
var thisObjW=$(this).width();
if(thisObjW>1200){
$(this).find('ul').addClass('type1');
}else if(thisObjW<1100 && thisObjW>701){
$(this).find('ul').addClass('type2');
}else if(thisObjW<700 && thisObjW>401){
$(this).find('ul').addClass('type3');
}else if(thisObjW<400 && thisObjW>251){
$(this).find('ul').addClass('type4');
}else{
$(this).find('ul').addClass('type5');
}
});
}
$('.qb_img_001 img').hover(
function(){$(this).animate({"max-width":"150%","max-height":"150%"},200);},
function(){$(this).animate({"max-width":"98%","max-height":"96%"},200);}
);
</script>
{notempty name="$info.qun"}<a href="{:urls('qun/content/show',['id'=>$info['ext_id']])}">{$info['qun']['title']}</a>{else /}{/notempty}