这是我写的 Feedbackview.asp 的一部分代码:(是连上次我发的Feedback.asp,仅供参考)
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="72" valign="top"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="tdbg_left" width="297" height="179" valign="top"><% call LeftTable(12)%></td>
<td width="6"></td>
<td valign="top">
<% call RightTable_top("留言中心")%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<TR>
<TD> <table width="100%" height="19" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="22%" height="18"> 留言中心>>
留言专区</td>
<td width="78%"><object classid="clsid

27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="50" height="70">
<param name="movie" value="Images/Freeback.swf">
<param name="quality" value="high">
<param name="wmode" value="Transparent">
<embed src="Images/Freeback.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="50" height="70" wmode="Transparent"></embed>
</object></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#999999"></td>
</tr>
</table>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Feedback where Language='0' and Publish<>'1' order by id desc"
rs.open sql,conn,1,1
dim MaxPerPageFeedback
MaxPerPageFeedback=5
'取得页数,并判断留言输入的是否数字类型的数据,如不是将以第一页显示
dim text,checkpage
text="0123456789"
Rs.PageSize=MaxPerPageFeedback
for i=1 to len(request("page"))
checkpage=instr(1,text,mid(request("page"),i,1))
if checkpage=0 then
exit for
end if
next
If checkpage<>0 then
If NOT IsEmpty(request("page")) Then
CurrentPage=Cint(request("page"))
If CurrentPage < 1 Then CurrentPage = 1
If CurrentPage > Rs.PageCount Then CurrentPage = Rs.PageCount
Else
CurrentPage= 1
End If
If not Rs.eof Then Rs.AbsolutePage = CurrentPage end if
Else
CurrentPage=1
End if
call list
'显示帖子的子程序
Sub list()%>
<%
If rs.eof and rs.bof then
If rs.eof and rs.bof then
response.write "<br> 没有留言"
exit Sub
End if
End if
%> <br>
<%
i=0
do while not rs.eof
%>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" >
<tr>
<td height="25" colspan="7"></td>
</tr>
<tr>
<td width="22" height="15"></td>
<td width="100" height="15" align="right">主 题:</td>
<td colspan="4"> <%if rs("username")="管理员"then%>
[管理员公告]
<%end if%>
<%=rs("title")%></a></td>
<td></td>
</tr>
<tr>
<td width="22" height="22"></td>
<td height="22" align="right" >反馈内容:</td>
<td colspan="4" align="center">
<table width="97%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><%=rs("Content")%></td>
</tr>
<tr>
<td height="4"></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td width="22" height="22"></td>
<td height="22" align="right">留言者:</td>
<td width="136" ><%=rs("Receiver")%>
</td>
<td width="110" align="right">留言时间:</td>
<td width="156"><%=rs("Time")%></td>
<td width="259" align="right">回复时间:<%=rs("Retime")%> </td>
<td width="21"></td>
</tr>
<tr>
<td width="22" height="22" rowspan="2" ></td>
<td rowspan="2" align="right" >管理员回复:</td>
<td colspan="4" rowspan="2" align="center">
<table width="97%" border="0" cellpadding="0" cellspacing="1" >
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="40" ><%if rs("ReFeedback")=""then%>
["未回复"]
<%else%>
<%=rs("ReFeedback")%>
<%end if%>
</td>
</tr>
<tr>
<td height="4"></td>
</tr>
</table></td>
<td background="Images/6.gif"></td>
</tr>
<tr>
<td width="21"></td>
</tr>
<tr valign="top">
<td height="21" colspan="7" ></td>
</tr>
<tr valign="top">
<td height="6" colspan="7" > </td>
</tr>
</table>
<%
i=i+1
if i >= MaxPerPageFeedback then exit do
rs.movenext
loop
%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <div align="right">
<%
Response.write "全部"
Response.write "共" & Cstr(Rs.RecordCount) & "条留言 "
Response.write "第" & Cstr(CurrentPage) & "/" & Cstr(rs.pagecount) & " "
If currentpage > 1 Then
response.write "<a href='FeedbackView.asp?&page="+cstr(1)+"'> 首页 </a>"
Response.write "<a href='FeedbackView.asp?page="+Cstr(currentpage-1)+"'> 上一页 </a>"
Else
Response.write " 上一页 "
End if
If currentpage < Rs.PageCount Then
Response.write "<a href='FeedbackView.asp?page="+Cstr(currentPage+1)+"'> 下一页 </a>"
Response.write "<a href='FeedbackView.asp?page="+Cstr(Rs.PageCount)+"'> 尾页 </a>"
Else
Response.write ""
Response.write " 下一页 "
End if
Response.write "转到第"
response.write"<select name='sel_page' onChange='javascript:location=this.options[this.selectedIndex].value;'>"
for i = 1 to Rs.PageCount
if i = currentpage then
response.write"<option value='FeedbackView.asp?page="&i&"&id="&id&"' selected>"&i&"</option>"
else
response.write"<option value='FeedbackView.asp?page="&i&"&id="&id&"'>"&i&"</option>"
end if
next
response.write"</select>页"
%>
</div></td>
</tr>
</table>
<%end sub%>
</TD>
</TR>
</table><% call RightTable_foot()%></td>
</tr>
</table></td>
</tr>
</table>
<%
rs.close
set rs=nothing
%>