<!--#include file="../Inc.asp"-->
<!--#include file="../ydzq.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%Call head()
Call saycardd("商店")

%><!--#include file="../sy1.asp"-->

<%=ubb3(dyhyy)%><br/>
------------------<br/>
<%
Response.write "<a href='cangku.asp?sid="&sid&"&amp;saytk="&saytk&"'>我的仓库</a>|"
Response.write "商店"&chr(13)
Response.write "<br/>"
set rs=server.createobject("adodb.recordset")
sql="select * from sd where shuliang>0"
rs.open sql,connnong,1,2

If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10				
	Dim Count,page,pagecount,gopage			
	gopage="index.asp?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	
	If saytk=100 Then response.write "<div class=""ad""></div>"
response.write"><a href=""goumai.asp?action=get&amp;id="&rs("id")&"&amp;userid="&myid&"&amp;sid="&sid&"&amp;saytk="&saytk&""">购买</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
Response.write "<br/><a href='index.asp?sid="&sid&"&amp;saytk="&saytk&"'>返回我的农场</a><br/>"&chr(13)
%>
------------------
<!--#include file="../fanhui.asp"-->
<%Call head1()%>