iheeo_gouwucheinfo.asp

来自「易和阳光购物商城 v1.3 | 功能简介 增加了防注入文件」· ASP 代码 · 共 35 行

ASP
35
字号

<table width="200" height="80" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td> 
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="70" background="image/catBg.gif">
<tr> 
<td height="80" rowspan="5" width="40"> </td></tr>
<%
	if request.Cookies("bjx")("username")<>"" then 
	set rs_c=server.CreateObject("adodb.recordset")
	rs_c.open "select count(*) as rec_count from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	rec_count=rs_c("rec_count")
	rs_c.close
	rs_c.open "select sum(zonger) as zongji from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	%><tr>
<td height="20"> 您的购物车有<font color=red><%=rec_count%></font>件商品<br> 总金额:<font color=red><%=rs_c("zongji")%></font>元<br> <a href="buy.asp?action=show&lx=1" target=_blank>查看购物车/结帐&gt;&gt;</a></td>
</tr>
<%rs_c.close
		set rs_c=nothing
		else%>
<tr> 
<td height="20"> 
 您的购物车有<font color=red>0</font>件商品<br>
 总金额:<font color=red>0</font>元</td>
</tr>
<tr> 
<td height="1" colspan="2"></td>
</tr>
<%end if%>
</table>
</div>
</td>
</tr>
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?