<%@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"-->
<%
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)
'if ctr_user.ismailactivated=0 and isopencheckmailtr180218=1 then response.redirect("trcheckmail180218.asp?ischeckmail=1")
%>
<!--#include file="../inc/headtaginc.asp"-->
<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"></style>
<!--#include file="../inc/phoneewmjs.asp"-->
</head>
<body>

<div class="container trblock" id="trblock178888">
<div class=" col-lg-12 <%=colbs12%> trrow1199 trmarb1199 trlist trovh" id="trleft178888">
<div class="publicnr trpad1">
<div class="box170831">
<div class="hyzxzxcz"> 会员购买文章消费记录 </div>
<%
sql = "select * from tr_userbuyrecharge810803 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
  addtime=rs("addtime")
%>
<div class="cznr2 clearfix"> 订单名称：<%=rs("title")%><br>
查看文章：<a href="<%=outputurl("",rs("articleid"), "", ishtml)%>" target="_blank" style="background:#00AEFF;padding:1px 5px;color:#fff;">点此立即查看该文章</a><br>
金额：<%=rs("moneys")%> 金币<br>
状态：
<%if rs("tstatus") =1 then%>
<span class="trfont3">成功</span>
<%else%>
<span class="trfont2">未购买</span>
<%end if%>
<br>
订单编号：<%=rs("ordernum")%><br>
下单时间：<%=FormatDate(rs("addtime"), 11)%><br>
</div>
<%
rs.movenext
Loop
Else
%>
<div class="trmidword"> 暂无内容</div>
<%
End If
rs.Close
%>
<div style="clear:both"></div>
<%if ctr_page.page_count>1 then%>
<%= ctr_page.create_page("",ctr_page.page_count,pageno,"trpage")%>
<% end if%>
</div>
</div>
</div>
</div>

<div class="trpublicline clearfix "> </div>

<!--#include file="../inc/ifr.asp"-->
</body>
</html>