您的位置:首页 > 教程笔记 > 建站教程

dz论坛带数字序号的调用方式

2021-07-23 11:37:57 建站教程 78
dz论坛带数据序号的直接调用方法 $index数字标签
<section class="widget theme-widget wow fadeInUp" id="zbsixth_hot">
<h3 class="hmTitle">热门文章</h3>
<ul>
<!--{eval $slides = DB::fetch_all("SELECT * FROM ".DB::table('forum_thread')." ORDER BY `dateline` DESC LIMIT 0, 10");}-->
<!--{loop $slides $slide}-->
<!--{eval $index += 1}-->
<li class="hots"><i class="first">$index
</i><a href="forum.php?mod=viewthread&tid=$slide[tid]" title="$slide[subject]" target="_blank">$slide[subject]</a></li>
<!--{/loop}-->
</ul>
</section>


相关推荐