带有序号的的热门文章循环标签,$key =>
{php}
$order = array('log_ViewNums'=>'DESC');
$where = array(array('=','log_Status','0'));
$array = $zbp->GetArticleList(array('*'),$where,$order,array(9),'');
{/php}
{foreach $array as $key => $hotlist}
<article class="guide-inner top-num{$key+1}">
<div class="guide-inner-info">
<h4 class="g-i-top">
<span class="g-i-cate"><a href="{$hotlist.Category.Url}" target="_blank">{$hotlist.Category.Name}</a></span>
<span class="g-i-time"><i class="icon font-time"></i>{$hotlist.Time('Y-m-d')}</span>
</h4>
<h5>
<a href="{$hotlist.Url}" target="_self">{$hotlist.Title}</a>
</h5>
<p> {$hotlist.Intro}</p>
</div>
</article>
{/foreach}
本文地址: 热门文章带有序号的循环标签
版权声明:如发现本站有涉嫌抄袭侵权/违法违规的内容请联系客服!





