<!--#include file="conn.asp"-->

<%


call head()
Call saycarda("二手市场")
%>
<!--#INCLUDE file="../bbs/sy1.asp"-->


<%
pag=10
set rsxl=Server.CreateObject("ADODB.Recordset")
rspl="select * from shop_es order by fsj desc"
rsxl.open rspl,connshop,1,2
if rsxl.eof then
   Response.write "暂无二手商品!<br/>"
Else
page=cint(request.QueryString("page"))
if page="" or page<1 then page=1
maxpage=int((rsxl.recordcount-1)/pag)+1
if page>maxpage then page=maxpage

rsxl.Move((page-1)*pag)
dim j
j=1
do while ((not rsxl.EOF) and j <=cint(pag))
%>
<%=((page-1)*pag+j)%>.<a href='2view.asp?id=<%=rsxl("id")%>&amp;pagegg=<%=page%>&amp;sid=<%=sid%>'><%=ubb(rsxl("name"))%></a>
<br/>
<%
rsxl.Movenext  
j=j+1
loop

if page*pag<rsxl.recordcount then response.write("<a href='2shou.asp?dlid=" & dlid & "&amp;page=" & page+1 & "&amp;saytk="&saytk&"&amp;sid="&sid&"'>下一页</a>")
if page>1 then response.write("<a href='2shou.asp?dlid=" & dlid & "&amp;page=" & page-1 & "&amp;saytk="&saytk&"&amp;sid="&sid&"'>上一页</a>")

if page*pag<rsxl.recordcount or page>1 then response.write("<br/>")
if page*pag<rsxl.recordcount then response.write("----------<br/>(第"& page & "页/共" & (int(rsxl.recordcount/pag+1)) &"页/总" & rsxl.recordcount & "条)<br/>")
end if
%>


<a href="/shop/m2s.asp?sid=<%=sid%>">我要发布信息</a>


<br/><!--#include file="fanhui.asp"-->

<%
call headsay()
%>
