<!--#include file="Inc.asp"-->
<!--#include file="ydzq1.asp"-->
<%Call Head()
call saycarda("勋章自助商城")
TPP=request("TPP")
if TPP<>"" then
response.write "提示:清空全部勋章,操作成功<br/>"
End if
set rs=Server.CreateObject("ADODB.Recordset")
rs.Open "select * from xunzhang order BY ID  desc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10				
	Dim Count,page,pagecount,gopage			
	gopage="xunzhang.asp?saytk="&saytk&"&amp;sid="&sid&"&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 ""&i+(page-1)*PageSize&"."
response.write "<img src='"&ubb(rs("tou"))&"' alt='"&ubb(rs("name"))&"'/><br/>勋章名称:"
response.write ubb(rs("name"))&""
response.write"<br/>￥ "&ubb(rs("cent"))&"个"&getcent&"<a href=""goumai.asp?id="&rs("id")&"&amp;action=get&amp;saytk="&saytk&"&amp;sid="&sid&""">购买</a><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

response.write"<br/><a href=""xunzhang.asp?TPP=1&amp;saytk="&saytk&"&amp;sid="&sid&""">清空我的全部勋章</a><br/>"
if TPP<>"" then
conn.Execute("update users set xuan='' where id="&myid)
response.write "提示:清空全部勋章,操作成功<br/>"
End if


conn.close
set conn=nothing
%>
<!--#include file="fanhui.asp"-->
<%call headsay()%>