没有合适的资源?快使用搜索试试~ 我知道了~
java页面查询结果分页
3星 · 超过75%的资源 需积分: 19 26 下载量 160 浏览量
2009-08-27
15:34:20
上传
评论
收藏 6KB TXT 举报
温馨提示
试读
6页
查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页查询结果分页
资源推荐
资源详情
资源评论
<%
nAddButtonStyle = 1;
nPageSize = 20;
szPageBarURL="SaleOpenListMain.jsp?PageNo=";
String YH="17";
%>
<%
nRecordCount=0;
nStartLine = nPageSize * (nPageNo - 1);
nEndLine = nPageSize * nPageNo - 1;
nRecordCount=AA.length;
x=0;
while((nStartLine+x++)<=nEndLine){
n=(int)nStartLine+x-1;
if(n<AA.length){
%>
<tr class="ListTableRow" id="Row" onClick="javascript:setRowFocus(this,false,<%=(n - 1)%>);">
<td nowrap> </td>
<td nowrap><%=AA[n][0]%></td>
<td nowrap><%=AA[n][1]%></td>
<td nowrap><%=AA[n][4]%></td>
nAddButtonStyle = 1;
nPageSize = 20;
szPageBarURL="SaleOpenListMain.jsp?PageNo=";
String YH="17";
%>
<%
nRecordCount=0;
nStartLine = nPageSize * (nPageNo - 1);
nEndLine = nPageSize * nPageNo - 1;
nRecordCount=AA.length;
x=0;
while((nStartLine+x++)<=nEndLine){
n=(int)nStartLine+x-1;
if(n<AA.length){
%>
<tr class="ListTableRow" id="Row" onClick="javascript:setRowFocus(this,false,<%=(n - 1)%>);">
<td nowrap> </td>
<td nowrap><%=AA[n][0]%></td>
<td nowrap><%=AA[n][1]%></td>
<td nowrap><%=AA[n][4]%></td>
<td nowrap><%=AA[n][2]%></td>
</tr>
<% }}%>
</table>
<%@ include file="..//System//MainPageBar.jsp"%>
MainPageBar.jsp
<%
if (nRecordCount!=0){
if(nRecordCount % nPageSize!=0)
nPageCount = (long)(nRecordCount/nPageSize+1);
else
nPageCount = nRecordCount/nPageSize;
nPageRange = PAGE_RANGE;
}%>
<table style="border-collapse: collapse; border-top-width: 0" border="1" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000000" bordercolor="#87A482">
<tr>
<td align="right" style="border-top-style: none; border-top-width: medium">
<table border="0" width="100%" cellspacing="0" cellpadding="0" >
<tr class="ListTableSum">
<td style="PADDING-TOP: 3px" valign="middle" height="22" align="right">
<%=codeToString("第"+nPageNo+"页 每页"+nPageSize+"条记录 共"+nPageCount+"页"+nRecordCount+"条记录") %>
</td>
<td width="165" valign="middle" align="center" style="PADDING-TOP: 3px" nowrap>
</tr>
<% }}%>
</table>
<%@ include file="..//System//MainPageBar.jsp"%>
MainPageBar.jsp
<%
if (nRecordCount!=0){
if(nRecordCount % nPageSize!=0)
nPageCount = (long)(nRecordCount/nPageSize+1);
else
nPageCount = nRecordCount/nPageSize;
nPageRange = PAGE_RANGE;
}%>
<table style="border-collapse: collapse; border-top-width: 0" border="1" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000000" bordercolor="#87A482">
<tr>
<td align="right" style="border-top-style: none; border-top-width: medium">
<table border="0" width="100%" cellspacing="0" cellpadding="0" >
<tr class="ListTableSum">
<td style="PADDING-TOP: 3px" valign="middle" height="22" align="right">
<%=codeToString("第"+nPageNo+"页 每页"+nPageSize+"条记录 共"+nPageCount+"页"+nRecordCount+"条记录") %>
</td>
<td width="165" valign="middle" align="center" style="PADDING-TOP: 3px" nowrap>
剩余5页未读,继续阅读
资源评论
- youyou3328529592012-12-08对于做页面查询很有帮助。
- 羊羔叔2016-06-06确实很有帮助。。。
caiyuan922
- 粉丝: 20
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功