分面问题...
请哥们帮忙看来,,地址能读出数据库资料,,,但上一页,下一页,首页,尾页 的页面数据显示不出
附源码:
<!--#include virtual="conn.asp"-->
<!--#include virtual="function.asp"-->
<style type="text/css">
<!--
.STYLE8 {color: #FF0000}
.STYLE13 {font-size: 22px}
.STYLE100 {
font-size: 15px;
font-weight: bold;
}
.STYLE101 {color: #FFFFFF}
-->
</style>
<body background="../images/1.gif">
<%
dim page,maxPerPage
maxPerPage=30
page=Request("page")
if (page="" or isempty(page)) then page=1
thisUrl="mingxi.asp?kehu="&request("kehu")&"?productSort="&productSort&""
set rs2=server.createObject("adodb.recordset")
set rs3=server.createObject("adodb.recordset")
set rs4=server.createObject("adodb.recordset")
rs2.open "select sum(endjine) from invoice where kehu='"&request("kehu")&"' and endjine>'0'",conn,1,1
rs4.open "select * from kehu where uname='"&request("kehu")&"' ",conn,1,1
rs3.open "select * from invoice where kehu='"&request("kehu")&"' and endjine>'0' order by invoice",conn,1,1
rs3.pagesize=MaxPerPage
%>
<script language="JavaScript">
<!--
function MM_reloadPage(init) {
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function jumpTo(i){
if(i==1){
this.document.location="<%=thisUrl%>";}
if(i==2){
this.document.location="<%=thisUrl%>&page=<%=page-1%>";}
if(i==3){
this.document.location="<%=thisUrl%>&page=<%=page+1%>";}
if(i==4){
this.document.location="<%=thisUrl%>&page=<%=rs3.pageCount%>";}
}
function recommend(i){
{
window.location="recommend.asp?id="+i;
}
}
// -->
</script>
<link href="../hover.css" rel="stylesheet" type="text/css" />
<table width="900" border="0" align="center" cellspacing="0">
<tr>
<td><table width="900" border="0" align="center">
<tr>
<td width="368">客戶:<%=rs3("kehu")%></td>
<td colspan="2" rowspan="2" valign="bottom"><table width="150" border="0" cellspacing="0">
<tr>
<td><form id="form1" name="form1" method="post" action="mingxi_all.asp">
<input type="submit" name="Submit1" value="显示全部" />
</form></td>
<td><form id="form1" name="form1" method="post" action="javascript:window.close()">
<input type="submit" name="Submit2" value="关闭" />
</form></td>
<td><form id="form1" name="form1" method="post" action="javascript:window.history.go(-1)">
<input type="submit" name="Submit3" value="主頁">
</form></td>
</tr>
</table></td>
<td width="111"><div align="right"><%=rs4("ren")%>:<%=rs4("shouji")%></div></td>
</tr>
<tr>
<td>英文名:</td>
<td><div align="right">電話:<%=rs4("dianhua")%></div></td>
</tr>
<tr>
<td colspan="2">地址:<%=rs4("add")%></td>
<td width="147"> </td>
<td><div align="right">傳真:<%=rs4("fax")%></div></td>
</tr>
</table>
<div align="right"></div></td>
</tr>
<tr>
<td><table border="1" align="center" cellspacing="1" bordercolor="#3399CC">
<tr>
<td width="60"><div align="center">日期</div></td>
<td width="35"><div align="center">发票NO!</div></td>
<td width="40"><div align="center">发票金额</div></td>
<td width="60"><div align="center">地址</div></td>
<td width="60"><div align="center">交货日期</div></td>
<td width="85"><div align="center">第1次付款</div></td>
<td width="85"><div align="center">第2次付款</div></td>
<td width="85"><div align="center">第3次付款</div></td>
<td width="85"><div align="center">第4次付款</div></td>
<td width="85"><div align="center">第5次付款</div></td>
<td width="85"><div align="center">第6次付款</div></td>
<td width="24"><div align="center">金额</div></td>
<td width="43"><div align="center">付款</div></td>
</tr>
<%
rs3.movefirst
i=1
if not (rs3.eof or err) then rs3.move (page-1)*maxPerPage
do while not (rs3.eof or err)
%>
<tr>
<td><%=rs3("date")%></td>
<td><a href=../invoice/invoice.asp?invoice=<%=rs3("invoice")%>>
<div align="center"><%=rs3("invoice")%></div>
</a></td>
<td><div align="right"><%=rs3("jine")%></div></td>
<td><%=rs3("add")%></td>
<td><%=rs3("sendout")%><span class="STYLE101">.</span></td>
<td><span class="STYLE8">
<%if rs3("pay1")>0 then %>
收据<%=rs3("No1")%>#<br>
日期<%=year(rs3("pay1date"))%>.<%=month(rs3("pay1date"))%>.<%=day(rs3("pay1date"))%><br>
金额<%=rs3("pay1")%>
<%else%>
<%end if%>
</span></td>
<td><span class="STYLE8">
<%if rs3("pay2")>0 then %>
收据<%=rs3("No2")%>#<br>
日期<%=year(rs3("pay2date"))%>.<%=month(rs3("pay2date"))%>.<%=day(rs3("pay2date"))%><br>
金额<%=rs3("pay2")%>
<%else%>
<%end if%>
</span></td>
<td><span class="STYLE8">
<%if rs3("pay3")>0 then %>
收据<%=rs3("No3")%>#<br>
日期<%=year(rs3("pay3date"))%>.<%=month(rs3("pay3date"))%>.<%=day(rs3("pay3date"))%><br>
金额<%=rs3("pay3")%>
<%else%>
<%end if%>
</span></td>
<td><span class="STYLE8">
<%if rs3("pay4")>0 then %>
收据<%=rs3("No4")%>#<br>
日期<%=year(rs3("pay4date"))%>.<%=month(rs3("pay4date"))%>.<%=day(rs3("pay4date"))%><br>
金额<%=rs3("pay4")%>
<%else%>
<%end if%>
</span></td>
<td><span class="STYLE8">
<%if rs3("pay5")>0 then %>
收据<%=rs3("No5")%>#<br>
日期<%=year(rs3("pay5date"))%>.<%=month(rs3("pay5date"))%>.<%=day(rs3("pay5date"))%><br>
金额<%=rs3("pay5")%>
<%else%>
<%end if%>
</span></td>
<td><span class="STYLE8">
<%if rs3("pay6")>0 then %>
收据<%=rs3("No6")%>#<br>
日期<%=year(rs3("pay6date"))%>.<%=month(rs3("pay6date"))%>.<%=day(rs3("pay6date"))%><br>
金额<%=rs3("pay6")%>
<%else%>
<%end if%>
</span></td>
<td><div align="right"><%=rs3("endjine")%></div></td>
<td><a href='payinvoice.asp?invoice=<%=rs3("invoice")%>'>现在付款</a></td>
<%
i=i+1
if i>maxPerPage then exit do
rs3.movenext
loop
%>
</tr>
<tr>
<td colspan="3" background="../images/04.jpg">Upto Date:<%=date%></td>
<td colspan="8" background="../images/04.jpg">Total Outstanding 共欠結余:HKD$ 港幣 共<%=rs3.recordCount%>行 第<%=page%>/<%=rs3.pagecount%> 页
<%if page>1 then%><input type="button" name="Submit3" value="首页" onClick="Javascript:jumpTo(1)">
<input type="submit" name="Submit4" value="上页" onClick="Javascript:jumpTo(2)">
<%else%>
<input type="button" name="Submit32" value="首页" disabled>
<input type="submit" name="Submit4" value="上页" disabled>
<%end if
if rs3.recordCount>page*maxPerPage then%>
<input type="submit" name="Submit5" value="下页" onClick="Javascript:jumpTo(3)">
<input type="submit" name="Submit6" value="末页" onClick="Javascript:jumpTo(4)">
<%else%>
<input type="submit" name="Submit5" value="下页" disabled>
<input type="submit" name="Submit6" value="末页" disabled>
<%end if%></td>
<td colspan="2" background="../images/04.jpg"><span class="STYLE100"><%=rs2(0)%>元</span></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="900" border="0">
<tr>
<td colspan="8" background="images/04.jpg"></td>
</tr>
</table></td>
</tr>
</table>
</body>