{sta:if($result['countpage']>0)[exc]}
{echo:lp{m_page_pre};/}
{sta:if($first_page==1)[exc]}
{echo:'1';/}...
{end:if/}
{sta:for($i=$start_page;$i<=$end_page;$i++)[loop]}
{echo:$i;/}
{end:for/}
{sta:if($last_page==1)[exc]}
...{echo: $result['countpage'];/}
{end:if/}
{echo:lp{m_page_next};/}
{end:if/}