|
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>
复制代码
|
上一篇:Discuz! 3.4全站帖子添加图片alt标签下一篇:Discuz手机版的提示页面
|