destoon实现调用自增数字从1开始的方法
本文示例讲述了destoon实现调用自增数字从1开始的方法,在进行数据调用的时候有一定的实用价值。希望对大家的destoon开发有所帮助。具体方法如下:
示例功能:destoon调用自增数字从1开始。
具体代码如下:
<!--{php$tags=tag("moduleid=14&length=46&condition=status=3&pagesize=10&order=hitsdesc&template=null");}-->
{loop$tags$k$t}
<li>{php$k=++$k;}
<ahref="{$t[linkurl]}"rel="externalnofollow"target="_blank"class="item">
<spanclass="num">{$t[hits]}</span>
<iclass="iconicon2">{$k++}</i>
<spanclass="txtf-ibf-thide">{$t[title]}</span>
</a>
</li>
{/loop}
热门推荐
10 儿子立冬祝福语简短独特
11 对当兵的祝福语简短
12 侄儿高考试祝福语简短
13 伴郎红包祝福语朋友简短
14 媳妇生日简短祝福语朋友
15 公司年会祝福语简短最好
16 元旦感恩祝福语简短大全
17 红包祝福语简短10字
18 周六早晨祝福语简短