<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<!--#include file="CONN.asp"-->
<%
call head()
Call saycardd("查看商店后台")
response.write "<a href=""xjsd.asp?sid="&sid&"&amp;saytk="&saytk&"&amp;tp=1"">添加商品</a><br/>"
set rs=server.createobject("adodb.recordset")
sql="select * from sd where id>0 order by id"
rs.open sql,connnong,1,2
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10				
	Dim Count,page,pagecount,gopage			
	gopage="?sid="&sid&"&amp;saytk="&saytk&"&amp;"
	Count=rs.recordcount	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount
	rs.move(pagesize*(page-1))
dim ggss
	For i=1 To PageSize     						
	If rs.eof Then Exit For	
response.write"<a href=""xgsd.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&"&amp;tp=1"">修</a>|<a href=""scsd.asp?id="&rs("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&"&amp;tp=1"">删</a>"
response.write ""&i+(page-1)*PageSize&"."
response.write ubb(rs("name"))&"/单价:"
response.write ubb(rs("jiage"))&""&getcent&"/"
response.write "剩余:"&ubb(rs("shuliang"))&"个<br/>"
rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">跳转</a><br/>"
Else
response.write "暂时没有任何种子！<br/>"
end if
rs.close
set rs=nothing
connnong.close
set connnong=Nothing%>
<!--#include file="fanf.asp"-->
<%call head1()%>