日期:2014-05-17  浏览次数:20951 次

没什么分了,各位见谅帮帮忙哈……代码我在评论中全部贴出来……asp购物车每次提交一个物品后就是一个订单,怎么处理?急用……
<!--#include File="../conndb.asp"-->
<!--#include file="../user/isUser.asp"-->
<%
Set rs = Server.CreateObject("ADODB.RECORDSET")
%>
<%
  Dim userid
  userid = Session("user_id")
  Dim pageid,sTitle,colnum
  colnum = 6
  sTitle = ""
  '读取参数pageid
  pageid = Request.QueryString("pageid")
  'pageid=0:购物车;pageid=1:收银台;pageid=2:订单信息
  If isnull(pageid) Then
  Response.End 
  ElseIf pageid=0 Then
  sTitle = "购物车"
  colnum = 7
  ElseIf pageid=1 Then
  sTitle = "收银台"
  colnum = 7
  ElseIf pageid=2 Then
  sTitle = "订单"
  colnum = 6
  End If
%>
<html>
<head><title>我的<%=sTitle%>信息</title>
<link href=../style.css rel=STYLESHEET type=text/css>
</head>
<script language="javascript">
function newswin(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=500,height=400";
  var newswin=window.open(url,"newswin",oth);
  newswin.focus();
  return false;
}
function newOrder(url) {
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=200,top=200";
  oth = oth+",width=500,height=150";
  var newOrder=window.open(url,"newOrder",oth);
  newOrder.focus();
  return false;
}
//确认订购、删除订购商品
function SendOrder(basketid,flag){
  var url;
  url = "BasketSave.asp?flag=" + flag + "&id=" + basketid;
  newOrder(url);
}
</script>
<body>
<center>
<table border="0" width="760" cellspacing="0" cellpadding="0">
 <tr><td colspan="3" height="80"><img src="../images/shop.jpg" border="0"></td></tr>
  <tr><td colspan="3" bgcolor="#E1F5FF" height="19" valign="middle" align="right">
  <a href="/shop/index.asp">主页</a>
  <%If pageid=0 Then%>
  我的购物车
  <a href="Basket.asp?pageid=1">去收银台</a>
  <a href="Basket.asp?pageid=2">我的订单</a>
  <%ElseIf pageid=1 Then%>
  <a href="Basket.asp?pageid=0">去购物车</a>
  去收银台
  <a href="Basket.asp?pageid=2">我的订单</a>
  <%ElseIf pageid=2 Then%>
  <a href="Basket.asp?pageid=0">去购物车</a>
  <a href="Basket.asp?pageid=1">去收银台</a>
  我的订单
  <%End If%>
  </td></tr>
  <tr>
  <td width="25%" valign="top" align="left"><!--#include file="../left.asp"--></td>
  <td width="50%" valign="top" align="center">
  <table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolorlight="#63CFFF" bordercolordark="#FFFFFF">
  <tr>
  <td width="50%" bgcolor="#63CFFF" height="18">