www.gusucode.com > 运动用品商城网站系统源代码程序 > cashj.asp

    <!--#include file="conn.asp"-->
<!--#include file="IncAsp/venshop_top.asp"-->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<!--#include file="IncAsp/venshop_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="sort">&nbsp;<IMG src="Skin/<%=venshop_skin%>/home.gif" border=0 align="absmiddle"> 您的位置: <a href="index.asp">首页</a> >>&nbsp;积分换取结算</td></tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" class="useri">
<tr><td height="150">
<%if Request.Cookies("venshop")("user_name")="" and Request.Cookies("venshop")("guest")="" then
response.redirect "login.asp?comurl=cashj.asp"
response.end
elseif Request.Cookies("venshop")("user_name")<>"" then
user_name=Request.Cookies("venshop")("user_name")%>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td align="center" class="cartshowa">商品名称</td>
<td align="center" class="cartshowa">所需积分合计</td>
<td align="center" class="cartshowa">所需商品金额合计</td>

<td align="center" class="cartshowa">数量</td>
	</tr>
<%set rs=server.createobject("adodb.recordset")
sql="select * from venshop_jf where user_name='"&user_name&"' and basket_check=0"
rs.open sql,conn,1,1
if rs.eof then%><tr>
<td height="50" colspan="5" align="center">你没有选择任何积分礼品</td></tr>
<%else
i=0
do while not rs.eof
i=i+1%>
<tr>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=rs("hw_name")%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=-rs("basket_count")*trim(rs("hw_jifen"))%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=fuhao%><%=rs("basket_count")*trim(rs("hw_price"))%><%=danwei%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=rs("basket_count")%></td>
</tr> 
<%totalcash=totalcash+(rs("basket_count")*trim(rs("hw_price")))
totalisbn=totalisbn+(rs("basket_count")*rs("hw_jifen"))
totalw=totalw+(rs("basket_count")*trim(rs("hw_weight")))
totaly=totaly+(rs("basket_count")*trim(rs("hw_yunfei")))
totalc=totalc+rs("basket_count")
rs.movenext
loop
end if
rs.close
set rs=nothing%></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30" colspan="7" align="right">
<%if Request.Cookies("venshop")("user_type")="" then
zhekou=100
usertype_name="未登录用户"
zhekouyu="不享受折扣价"
else
user_type=Request.Cookies("venshop")("user_type")
set rs=server.createobject("adodb.recordset")
sql="select * from venshop_usertype where usertype_id="&user_type&""
rs.open sql,conn,1,1
if rs.eof then
zhekou=100
usertype_name="一般用户"
zhekouyu="不享受折扣价"
else
zhekou=rs("usertype_zhekou")
usertype_name=rs("usertype_name")
zhekouyu="享受原价"&zhekou&"%的折扣价"
end if
rs.close
set rs=nothing
end if%>
<p style="line-height: 200%; margin-left:5px; margin-right:15px; margin-top:5px; margin-bottom:5px">
共 <span class="price"><%=totalc%></span> 件商品&nbsp;&nbsp;您是:<font color="#0000FF"><%=usertype_name%></font>
&nbsp;&nbsp;需要积分:<%=-totalisbn%>+<%=fuhao%><%=totalcash%><%=danwei%><br>
<br>
<%if yunfei=2 then%>预计运费合计:<%=fuhao%> <%=totaly%> <%=danwei%><%elseif yunfei=3 then%>重量合计:<%=totalw%> kg<%end if%><br>
<%if mian<>0 then%><%if int(mian)>int(totalcash*zhekou/100) then%>还差<%=fuhao%><%=mian-int(totalcash*zhekou/100)%> <%=danwei%>即可免费送货!<%else%>满<%=fuhao%><%=mian%> <%=danwei%>免运费,您的订单可以免费送货!<%end if%><br><%end if%>
</td></tr></table>
<!--#include file="cashinj.asp"-->
<%elseif Request.Cookies("venshop")("guest")<>"" then%>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="50%" align="center" height="200">
<p align="left" style="line-height: 300%; margin-left: 50px; margin-right: 10px; margin-top: 10px; margin-bottom: 10px">
<a style="font-size: 12pt; font-family: Verdana; font-weight: bold" href="login.asp?comurl=cashj.asp">老用户请登录购买&gt;&gt;</a><br>
<a style="font-size: 12pt; font-family: Verdana; font-weight: bold" href="reg.asp">新用户请点击注册&gt;&gt;</a></td>
<td align="center" width="50%"><a href="cashguest.asp">
<img border="0" src="Skin/<%=venshop_skin%>/guestbuy.gif" width="235" height="71"></a></td></tr>
</table>

<%end if%>
</td></tr></table>

</td></tr></table></div>
<!--#include file="IncAsp/venshop_copy.asp"-->