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 我要结婚祝福语简短
18 婚前女儿生日祝福语简短