$tagstr=''; $tsql=$empire->query("select tagid from {$dbtbpre}enewstagsdata where id='$r[id]' and classid='$r[classid]' ");
while($tr=$empire->fetch($tsql)){ $tt=$empire->fetch1("select * from {$dbtbpre}enewstags where tagid=".$tr['tagid']." limit
1"); if(!$tt['tagid']){ continue; }else{ //tagid式的动态链接,采用以下1行代码 $tagslink=$public_r['newsurl'].'e/tags/?tagid='.$tt['tagid'];
} $tagstr.='
<a href="'.$tagslink.'" title="'.$tagname.'" target="_blank">'.$tt['tagname'].'</a>'; } /*结束*/ $listtemp='
<li class="pl archive-thumb">
<article>
<h2>
<a href="[!--titleurl--]" title="[!--oldtitle--]" rel="bookmark">[!--title--]</a>
</h2>
<a class="pic float-left" href="[!--titleurl--]" title="[!--oldtitle--]" rel="bookmark">
<img class="lazy lazy-hidden" src="[!--news.url--]css/grey.gif" data-lazy-type="image" lazydata-src="[!--titlepic--]" alt="[!--oldtitle--]"
width="330" height="200" />
<noscript>
<img src="[!--titlepic--]" alt="[!--oldtitle--]" width="330" height="200" />
</noscript>
</a>
<p>[!--smalltext--]</p>
<p class="more">
<a class="more-link" href="[!--titleurl--]">阅读全文</a>
</p>
<p class="post-meta">
<span>
<i class="fa fa-rss fa-fw"></i>[!--this.classname--]</span>
<span>
<i class="fa fa-clock-o fa-fw"></i>[!--newstime--]</span>
<span>
<i class="fa fa-eye fa-fw"></i>[!--onclick--] </span>
<span>
<i class="fa fa-comment-o fa-fw"></i>
<a href="[!--titleurl--]#comments">[!--plnum--]</a>
</span>
<span>
<i class="fa fa-tags fa-fw"></i>'.$tagstr.'</span>
</p>
<div class="clear"></div>
</article>
</li>';
文章评论 本文章有个评论