点显示的页码数,变成了查询???
<!--#include file="Include/Conn.asp"-->
<HTML><script src="js/head.js"></script>
<script language="JavaScript" type="text/JavaScript">
suspendcode="<DIV id=backi style='right:20px;POSITION:absolute;TOP:120px;'><table width=40 border=0 align='center' cellpadding='5' cellspacing='1' bgcolor='#9a0000'><tr bgcolor='#EFEFEF'><td width='80' align='center' bgcolor=#FFFFFF><strong><br><a href=Add.asp class='redd'>签<br>写<br>留<br>言<br></a><br></strong></td></tr></table></div>"
document.write(suspendcode);
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.backi.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
</script>
<br>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<tr>
<form name="form1" method="post" action="search.asp">
<td>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60">搜索留言: </td>
<td width="113"><input name="t" type="text" class="sou" id="t" size="15"></td>
<td width="10"><td>
<td width="38"><input name="imageField" type="image" src="image/s.gif" width="27" height="22" border="0"></td>
</tr>
</table>
</div></td>
</form>
<tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<TBODY>
<TR>
<TD><%
set rs=server.createobject("adodb.recordset")
sql="select * from book where name='用户留言'order by id desc"
rs.open sql,conn,1,3
Rs.pagesize=pagesize
page=Request("page")
if (page-Rs.pagecount) > 0 then
page=Rs.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs.absolutepage=page
%>
<%
do while not Rs.eof
i = i + 1
if i > Rs.pagesize then
exit do
end if
ips=split(rs("ip"),".")
ip=""&ips(0)&"."&ips(1)&".*.*"
%>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE width=750
border=0 align="center" cellPadding=0 cellSpacing=0 bgColor=#9a0000 class=mrgtop8>
<TBODY>
<TR>
<TD width=12 height=24></TD>
<TD class="f14 fb fwhite"><IMG height=10
src="Image/tzstudent_70.gif" width=10 align=absMiddle> 来自:<%=rs("fox")%></TD>
</TR></TBODY></TABLE>
<TABLE width=750 border=0 align="center"
cellPadding=0 cellSpacing=1 bgcolor="#9A0000" class=bored style="BORDER-TOP-STYLE: none">
<TBODY>
<TR>
<TD width="189" bgcolor="#FFFFFF" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"><img src="<%=rs("pic")%>"></div></td>
</tr>
<tr>
<td height="35">
<div align="center"><strong><%=rs("Somane")%></strong></div></td>
</tr>
</table></TD>
<TD width="559" valign="top" bgcolor="#FFFFFF" ><table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td width="4%" align="right"><img src="Image/posttime.gif" width="11" height="11"></td>
<td width="71%">:<%=rs("time")%></td>
<td width="7%"><img src="Image/qq-.gif" alt="QQ:<%=rs("Comane")%>" width="18" height="18"></td>
<td width="7%"><img src="Image/friend.gif" alt="电话:<%=rs("Phone")%>" width="18" height="18"></td>
<td width="11%"><a href="mailto:<%=rs("email")%>"><img src="Image/MAIL.gif" alt="E-amil:<%=rs("email")%>" width="18" height="18" border="0"></a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td> → <U>主题:<%=rs("Title")%></U></td>
</tr>
<tr>
<td><%=cutstr(rs("content"),150)%> [<a href=# onClick="javascript:window.open('more.asp?id=<%=rs("id")%>','','width=600,height=300,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;" class="bla" target="_blank">详细</a>]</td>
</tr>
<%if rs("rebook")<>"" then%>
<tr>
<td><img src="Image/pen.gif" width="300" height="20"></td>
</tr>
<tr>
<td><font color="#999999">管理员回复:<%=rs("rebook")%></font></td>
</tr>
<%end if%>
</table></TD>
</TR>
</TBODY></TABLE>
<%
Rs.movenext
loop
%>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr align="center">
<td colspan="2"><br><table border=0 cellpadding=0 cellspacing=1 width=100%>
<tr><td>共有记录<%=Rs.recordcount%>条 当前<%=page%>页 共有<%=Rs.pagecount%>页 跳到第
<% for go=1 to Rs.pagecount
%>
<a href=search.asp?page=<%=go%>&t=<%=t%>><%=go%></a>
<%next%>页 <% if page=1 then %> <%else%><a href=search.asp?page=<%=page-1%>&t=<%=t%>>上一页</a> <%end if%><% if Rs.pagecount-page <> 0 then %><a href=search.asp?page=<%=page+1%>&t=<%=t%>>下一页</a> <%else%> <%end if%></td></tr></table><br>
<script src="js/foot.js"></script>
</BODY></HTML>
当我点不是当前页面时候,就变成点查询了,,晕晕
[此贴子已经被作者于2006-11-7 16:58:05编辑过]