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

📄 submitorderprocess.asp

📁 online sales system of texttile mill was a project within which there was great opportunity for Lear
💻 ASP
字号:
<%

Dim IntBuyerID, StrDate, StrCart, StrTotalPrice, IntShipped, IntCount, IntShowCounter, DblTotalPrice, DblFinalPrice, StrCartQuery, ObjRSCart

IF Session("LoginBuyer") = "" OR Session("LoginUser") = "" Then
Response.Redirect("Default.asp")
END IF

IntBuyerID = CInt(Session("LoginBuyer"))
StrDate = Date()


StrCart = "<cart>"
IntCount = CInt(Session("TotalItems"))
		For IntShowCounter = 1 to IntCount
		IF Session("MyItems")("Purchase" & IntShowCounter) = "yes" Then
		DblTotalPrice = CDbl(Session("MyItems")("Price" & IntShowCounter) * CInt(Session("MyItems")("Quantity" & IntShowCounter)))
		productid =  Session("MyItems")("ISBN" & IntShowCounter) 
		quantity= Session("MyItems")("Quantity" & IntShowCounter) 
		Session("MyItems")("Purchase" & IntShowCounter) = "no"
               StrCart =  Session("MyItems")("BookName" & IntShowCounter) 

      StrCartQuery = "Insert into Orders(Buyerid,orderdate,cartitems,totalprice,shipped,productid,quantity,act_id) Values(" & IntBuyerID & ", '" & StrDate & "', '" & strCart & "',"   &  dbltotalprice & ", "    & false & ","  &  productid & "," & quantity & "," & "1"  & ")"
               ObjCon.Execute(StrCartQuery)


         	END IF

                Next

//                StrCartQuery = "Insert into Orders Values ('"&IntBuyerID&"', '"&StrDate&"', '"&StrCart&"', '"&StrTotalPrice&"', '"&IntShipped&"')"
//                ObjCon.Execute(StrCartQuery)


StrTotalPrice = CStr(DblFinalPrice)
IntShipped = 0


%>

<table border="0">
	<tr>
		<td><h3><font face="verdana, arial" color="darkblue">ORDER SUBMITTED!</font</h3></td>
	</tr>
</table>
<hr color="black" noshade>
<table border="0">
	<tr>
		<td class="SimpleText">You order has been submitted.</td>
	</tr>
</table>
<hr color="black" noshade> 

⌨️ 快捷键说明

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