-
{sta:if($result['result'])[exc]}
{sta:foreach($result['result'] as $val)[loop]}
- {echo: $val['add_time'];/}[{echo:$cat_name;/}] {echo: $val['title'];/} {end:foreach/} {end:}else{ ;/} {echo:$language->r('i_none_articles');/} {end:if/}
{sta:$nowname = basename($_SERVER['PHP_SELF']);
$pagenum=5;
$now_location = 3;
if($result['page']!=1)[exc]}
{echo:$language->r('b_prepage');/}
{end:if/}
{sta:if($result['page']>$now_location)[exc]}
1...
{end:if/}
{sta:if($result['page']<=$now_location){
$i=1;
$pageno=$pagenum;
}else{
$i=$result['page']-$now_location+1;
$pageno=$i+$pagenum-1;
}
if($pageno > $result['countpage']){
$i = $result['countpage']-$pagenum+1 <1 ? $i=1:$i = $result['countpage']-$pagenum+1;
$pageno = $result['countpage'];
}
if($i != $pageno){
for($i;$i<=$pageno;$i++)[exc]}
{echo:$i;/}
{end:}for/}
{sta:if($result['countpage']>$pageno)[exc]}
...{echo:$result['countpage'];/}
{end:if/}
{sta:if($result['page']!=$result['countpage'] && $result['countpage'] != 0)[exc]}
{echo:$language->r('b_nextpage');/}
{end:if/}
{end:if/}