分页
来源:互联网 发布:育知同创官网 编辑:程序博客网 时间:2024/06/07 06:39
#if($eventPage>0) #if(1!=$cur_event_page) <span class="page"><a href="/?cur_event_page=${cur_event_page-1}">上一页</a></span> #end #set($temp=9) #if($eventPage<10) #set($temp=$eventPage) #end #foreach($count in [1..$temp]) #if($count==$cur_event_page) <span id="cur_page" >$count</span> #else <span class="page"><a href="/?cur_event_page=$count">$count</a></span> #end #end #if($eventPage>10)..<span class="page"><a href="/?cur_event_page=$eventPage">$eventPage</a></span> #end #if($eventPage!=$cur_event_page) #set($temp=$cur_event_page+1) <span class="page"><a href="/?cur_event_page=${temp}">下一页</a></span> #end #end