?? car.asp
字號(hào):
<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>car.asp</title>
</head>
<body>
<form action="mydan.asp" method="post">
<table width="574" border="1" align="center" class="style2">
<tr>
<td width="35" height="34"><div align="center">購(gòu)買</div></td>
<td width="60"><div align="center">貨物編號(hào)</div></td>
<td width="58"><div align="center">貨物名稱</div></td>
<td width="43"><div align="center">單價(jià)</div></td>
<td width="60"><div align="center">折扣信息</div></td>
<td width="41"><div align="center">存貨量</div></td>
<td width="42"><div align="center">數(shù)量</div></td>
<td width="78"><div align="center">付款方式</div></td>
<td width="99"><div align="center">送貨方式</div></td>
</tr>
<%
if request.cookies("mycar1")<>"" then
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from goods where goods_id="& request.cookies("mycar1")
rs.open sql,conn
if not rs.eof then
%>
<tr>
<td><div align="center">
<input type="checkbox" name="buy" value="<%=rs(0)%>" checked>
</div></td>
<td width="60" height="20" nowrap><div align="center"><%=rs("goods_id")%></div></td>
<td width="58" height="20" nowrap><div align="center"><%=rs("name")%></div></td>
<td width="43" height="20" nowrap><div align="center"><%=rs("price")%></div></td>
<td width="60" height="20" nowrap><div align="center"><%=rs("discount")%></div></td>
<td width="41" height="20" nowrap><div align="center"><%=rs("inventory")%></div></td>
<td width="42" height="20" nowrap><div align="center"><input type="text" name="num" size="6" value="<%=request.cookies("mycar1_num")%>"></div></td>
<td width="78"><select name="pay"><option value="郵政匯款">郵政匯款</option><option value="銀行轉(zhuǎn)帳">銀行轉(zhuǎn)帳</option></select></td>
<td><select name="send"><option value="送貨上門">送貨上門</option><option value="郵寄上門">郵寄上門</option></select></td>
</tr>
<%
end if
rs.close
end if
%>
<%
if request.cookies("mycar2")<>"" then
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from goods where goods_id="& request.cookies("mycar2")
rs.open sql,conn
if not rs.eof then
%> <tr>
<th><input type="checkbox" name="buy" value="<%=rs(0)%>" checked></th>
<th height="20" nowrap><%=rs("goods_id")%></th>
<th height="20" nowrap><%=rs("name")%></th>
<th height="20" nowrap><%=rs("price")%></th>
<th height="20" nowrap><%=rs("discount")%></th>
<th height="20" nowrap><%=rs("inventory")%></th>
<th height="20" nowrap><input type="text" name="num" size="6" value="<%=request.cookies("mycar2_num")%>"></th>
<td width="78"><select name="pay"><option value="郵政匯款">郵政匯款</option><option value="銀行轉(zhuǎn)帳">銀行轉(zhuǎn)帳</option></select></td>
<td><select name="send"><option value="送貨上門">送貨上門</option><option value="郵寄上門">郵寄上門</option></select></td>
</tr>
<%
end if
rs.close
end if%>
<%
if request.cookies("mycar3")<>"" then
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from goods where goods_id="& request.cookies("mycar3")
rs.open sql,conn
if not rs.eof then
%>
<tr>
<th><input type="checkbox" name="buy" value="<%=rs(0)%>" checked></th>
<th height="20" nowrap><%=rs("goods_id")%></th>
<th height="20" nowrap><%=rs("name")%></th>
<th height="20" nowrap><%=rs("price")%></th>
<th height="20" nowrap><%=rs("discount")%></th>
<th height="20" nowrap><%=rs("inventory")%></th>
<th height="20" nowrap><input type="text" name="num" size="6" value="<%=request.cookies("mycar3_num")%>"></th>
<td width="78"><select name="pay"><option value="郵政匯款">郵政匯款</option><option value="銀行轉(zhuǎn)帳">銀行轉(zhuǎn)帳</option></select></td>
<td><select name="send"><option value="送貨上門">送貨上門</option><option value="郵寄上門">郵寄上門</option></select></td>
</tr>
<%
end if
rs.close
end if%>
</table>
<div align="center">
<input name="" type="submit" value="下定單">
</div>
</form>
</body>
</body>
</html>
<%
closedb
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -