<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5"><table width="99%" height="19" border="0" cellpadding="0" cellspacing="0">
<tr><%
ClassName=request("BigClassName")
set rs_news=server.createobject("adodb.recordset")
sqltext4="select * from news where BigClassName='"&request("BigClassName")&"' order by id desc"
rs_news.open sqltext4,conn,1,1
rs_news.pagesize=1
%>
<td width="20" bgcolor="9dc2c8"> </td>
<td align="center" bgcolor="eef0ee" class="z2"> <%=rs_news("BigClassName")%></td>
</tr>
</table></td>
</tr>
<tr> <td width="20" height="13" valign="bottom" bgcolor="#9DC2C8"> </td>
<td width="34" align="center" valign="bottom"> </td>
<td width="223" align="left" valign="bottom">标题</td>
<td width="223" align="left" valign="bottom">发布人</td>
<td width="181" align="left" valign="bottom">发布时间</td>
</tr>
<%
if request("page")="" then
page1=1
elseif cint(request("page"))<1 then
page1=1
elseif cint(request("page"))>rs_news.pagecount then
page1=rs_news.pagecount
else
page1=cint(request("page"))
end if
rs_news.absolutepage=page1
%>
<%for i=1 to rs_news.pagesize %>
<%if rs_news.eof=true then%>
<%exit for%>
<%end if%>
<tr>
<td height="25"> </td>
<td> </td>
<td><a href="contentnews.asp?id=<%=rs_news("id")%>" class="QQ"><%=rs_news("title")%></a></td>
<td><%=rs_news("user")%></td>
<td><%=rs_news("Infotime")%></td>
</tr>
<%
rs_news.movenext
next
%>
<tr>
<form id="form1" name="form1" method="post" action="res.asp" onsubmit="return fun1()">
<td height="34" colspan="5" align="center" valign="bottom">
总共<%=rs_news.recordcount%>条信息 当前是(<%=page1%>/<%=rs_news.pagecount%>) <a href="?page=1"><font size="2">首页</font></a> <a href="?page=<%=page1-1%>"><font size="2">上一页</font></a> <a href="?page=<%=page1+1%>"><font size="2">下一页</font></a> <a href="?page=<%=rs_news.pagecount%>"><font size="2">未页</font></a>
跳转到
<input name="page" type="text" id="page" size="3" >
页
<input type="image" name="imageField" src="admin/Image/go.gif" /></td>
</form>
<script language="javascript">
function fun1(){
if(isNaN(document.form1.page.value)){
return false;
}
}
</script>
</tr>
<tr></tr>
</table>