<!--#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/>
<%
id=request("id")
Response.write "我的仓库"&chr(13)
Response.write "<br/>"
Response.write "<a href='cangku.asp?sid="&sid&"&amp;saytk="&saytk&"'>已收获</a>|"
Response.write "种子|"
Response.write "<a href='shangdian.asp?sid="&sid&"&amp;saytk="&saytk&"'>商店</a>"&chr(13)

Response.write "<br/>"
set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "select * from beibao where usid="&myid&" order BY lx desc",connnong,1,1

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>"
If id<>"" then
response.write "["&i&"].<a href='zhongzhi.asp?id="&id&"&amp;ids="&rs("lx")&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>种植</a>"&Chr(13)
End If

response.write nonglx(rs("lx"))
response.write "X"&ubb(rs("shuliang"))&Chr(13)
set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"select * from sd where id="&rs("lx"),connnong,1,1
response.write "成熟:"&rs1("times")&"小时"&Chr(13)&"经验:"&rs1("jinyan")&Chr(13)
rs1.close
Set rs1=nothing

response.write "<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 "你的背包里没有任何种子了，赶紧去<a href='shangdian.asp?sid="&sid&"&amp;saytk="&saytk&"'>商店</a>买点吧！<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>"&chr(13)
%>
<!--#include file="../fanhui.asp"-->
<%Call head1()%>