You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.9 KiB
92 lines
2.9 KiB
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<style>
|
|
.first,.previous,.next,.last,input.pageJumpBtn{background:url(images/btnbg.png) 0 0 no-repeat; width:53px; height:20px; line-height:20px; display:inline-block;}
|
|
input.pageJumpBtn{border:none; cursor:pointer;}
|
|
|
|
</style>
|
|
<table width="100%">
|
|
<tr>
|
|
<td colspan="7" align="center">
|
|
<div class='tfoot-fr' style='float:right;'>
|
|
<div class='pagebar'>
|
|
<span class='first'><s:if test='pagination.isFirstPage() == true||pagination.totalCount==0'>
|
|
第一页
|
|
</s:if>
|
|
<s:else>
|
|
<a href="javascript:getQueryPageId(0)">第一页</a>
|
|
</s:else></span>
|
|
<span class='previous'><s:if test='pagination.isFirstPage() == true||pagination.totalCount==0'>
|
|
上一页
|
|
</s:if>
|
|
<s:else>
|
|
|
|
<a href="javascript:getQueryPageId(-1)">上一页</a>
|
|
</s:else></span>
|
|
<span class='next'><s:if test='pagination.isLastPage() == true||pagination.totalCount==0'>
|
|
下一页
|
|
</s:if>
|
|
<s:else>
|
|
|
|
<a href="javascript:getQueryPageId(1)">下一页</a>
|
|
</s:else></span>
|
|
<span class='last'><s:if test='pagination.isLastPage() == true||pagination.totalCount==0'>
|
|
最末页
|
|
</s:if>
|
|
<s:else>
|
|
|
|
<a href="javascript:getQueryPageId(2)">最末页</a>
|
|
</s:else></span>
|
|
|
|
第
|
|
<s:if test='pagination.pageNo==0'>
|
|
<input value="1" name="pageNo" id="pageNo" style="width:25px;text-align:center" type='text' onKeyUp="value=value.replace(/\D/g,'')" class='inputText gotopage'/>
|
|
</s:if><s:else>
|
|
<input value="<s:property value='pagination.pageNo'/>" name="pageNo" id="pageNo" type='text' style="width:25px;text-align:center" onKeyUp="value=value.replace(/\D/g,'')" class='inputText gotopage'/>
|
|
</s:else>
|
|
/
|
|
<span class="js_totalPages"><s:property value="pagination.totalPage" /></span>页 <input type='button' class='pageJumpBtn' value="跳 转" onClick="fReloadCurrentPage(document.mainForm.pageNo.value);"/></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class='tfoot-fl' style='float:left;'>共 <span class='js_total'><s:property value="pagination.totalCount" /></span> 条记录,每页 <span class='js_pageSize'><s:property value="pagination.pageSize" /></span> 条
|
|
|
|
</td>
|
|
</tr>
|
|
</table><div align="right">
|
|
|
|
|
|
</div><script>
|
|
//载入指定页
|
|
function getQueryPageId(index)
|
|
{
|
|
var page=0;
|
|
if(index==0)
|
|
page=1;
|
|
else if(index==2)
|
|
page=<s:property value="pagination.totalPage"/>
|
|
else if(index==1)
|
|
page=<s:property value="pagination.nextPage"/>
|
|
else if(index==-1)
|
|
page=<s:property value="pagination.prePage"/>
|
|
|
|
fReloadCurrentPage(page);
|
|
|
|
}
|
|
|
|
/**
|
|
* 刷新按钮响应函数
|
|
**/
|
|
function fReloadCurrentPage(nIndex)
|
|
{
|
|
var total = ${pagination.totalPage};
|
|
if(nIndex>total){
|
|
document.getElementById("pageNo").value=1;
|
|
}else{
|
|
document.getElementById("pageNo").value=nIndex;
|
|
}
|
|
document.mainForm.submit();
|
|
}
|
|
|
|
</script> |