帝国CMS 首页列表页调用TAGS教程
[e:loop={0,13,3,0}] <?php $fr=$empire->fetch1("select infotags from diansui_ecms_news_data_1 where id='$bqr[id]'"); ?> <?php $alltag=""; $tag=explode(",",$fr[infotags]); for($t=0;$t<count($tag);$t++) { $alltag.='<a href="/tags-'.urlencode($tag[$t]).'-0.html">'.$tag[$t].'</a>'; } ?> <?php if($bqr[titlepic]) { ?> <li class='clearfix'><span class='fl'><a href='<?=$bqsr['titleurl']?>' target='_blank' rel='nofollow'><img src='<?=$bqr['titlepic']?>' alt='<?=$bqr['title']?>' /></a></span><h3><a href='<?=$bqsr['titleurl']?>' title='<?=$bqr['title']?>' target='_blank'><?=$bqr['title']?></a></h3><p><?=$bqr['smalltext']?>...<a href='<?=$bqsr['titleurl']?>' title='更多' target='_blank'>[更多]</a></p><div class='mn-lis-tit'><span class='mn-date'><?=date('Y-m-d',$bqr[newstime])?></span><span class='mn-category ml25'>类目:<a href='<?=$bqsr[classurl]?>'><?=$bqsr[classname]?></a></span><span class='mn-keyword ml25'>关键词:<?=$alltag?> </span></div></li> <?php } else { ?> <li class='clearfix border'><h3><a href='<?=$bqsr['titleurl']?>' title='<?=$bqr['title']?>' target='_blank'><?=$bqr['title']?></a></h3><p><?=$bqr['smalltext']?>...<a href='<?=$bqsr['titleurl']?>' title='更多' target='_blank'>[更多]</a></p><div class='mn-lis-tit'><span class='mn-date'><?=date('Y-m-d',$bqr[newstime])?></span><span class='mn-category ml25'>类目:<a href='<?=$bqsr[classurl]?>'><?=$bqsr[classname]?></a></span><span class='mn-keyword ml25'>关键词:<?=$alltag?></span></div></li> <?php } ?> [/e:loop]
赞
帝国cms列表页CorelDRAW教程