0){
$where2 = "area_id=$areaid and parent_id=38 and topid=38 and is_del=0 and status=1";
}else{
$where2 = "parent_id=38 and topid=38 and is_del=0 and status=1";
}
?>
{eyou:assign name='pid' value="$route_param.tid" /}
{eyou:sql sql="select COUNT(*) as total FROM __PREFIX__arctype where $where2" cachetime='3600' empty='没有数据' id="list"}
{eyou:php}
$total_page = ceil($list['total']/$pagesize);
$total_page_for = $total_page + 1;
$pro_page = $curpage - 1;
$pev_page = $curpage + 1;
{/eyou:php}
{eyou:if condition='($route_param.tid == 38 && $areaid === 0)'}
{eyou:if condition='((int)$total_page > 1)'}
{eyou:if condition='((int)$curpage === 1)'}
首页
上一页
{eyou:else /}
首页
{eyou:if condition='((int)$curpage === 2)'}
上一页
{eyou:else /}
上一页
{/eyou:if}
{/eyou:if}
{eyou:for start='1' end="$total_page_for"}
{eyou:if condition='((int)$i === 1)'}
{eyou:if condition='((int)$curpage === $i)'}
{$i}
{eyou:else /}
{$i}
{/eyou:if}
{eyou:else /}
{eyou:if condition='((int)$curpage === $i)'}
{$i}
{eyou:else /}
10){
if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
{$i}
3 && ((int)$curpage-2) === $i){
echo "
...";
}
if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){
echo "
...";
}else{
}
?>
{$i}
{/eyou:if}
{/eyou:if}
{/eyou:for}
{eyou:if condition='((int)$curpage === (int)$total_page)'}
下一页
末页
{eyou:else /}
下一页
末页
{/eyou:if}
{/eyou:if}
共
{eyou:php}
echo $total_page;
{/eyou:php}
页
{$list.total}条
{eyou:else /}
{eyou:if condition='((int)$total_page > 1)'}
{eyou:if condition='((int)$curpage === 1)'}
首页
上一页
{eyou:else /}
首页
{eyou:if condition='((int)$curpage === 2)'}
上一页
{eyou:else /}
上一页
{/eyou:if}
{/eyou:if}
{eyou:for start='1' end="$total_page_for"}
{eyou:if condition='((int)$i === 1)'}
{eyou:if condition='((int)$curpage === $i)'}
{$i}
{eyou:else /}
{$i}
{/eyou:if}
{eyou:else /}
{eyou:if condition='((int)$curpage === $i)'}
{$i}
{eyou:else /}
10){
if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
{$i}
3 && ((int)$curpage-2) === $i){
echo "
...";
}
if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){
echo "
...";
}else{
}
?>
{$i}
{/eyou:if}
{/eyou:if}
{/eyou:for}
{eyou:if condition='((int)$curpage === (int)$total_page)'}
下一页
末页
{eyou:else /}
下一页
末页
{/eyou:if}
{/eyou:if}
共
{eyou:php}
echo $total_page;
{/eyou:php}
页
{$list.total}条
{/eyou:if}