www.gusucode.com > 凡人网络购物系统 2008源码程序 > cashguest.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=cash.asp"
response.end
elseif Request.Cookies("venshop")("user_name")<>"" then
response.redirect "cash.asp"
elseif Request.Cookies("venshop")("guest")<>"" then
user_name=Request.Cookies("venshop")("guest")%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" class="cartshowa">商品名称</td>
<td align="center" class="cartshowa">单价(<%=danwei%>)</td>
<td align="center" class="cartshowa">数量</td>
<td align="center" class="cartshowa">合计(<%=danwei%>)</td>
<td align="center" class="cartshowa">类型</td>
</tr>
<%set rs=server.createobject("adodb.recordset")
sql="select * from venshop_basket 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" class="cartshow">你没有选择任何商品</td></tr>
<%else
i=0
do while not rs.eof
i=i+1%>
<tr>
<td align="center" class="cartshow<%=(i mod 2)%>"><a target="_blank" href="views.asp?hw_id=<%=rs("hw_id")%>"><%=rs("hw_name")%></a></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=fuhao%><%=trim(rs("hw_price"))%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=rs("basket_count")%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=fuhao%><%=rs("basket_count")*trim(rs("hw_price"))%></td>
<td align="center" class="cartshow<%=(i mod 2)%>"><%=rs("kxa")%>-<%=rs("kxb")%></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="5" align="right">
<p style="line-height: 200%; margin-left:5px; margin-right:15px; margin-top:5px; margin-bottom:5px">
共 <span class="price"><%=totalc%></span> 件商品&nbsp;价格总计:<span class="price"><%=fuhao%> <%=totalcash%> <%=danwei%></span>
&nbsp;&nbsp;积分总计:<%=totalisbn%> (未登录客户无法获得积分)<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="cashin.asp"-->
<%end if%>

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