_pagination.html 1.3 KB
#define page(url,curPage,totalPage,totalSize,key,cid,extra)
<div>
<table class="table table-condensed table-advance" style="width: 800px; height: 20px;">
	<tr>
		<td>
			<a style="text-decoration: none;">每页10条,共#(totalSize??0)条数据,当前第#(curPage??0)页,共#(totalPage??0)页。</a>
		</td>
		#if((curPage??0)>1)
		<td>
			<a href="#(url)?page=1&key=#(key)&cid=#(cid)&#(extra)" style="cursor: pointer;">首页</a>
		</td>
		<td>
			<a href="#(url)?page=#(curPage-1)&key=#(key)&cid=#(cid)&#(extra)" style="cursor: pointer;">上一页</a>
		</td>
		#end

		#if((curPage??0) < (totalPage??0))
		<td>
			<a href="#(url)?page=#(curPage+1)&key=#(key)&cid=#(cid)&#(extra)" style="cursor: pointer;">下一页</a>
		</td>
		#end

		#if((curPage??0) !=(totalPage??0))
		<td>
			<a href="#(url)?page=#(totalPage)&key=#(key)&cid=#(cid)&#(extra)" style="cursor: pointer;">尾页</a>
		</td>
		#end
		
		#if((totalPage??0) > 1)
		<td>
			<a style="text-decoration: none; margin-left: 10px;">查看 </a> 
			<input style="width: 80px; height: 20px; margin-top: -15px;" id="inputPage" type="number"> 
			<a style="text-decoration: none;"></a> 
			<a style="margin-left: 10px; cursor: pointer;" onclick="onGoToPage()">跳转</a>
		</td>
		#end
	</tr>
</table>
</div>
#end