日期:2014-05-17 浏览次数:20874 次
//转到相应的页数
function selectCheck(){
var pageNo = document.getElementById("pageNo").value;
window.location.href="followup.do?operate=doFollowupList&pageNo="+pageNo+"&pageSize=<%=pageSize%>";
}
<%
//第几页
int pageNo = request.getAttribute("pageNo") != null ? Integer
.parseInt(request.getAttribute("pageNo").toString()) : 1;
//每页显示多少条
int pageSize = request.getAttribute("pageSize") != null ? Integer
.parseInt(request.getAttribute("pageSize").toString()) : 20;
%>
<table width="960" border="0" cellspacing="0" cellpadding="0" style="border:1px solid;border-color:#bddfee;margin-top:5px;margin-bottom:5px;">
<tr>
<td width="321" height="36">
当前页:<%=pageNo%>/<%=count % pageSize == 0 ? count / pageSize : count/ pageSize + 1%>页
数据总量:<%=count%>
</td>
<td width="637" align="right">
<a href="followup.do?operate=doFollowupList&pageNo=1&pageSize=<%=pageSize%>">【首页】</a>
<%if (pageNo > 1) {%>
<a href="followup.do?operate=doFollowupList&pageNo=<%=pageNo > 1 ? pageNo - 1 : 1%>&pageSize=<%=pageSize%>">【上一页】</a>
<%} else {%>
<a href="#">【上一页】</a>
<%
}
if (pageNo < (count % pageSize == 0 ? count / pageSize : count/ pageSize + 1)) {
%>
<a href="followup.do?operate=doFollowupList&pageNo=<%=pageNo >= (count % pageSize == 0? count / pageSize: count / pageSize + 1) ? pageNo : pageNo + 1%>&pageSize=<%=pageSize%>">【下一页】</a>
<%} else {%>
<a href="#">【下一页】</a>
<%}%>
<a href="followup.do?operate=doFollowupList&pageNo=<%=count % pageSize == 0 ? count / pageSize : count/ pageSize + 1%>&pageSize=<%=pageSize%>">【尾页】</a>
转到第<select id="pageNo" name="page" onChange="selectCheck()">
<%
String selected = "";
&nbs