?? getcard.asp
字號:
<!--#include file="conn.asp"-->
<%
dim bookid
bookid=request.QueryString("id")
if bookid<>"" then
if not isnumeric(bookid) then
response.write"<script>alert(""非法訪問!"");window.close();</script>"
response.end
end if
end if
'//商品,判斷是否存在
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from BJX_card where bookid="&bookid&" and used=0 " ,conn,1,1
if rs.eof And rs.bof then
response.write "<script language=javascript>alert('你選購的商品暫時缺貨不能放到購物車里,請選購其它商品!');window.close();</script>"
response.end
end if
%>
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--我的購物車</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="bjxhead.asp"-->
<table width=760 align=center border=0 cellspacing=0 cellpadding=0 class=table-zuoyou bordercolor=#CCCCCC><tr><td background=images/class_bg.jpg height=50 class=table-shangxia> <img src=images/ring02.gif align=absmiddle> <a href=index.asp><%=webname%></a> >> 在線取卡</td>
</tr></table>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from BJX_goods where bookid="&bookid,conn,1,1
if rs.eof And rs.bof then
response.write "<script language=javascript>alert('你選購的商品暫時缺貨不能放到購物車里,請選購其它商品!');window.close();</script>"
response.end
end if
%>
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr><td bgColor=#ffffff colSpan=3 height=1></TD></tr>
<form name='form1' method='post' action="getcard2.asp">
<tr bgcolor=#f1f1f1 align=center>
<td width=25% height="30">商品名稱</td>
<td width=15%>單價
<%if request.Cookies("bjx")("reglx")=2 then %>
(VIP)
<%else%>
(會員)
<%end if%>
</font></div>
</td>
<td width=15%>數量</td>
</tr>
<tr><td bgColor=#cccccc colSpan=3 height=1></TD></tr>
<tr><td bgColor=#f1f1f1 colSpan=3 height=3></TD></tr>
<tr bgcolor="#FFFFFF">
<td height="30" width="25%" class="table-xia">
<div align="center"><a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><%=rs("bookname")%></a>
<input name=bookid type=hidden value="<%=rs("bookid")%>">
</div></td>
<td width="15%" height="30" align="center" class="table-xia">
<%
if request.Cookies("bjx")("reglx")=2 then
response.write formatnumber(rs("vipjia"),2,true)
else
response.write formatnumber(rs("huiyuanjia"),2,true)
end if%>
元</td>
<td align="center" width="15%" height="30" class="table-xia">
<input name=bookcount class=wenbenkuang value="1" size=5>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height=30 colspan=3 align=center class=table-xia>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center" height=50 colspan=3><input type="submit" name="Submit" value=" 下 一 步 ">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="3" STYLE="PADDING-LEFT: 20px"> </td>
</tr>
</form>
</table>
<!--#include file="service.asp"-->
<!--#include file="bjxfoot.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -