例如这样的
<?php for($i=$pages['startPage'];$i<$pages['endPage'];$i++):?>
<a href="/cms/index-<?=$i?>.html"></a>
<?php endfor;?>
<?php for($i=$pages['startPage'];$i<$pages['endPage'];$i++):?>
<a href="/cms/index-<?=$i?>.html"></a>
<?php endfor;?>
{for $foo=$pages['startPage'] to $pages['endPage']-1}
<a href="/cms/index-{$foo}.html">{$foo}</a></li>
{/for}