[field:global.autoindex/]
$ctp->LoadSource($Innertext);
while($row = $dsql->GetArray($thisrs))
{
$sqlCt++;
foreach($ctp->CTags as $tagid=>$ctag){
if(!empty($row[$ctag->GetName()])){ $ctp->Assign($tagid,$row[$ctag->GetName()]); }
}
$GLOBALS['autoindex']++; //每循环一次加上一个1然后解析出来
$revalue .= $ctp->GetResult();
}
<div class="box">
<h1>阅读排行</h1>
<ul>{dede:arclist row=10 channelid=1 orderby=hot titlelen=100}
<li><b>[field:global name=autoindex/]</b><a href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist}
</ul>
</div>
欢迎光临 源于生活 (http://bbs.vingoo.info/) | Powered by Discuz! X3.1 |