_pagination.html
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#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