<TABLE height=19 cellSpacing=0 cellPadding=0 width="600" align=center border=0>
<TBODY>
<TR>
<TD width="21%" bgColor=#eeeeee height=18><STRONG> 留言列表</STRONG></TD>
<TD width="79%" bgColor=#eeeeee><STRONG><FONT color=#000000>
—><%if page=1 and not page=pagecount then%>
<a href="add.asp?page=<%=page+1%>">下一页</a> 第<%=page%>页/共有<%=pagecount%>页
<%elseif page=pagecount and not page=1 then%>
<a href="add.asp?page=<%=page-1%>">上一页</a> 第<%=page%>页/共有<%=pagecount%>页
<%elseif page<1 then%><div class="font" align="right"><font color=red>没有任何记录!</font></div>
<%elseif page>pagecount then%><div class="font" align="right"><font color=red>没有任何记录!</font></div>
<%elseif page=1 and page=pagecount then%>
<%else%>
<a href="add.asp?page=<%=page-1%>">上一页</a>
<a href="add.asp?page=<%=page+1%>">下一页</a> 第<%=page%>页/共有<%=pagecount%>页
<%end if%>
</FONT></STRONG></TD>
</TR>
<TR>
<TD bgColor=#999999 colSpan=2
height=1></TD></TR></TBODY></TABLE><br>
<table width="600" border="1" align="center" bordercolor="#666666" style="border-collapse: collapse">
<tr>
<td width="208" height="25" align="center" bgcolor="#cccccc"><p align="center"><strong>留言主题</strong></p></td>
<td width="146" align="center" bgcolor="#cccccc"><strong>时间</strong></td>
<td width="224" align="center" bgcolor="#cccccc"><strong>回复</strong></td>
</tr>
<%
set rs1=server.createobject("adodb.recordset")
sql1="select * from book"
rs1.open sql1,conn,1,1
rs1.PageSize=3
pagecount=rs1.PageCount
page=int(request.QueryString ("page"))
if page<=0 then page=1
if request.QueryString("page")="" then
page=1
end if
rs1.AbsolutePage=page
%>
<%for i=1 to rs1.PageSize%>
<%if rs1.eof then
exit for
end if
%>
<tr>
<td align="center"><%=rs1("content")%></td>
<td align="center"><%=rs1("data")%></td>
<%if rs1("reply")<>"" then %>
<td align="center"><%=rs1("reply")%></td>
<%else%>
<td align="center">暂无回复</td>
<%end if%>
</tr>
<%
rs1.movenext
next
%>
</table>