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

📄 addtocartprocess.asp

📁 online sales system of texttile mill was a project within which there was great opportunity for Lear
💻 ASP
字号:
<!-- #include file="conn.asp" -->
<%

Dim StrSelTech, StrSelBook, StrBookName, StrISBN, StrPrice, StrTechName, StrSelTechNameQuery, StrSelBookQuery, ObjRSTechName, ObjRSBook

StrSelTech = Trim(Request.QueryString("SCAtID"))
StrSelBook = Trim(Request.QueryString("PRoductID"))

IF StrSelTech = "" OR StrSelBook = "" Then
Response.Redirect("Default.asp")
END IF

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

GetTechName(CInt(StrSelTech))

Function GetTechName(TechID)
StrSelTechNameQuery = "Select TechName From Category Where TechID=" & TechID
Set ObjRSTechName = ObjCon.Execute(StrSelTechNameQuery)
StrTechName = ObjRSTechName("TechName")
End Function



StrSelBookQuery = "Select Name, ProductId, Price, ImagePath From Products Where ProductID=" & CInt(StrSelBook)
Set ObjRSBook = ObjCon.Execute(StrSelBookQuery)
%>

<table border="0">
	<tr>
		<td><h3><font face="verdana, arial" color="darkblue">Do you want to add this item in your cart ?</font></h3></td>
	</tr>
</table>
<table border="0">
	<tr>
		<td class="SimpleText">You are in <b><%= StrTechName %></b> category.</td>
	</tr>
</table>
<table border="2" bordercolor="lightgrey" style="border-collapse:collapse">
	<tr>
		<td class="SimpleText"><% StrBookName = ObjRSBook("Name") %><b><%= StrBookName %></b></td>
		<td rowspan="5"><div align="center"><img src="<%= ObjRSBook("ImagePath") %>" alt="<%= StrBookName %>"></div></td>
	</tr>
	<tr>
		<td class="SimpleText">Product Id: <% StrISBN= ObjRSBook("ProductID") %><%= StrISBN %></td>
	</tr>
	<tr>
		<td class="SimpleText">Price: <% StrPrice=ObjRSBook("Price") %><%= StrPrice %></td>
	</tr>
</table>
<form name="FrmAddItem" method="post" action="AddItem.asp">
<input type="hidden" name="TechName" value="<%= StrTechName %>">
<input type="hidden" name="BookName" value="<%= StrBookName %>">
<input type="hidden" name="ISBN" value="<%= StrISBN %>">
<input type="hidden" name="Price" value="<%= StrPrice %>">
<table border="0">
	<tr>
		<td class="SimpleText">Quantity: <input type="text" name="TxtQuantity" size="5">&nbsp;&nbsp;<input type="submit" name="submit" value="Add this item to my cart" onclick="return CheckItemQuantity()"></td>
	</tr>
</table>
</form>

⌨️ 快捷键说明

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