<% sub addtocart() set rs=server.CreateObject("adodb.recordset") rs.open "select orders.actionid,orders.id,tproduct.tproduct,tproduct.tprice,tproduct.tpricenet,tproduct.discount from tproduct inner join orders on tproduct.id=orders.id where orders.username='"&request.cookies("timesshop")("username")&"' and orders.state=6",conn,1,1 %> <% if action="addtocart" then response.write "" else response.write "" end if %> <% do while not rs.eof %> " rs.movenext loop rs.close set rs=nothing response.write "
选 择 商品名称 市场价 会员价 折 扣 删 除
> target=_blank><% = rs("tproduct") %> <% = rs("tprice") %>元 <% = rs("tpricenet") %>元 <% = rs("discount")*100 %>% <% if action<>"addtocart" then response.Write "" else response.Write "" end if response.Write "
    " if action<>"addtocart" then response.write "" end if %>
<% end sub sub receiveaddr() dim rs2 if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if set rs=server.CreateObject("adodb.recordset") rs.open "select receipt,receipt,city,address,postcode,usertel,UserMobile,UserSex,userqq,deliverymethord,paymethord from [user] where username='"&request.cookies("timesshop")("username")&"' ",conn,1,1 %>
请您填写正确的收货人信息,我们会为您保密。
收货人姓名: >    性 别:
收货人省/市 >
详细地址: >
邮  编: >
电  话: >
手  机: >
腾讯 QQ: >
送货方式:
支付方式:
<% rs.close set rs=nothing end sub sub deposit() dim strscore,strvipscore,strdeposit if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if set rs=server.CreateObject("adodb.recordset") rs.open "select score,deposit from [user] where username='"&request.cookies("timesshop")("username")&"' ",conn,1,1 strscore = rs("score") strdeposit = rs("deposit") rs.close rs.open "select webimg14 from config",conn,1,1 strvipscore = rs("webimg14") rs.close %>

 您目前的积分为: <% = strscore %> 分。

 你目前的预存款有: <% = strdeposit %> 元。把
 升级成VIP用户需要的积分:<% = strvipscore %> 分。 
<% set rs = nothing end sub sub profile() if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if set rs=server.CreateObject("adodb.recordset") rs.open "select book from [user] where username='"&request.cookies("timesshop")("username")&"' ",conn,1,1 %>
<% = rs("book") %> <% end sub sub customerinfo() if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if set rs=server.CreateObject("adodb.recordset") rs.open "select useremail,vip,identify,UserQuestion,realname from [user] where username='"&request.cookies("timesshop")("username")&"' ",conn,1,1 Dim Rank Rank="普通会员" If rs("vip")=true then Rank = "VIP会员" End if %>
尊敬的用户,我们向您承诺:你的信息将被严格保密。
用 户 名: <% = request.cookies("timesshop")("username") %>
会员级别: [<% = Rank %>]
E-Mail : >
真实姓名: >
密码提问: >
问题答案:
<% rs.close set rs=nothing end sub sub changepass() if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if %>
用 户 名: <% = request.cookies("timesshop")("username") %>
原 密 码:
新 密 码:
确认密码:
<% end sub sub repass() dim shop shop=SafeRequest("shop",1) select case shop '//输入用户名 case "" response.Write "
" response.Write "" response.Write "" response.Write "" response.Write "
请输入您的用户名:
" '//输入问题答案 case "1" set rs=server.CreateObject("adodb.recordset") rs.open "select UserQuestion,UserAnswer from [user] where username='"&trim(request.form("username"))&"' ",conn,1,1 if rs.eof and rs.bof then response.write "

查无此用户,请返回!
" else response.Write "
" response.Write "" response.Write "" response.Write "" response.Write "" response.Write "
您的密码提问:"&trim(rs("UserQuestion"))&"
您的密码答案:
" end if rs.close set rs=nothing '//输入新密码 case "2" set rs=server.CreateObject("adodb.recordset") rs.open "select UserAnswer from [user] where username='"&trim(request.form("username1"))&"' ",conn,1,1 '//判断答案是否正确 if trim(rs("UserAnswer"))<>md5(trim(request.form("UserAnswer"))) then response.write "" response.end else response.Write "
" response.Write "" response.Write "" response.Write "" response.Write "" response.Write "
请输入新密码:
输入确认密码:
" end if rs.close set rs=nothing end select end sub sub statinfo() if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if dim joindtm,myorder,successed,successedsum,lastorder set rs=server.CreateObject("adodb.recordset") rs.open "select adddate from [user] where username='"&request.cookies("timesshop")("username")&"'",conn,1,1 joindtm=rs("adddate") rs.close rs.open "select distinct(goods),actiondate from orders where username='"&request.cookies("timesshop")("username")&"' and state<6 ",conn,1,1 if rs.eof and rs.bof then response.write "" else rs.movelast lastorder=rs("actiondate") myorder=rs.recordcount end if rs.close rs.open "select sum(paid) as paid from orders where username='"&request.cookies("timesshop")("username")&"' and state<6 and state>3",conn,1,1 if rs("paid")>0 then successedsum=rs("paid") else successedsum=0 end if rs.close rs.open "select distinct(goods) from orders where username='"&request.cookies("timesshop")("username")&"' and state<6 and state>3",conn,1,1 successed=rs.recordcount set rs=nothing %>

以下是您在本站的一些历史记录的统计信息
注册日期: <% =joindtm %>
上次下单: <% =lastorder %>
下单次数: <% = myorder %>次
成交次数: <% =successed %>次
成交金额: <% =successedsum %>元
<% end sub sub goods() if request.cookies("timesshop")("username")="" then response.Write "
请先登录
" response.End end if %>
我 的 订 单
> <%set rs=server.CreateObject("adodb.recordset") dim state state=SafeRequest("state",1) if state=0 or state="" then select case state case "0" rs.open "select distinct(goods),realname,actiondate,deliverymethord,paymethord,state from orders where username='"&request.cookies("timesshop")("username")&"' and state<6 order by actiondate desc",conn,1,1 case "" rs.open "select distinct(goods),realname,actiondate,deliverymethord,paymethord,state from orders where username='"&request.cookies("timesshop")("username")&"' and state<6 order by actiondate desc",conn,1,1 end select else rs.open "select distinct(goods),realname,actiondate,deliverymethord,paymethord,state from orders where username='"&request.cookies("timesshop")("username")&"' and state="&state&" order by actiondate",conn,1,1 end if do while not rs.eof %> <% dim shop,rs2 set shop=server.CreateObject("adodb.recordset") shop.open "select sum(paid) as paid,sum(score) as score from orders where goods='"&trim(rs("goods"))&"' ",conn,1,1 %> <% rs.movenext loop rs.close set rs=nothing%>
订单号 合计金额 积分 订货人 付款方式 收货方式 订单日期 订单状态
&score=<% = trim(shop("score")) %>','','width=710,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><%=trim(rs("goods"))%> <% set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from delivery where deliveryid="&rs("deliverymethord"),conn,1,1 response.write ""&shop("paid")+rs2("fee")&"元" rs2.close set rs2=nothing %> <% = shop("score") %> <% shop.close set shop=nothing %> <%=trim(rs("realname"))%> <%set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from delivery where deliveryid="&rs("paymethord"),conn,1,1 response.Write trim(rs2("subject")) rs2.close set rs2=nothing%> <%set rs2=server.CreateObject("adodb.recordset") rs2.open "select * from delivery where deliveryid="&rs("deliverymethord"),conn,1,1 response.Write trim(rs2("subject")) rs2.close set rs2=nothing %> <%=trim(rs("actiondate"))%> <%select case rs("state") case "1" response.write "未作任何处理" case "2" response.write "订单处理中" case "3" response.write "服务商收到款" case "4" response.write "服务商已发货" case "5" response.write "用户已收到货" end select%>
<%end sub sub UserLogins() dim url url=Request.ServerVariables("HTTP_REFERER") %>
用户 密 码
验证  注册 >
<% end sub %>