<!--#include file="conn.asp"-->
<%
page_title=Eval("case_title"&Language)
page_keywords=Eval("case_keywords"&Language)
page_description=Eval("case_description"&Language)
if page_title="" then
page_title=city_title
page_keywords=city_keywords
page_description=city_description
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><%=page_title%></title>
<meta name="keywords" content="<%=page_keywords%>" />
<meta name="description" content="<%=page_description%>" />
<!--#include file="top.asp"-->
<!--#include file="header.asp"-->
<%
if session("user_xxx_name")="" then
response.Redirect("login.asp")
end if
%>
<link href="<%=filepath%>inc/mycenter.css" type="text/css" rel="stylesheet">
<link href="<%=filepath%>inc/style.css" type="text/css" rel="stylesheet">
<link href="<%=filepath%>inc/user.css" type="text/css" rel="stylesheet">
<div id="wrap">
<!--container-->
<div class="main">
<!--#include file="Mb_left.asp"-->    <!--main-->
    <div class="mainBox">
        <div class="mainContent">
            <div class="mycontent">
                <div class="myindex">
                    <div class="l">
                        <img src="images/nouserpic.jpg" class="userpic">
                        <p><a href="Profile.asp" title="完善资料"><font style="color:red">完善个人资料</font></a></p>
                    </div>
<%
	set shopxp=server.CreateObject("adodb.recordset")
	shopxp.open "select * from [com_user] where username='"&session("user_xxx_name")&"' ",conn,1,1
	ky_jifen=shopxp("jifen")
	ky_yucun=shopxp("yucun")
%>
                    <div class="r">
                        <div class="logininfo">您好！<span class="em"><%=session("user_xxx_name")%></span> (登录次数为：<strong><%=shopxp("logins")%></strong>)</div>
                        <table class="tbusercenter">
                            <tbody><tr>
                                <td width="50%">会员级别：<span class="userlevel"><%
if session("user_xxx_vip")=1 then response.Write "普通会员" end if
if session("user_xxx_vip")=2 then response.Write "金卡会员" end if
if session("user_xxx_vip")=3 then response.Write "钻卡会员" end if
%></span></td>
                                <td width="50%"><a href="address.asp">修改收货地址</a></td>
                            </tr>
							<%
	set shopv81=server.CreateObject("adodb.recordset")
	shopv81.open "select sum(zonger) as sum_jine from shopxp_action where username='"&session("user_xxx_name")&"' and zhuangtai<=5",conn,1,1
	if shopv81("sum_jine")<>"" then
	sum_jine=shopv81("sum_jine")
	else
	sum_jine=0
	end if
	%>
                            <tr>
                                <td>总消费额：<span>￥<%=formatnumber(sum_jine,2)%></span></td>
                                <td>共有积分：<span class="em"><%=ky_jifen%></span></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                	<b>订单提醒：</b>
                                	<a href="orderList.asp?status=1">待付款(<span class="em"><%call shownum(1)%></span>)</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                	<a href="orderList.asp?status=4">待确认收货(<span class="em"><%call shownum(4)%></span>)</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                	<a href="orderList.asp?status=5">待评价(<span class="em"><%call shownum(5)%></span>)</a>&nbsp;&nbsp;&nbsp;&nbsp;
                                	<!--<a href="orderList.asp?status=6">咨询回复(<span class="em">0</span></a>)-->
                                </td>
                            </tr>
                        </tbody></table>
                    </div>
                </div>

                <div class="tuijian">
                    <div class="title"><span>热销新品</span></div>
                    <div class="con">
                        <ul>
<%
typeid=request("typeid")
cid=request("cid")
Set rs = Server.CreateObject("ADODB.Recordset")
if cid<>"" then
sql = "SELECT id,cid,bookpicm,titlecn,shichangjia,shopxphyjia FROM com_books where nid="&cid&" and lookcn=1  and type=0 ORDER BY id desc, ck desc" 
elseif typeid<>"" then
sql = "SELECT id,cid,bookpicm,titlecn,shichangjia,shopxphyjia FROM com_books where cid="&typeid&" and lookcn=1  and type=0 ORDER BY id desc, ck desc" 
else
sql = "SELECT id,cid,bookpicm,titlecn,shichangjia,shopxphyjia FROM com_books where  lookcn=1 and type=0 ORDER BY id desc, ck desc" 
end if
rs.open sql,conn,1,1
i=1
if rs.eof then
else
do while not rs.eof and i<=4
%>
                            <li><a href="products_show.asp?typeid=<%=rs("cid")%>&id=<%=rs("id")%>">
                                    <span class="pic"><img src="../<%=rs("bookpicm")%>" alt=""></span>
                                    <span class="name"><%=rs("titlecn")%></span>
                                    <span class="price-market">市场价：￥<%=Formatnumber(rs("shichangjia"),2,-1,-1,0)%></span>
                                    <span class="price-real">销售价：￥<%=Formatnumber(rs("shopxphyjia"),2,-1,-1,0)%></span>
                                </a></li>
<%
i=i+1 
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
                        </ul>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--main end-->

</div>
<!--container end-->
</div>
<!--#include file="foot.asp"--> 