📄 cashguest.asp
字号:
<!--#include file="top.asp"-->
<div align="center">
<table width=980 border=0 cellpadding=0 cellspacing=0 bgcolor="#FFFFFF" height="300">
<tr><td width=181 align="center" valign="top"><!--#include file="log.asp"--><!--#include file="insort.asp"--></td>
<td valign="top" align="center"><pre> </pre>
<%if Request.Cookies("venshop")("user_name")="" and Request.Cookies("venshop")("guest")="" then%>
<table border="0" cellpadding="0" cellspacing="5" width="96%" bgcolor="#EEEEEE"><tr><td align="center" bgcolor="#EEEEEE">
<table border="0" cellpadding="0" cellspacing="0" width="100%" background="img/pattern.gif" style="border: 1px solid #C0C0C0">
<form method="POST" action="login.asp?action=login">
<tr><td colspan="4" height="45" valign="bottom"><p style="margin-left: 35px"><b>用户登录: </b>您还没有登录或未定购任何产品,请重新登录</td></tr>
<tr><td align="center" colspan="4"><hr color="#C0C0C0" size="1" width="90%"></td></tr>
<tr><td align="right" height="45">用 户 名:</td>
<td height="45"><input name="user_name" type="text" class=input style="FONT-SIZE: 12px; WIDTH: 110px"></td>
<td rowspan="2"><input name="comurl" type="hidden" value="cash.asp"><input type=image src="img/button_login.gif" name="login"></td>
<td height="45"><A href="reg.asp"><IMG src="img/loginreg.gif" border=0></A></td></tr>
<tr><td align="right" height="45">用户密码:</td>
<td height="45"><input style="FONT-SIZE: 12px; WIDTH: 110px" type="password" name="user_pass" class=input size="12"></td>
<td height="45"><a href="repass.asp"><IMG src="img/repass.gif" border=0></a></td></tr>
<tr><td colspan="4" align="center" height="45"></td></tr></form></table></td></tr></table>
<%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="5" width="730" bgcolor="#EEEEEE"><tr><td align="center" bgcolor="#EEEEEE">
<table border="0" cellpadding="0" cellspacing="0" width="100%" background="img/pattern.gif" style="border: 1px solid #C0C0C0">
<tr><td height="30" colspan="7"><p style="margin-left: 20px"><b>您购物车中的产品:</b>(提示:购物车里的商品并未生成订单)</td></tr>
<tr><td height="30" align="center" width="10"></td>
<td height="30" align="center">商品名称</td>
<td height="30" align="center">单价</td>
<td height="30" align="center">数量</td>
<td height="30" align="center">合计</td>
<td height="30" align="center">类型</td>
<td height="30" align="center" width="10"> </td></tr>
<%sql="select * from basket where user_name='"&user_name&"' and basket_check=0"
rs.open sql,conn,1,1
if rs.eof then%><tr>
<td height="30" colspan="7" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0">你没有选择任何商品</td></tr>
<%else
do while not rs.eof%>
<tr>
<td height="30" align="center" width="10"></td>
<td height="30" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0">
<a target="_blank" href="product/pro<%=rs("hw_id")%>.htm"><%=rs("hw_name")%></a></td>
<td height="30" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0"><%=rs("hw_price")%> 元</td>
<td height="30" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0"><%=rs("basket_count")%></td>
<td height="30" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0"><%=rs("basket_count")*rs("hw_price")%> 元</td>
<td height="30" align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom: 1px solid #C0C0C0"><%=rs("kxa")%>-<%=rs("kxb")%></td>
<td height="30" align="center" width="10"></td>
</tr><%totalcash=totalcash+(rs("basket_count")*rs("hw_price"))
totalisbn=totalisbn+(rs("basket_count")*rs("hw_jifen"))
rs.movenext
loop
end if
rs.close%>
<tr><td height="30" colspan="7" align="center">价格总计<%=totalcash%>元 积分总计:<%=totalisbn%>(未登录客户无法获得积分)</td></tr>
</table></td></tr></table><pre></pre><!--#include file="cashin.asp"-->
<%end if%></td></tr></table></div><!--#include file="copy.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -