⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 car.asp

📁 ASP,版本,HUANYING NI DE XIAZAI ! LIANXIFANSHI:BINDIYI@163.COM
💻 ASP
字号:
<!--#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">购买</div></td>
                  <td width="60"><div align="center">货物编号</div></td>
                  <td width="58"><div align="center">货物名称</div></td>
                  <td width="43"><div align="center">单价</div></td>
                  <td width="60"><div align="center">折扣信息</div></td>
                  <td width="41"><div align="center">存货量</div></td>
                  <td width="42"><div align="center">数量</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="银行转帐">银行转帐</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="银行转帐">银行转帐</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="银行转帐">银行转帐</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
%>

⌨️ 快捷键说明

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