<!-- #include file="../conn.asp" -->
<!-- #include file="../admin.asp" -->
<%Call Head()%>
<%
response.write"<card title='我的神州行充值记录'>"
response.write"<p>"&chr(13)
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"SELECT rmbcent,cardnum,r1_Code,payUsid,toUsid,payTime,Tingnum from Rmbcent order by ID desc" ,conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=5
	Dim Count,page,pagecount,gopage			
	gopage="slist.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))
	For i=1 To PageSize     						
	If rs.eof Then Exit For	
	dim rs1,username
set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open"SELECT name from Users Where id="&rs("payUsid"),conn,1,1
  if not rs1.eof then
  username=rs1("name")
  else
  username="未知"
  end if
 rs1.close
 set rs1=nothing

dim jietxt
if rs("r1_Code")=1 then
jietxt="<b>[支付"&rs("rmbcent")&"元已成功]</b>"
elseif rs("r1_Code")>1 then
jietxt="<b>[已失败]</b>"
else
jietxt="<b>[未回应]</b>"
end if

response.write ""&i+(page-1)*PageSize&"."
response.write jietxt&"卡号:"&rs("cardnum")&"<br/>"
response.write "订单编号:"&rs("Tingnum")&"<br/>"
response.write "支付ID:"&rs("payUsid")&"/充入ID:"&rs("toUsid")&"<br/>"
response.write "提交时间:"&rs("payTime")&"<br/>"

	response.write "充值用户:<a href=""show.asp?id="&rs("payUsid")&"&amp;saytk="&saytk&"&amp;sid="&sid&""">"&username&"</a><br/>"&chr(13)

rs.moveNext
 	Next
	response.write "<br/>"&chr(13)
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下一页</a>"&chr(13)
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上一页</a>"&chr(13)

response.write "<br/>("&page&"/"&pagecount&")共"&count&"贴"
	if pagecount>1 then response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""2""/><a href="""&gopage&"page=$(page)"">页</a>"
Else
response.write "暂时没有记录！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="fanhui.asp"-->
</p></card>
</wml>