<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../inc/charsetasp.asp"-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="../core/Conn.asp"-->
<!--#include file="../core/fun/fun.asp"-->
<!--#include file="../core/fun/core.asp"-->
<!--#include file="../core/class/tr_page.asp"-->
<!--#include file="../core/class/tr_user.asp"-->
<!--#include file="../core/class/tr_article.asp"-->
<!--#include file="../core/md5.asp"-->
<!--#include file="../crinc/czsetinc170824.asp"-->

<%
Const funpath = "../"
Const dbpath = "../"
Set ctr_page = New tr_page
Set ctr_user = New tr_user
username=ctr_user.truserislog(1)
uname=username

safemd5 = trmd5(username)
pageno = tr_killstr(request.querystring("pageno"), 1, 8, 1, "", "", "", "", 1)
%>
<title>会员中心在线充值记录-<%=application(siternd & "55trsitetitle")%></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<script type="text/javascript" src="<%=funpath%>inc/isclose.asp?l=<%=funpath%>"></script>
<link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
<style type="text/css">
body{background:#f5f5f5;}
</style>
</head>
<body>
<div class="box170831">
<div class="hyzxzxcz">
<%=sitename170824%>会员中心充值记录
</div>
<%
sql = "select * from tr_orderlist170820 where usernamemd5='"&safemd5&"' and isdel=0 order by id desc "
page_size = 20
pagei = 0
n = (pageno -1) * page_size
Call ctr_page.create_rs(sql, rs, conn, page_size, pageno)
If Not rs.EOF Then
%>
<%
Do While Not rs.EOF
  If pagei>= page_size Then Exit Do
  pagei = pagei + 1
  n = n + 1
  buytime=rs("buytime")
%>
<div class="cznr2">
订单名称：<%=rs("ordername")%><br>
金额：<%=rs("truepay")%> 元<br>
状态：<%if rs("ispass") =1 then%><span class="trfont3">成功</span><%else%><a href="<%=funpath%>pay/usercz.asp?rmbv=<%=rs("truepay")%>&action=usercz&username=<%=rs("username")%>"><span class="trfont2">未付款</span></a><%end if%><br>
商户订单编号：<%=rs("ordernum")%><br>
下单时间：<%=FormatDate(rs("addtime"), 11)%><br>
付款时间：<%=FormatDate(buytime, 11) %><br>
</div>
<%
rs.movenext
Loop
Else
%>
<div class="trmidword"> 暂无内容</div>
<%
End If
rs.Close
%>
</table>
<%if ctr_page.page_count>1 then%>
<%= ctr_page.create_page("",ctr_page.page_count,pageno,"trpage")%>
<% end if%>
<!--#include file="../inc/ifr.asp"-->
</body>
</html>