<% id=Trim(request("id")) Set rs = Server.CreateObject("ADODB.Recordset") sql="select * from product where id="&id rs.open sql,conn,1,3 %>
 
<% page=clng(request("page")) BigClassName=request("BigClassName") Set rs=Server.CreateObject("ADODB.RecordSet") sql="select * from news where BigClassName='"&BigClassName&"' order by id desc" rs.Open sql,conn,1,1 if rs.eof and rs.bof then response.Write("暂时没有记录") else %> <% rs.PageSize=40 if page=0 then page=1 pages=rs.pagecount if page > pages then page=pages rs.AbsolutePage=page for j=1 to rs.PageSize %> <% rs.movenext if rs.eof then exit for next %> <% end if rs.close set rs=nothing %>
<% if rs("FirstImageName")<>"" then response.write "图片新闻" end if %> &bigclass=<%= RS("bigclassname") %>" target="_blank"><%= RS("TITLE") %>  [<%= RS("AddDate") %>] (点击<%= RS("hits") %>)
> <%if Page<2 then response.write "首页 上一页 " else response.write "首页 " response.write "上一页 " end if if rs.pagecount-page<1 then response.write "下一页 尾页" else response.write "" response.write "下一页 尾页" end if response.write " 页次:"&Page&"/"&rs.pagecount&"页 " response.write " 共"&rs.recordcount&"条记录 "&rs.pagesize&"条记录/页" response.write " 转到:" response.write "

" %>