Rayer
02-05-2011, 11:41 PM
<!--#include file="newConn.inc" -->
<html>
<head>
<META NAME="Sales" Content="Offers online buying capability">
<title>Sales</title>
<script language = “javascript”>
function Finalize()
{
document.formSales.submit()
}
</script>
</head>
<link href="Styleforms.css" rel="stylesheet" type="text/css">
<body>
<h3 align= "center"> If your order is correct please check below to finalize the transaction!</h3>
<form name = "formSales" id = "formSales" action = "Finalize.asp" method = "post">
<table border = 1 cellspacing = 0 cellpadding = 5 align = "center">
<%
dim x, count, subtotal, total, provTax, fedTax, temp2
x = 1
count = session ("TotalProdCount")
%>
<% Response.Write(" ") %>
<%
temp2 = "'" + Request.Form.Item("prodName" + cstr(x)) + "'"
do while x <= count
if (Request.Form.Item("checkYes" + cstr(x)) = 1) then %>
<% = "<tr><td align = center><input type = text readonly size = 2 id = prodID2" & cstr(x) & "
name = prodID2" & cstr(x) & " value = " & Request.Form.Item("prodId" + cstr(x)) & "></td>"%>
<% = "<td align = center><input type = text readonly size = 40 id = prodName2" & cstr(x) & " name
= prodName2" & cstr(x) & " value = " & Request.Form.Item("prodName" + cstr(x)) & "></td>"%>
<% = "<td align = center><input type = text readonly size = 6 id = prodPrice2" & cstr(x) & " name
= prodPrice2" & cstr(x) & " value = " & formatcurrency(Request.Form.Item("prodPrice" + cstr(x))) &
"></td>"%>
<% subtotal = subtotal & CCur(Request.Form.Item("prodPrice" + cstr (x))) %>
<%
end if
x = x + 1
provTax = subtotal * (8/100)
fedTax = subtotal *(7/100)
total = subtotal =provTax +fedTax
loop
session ("buyItems") = x
%>
<% Response.Write ("<br>") %>
<% Response.Write ("<br>") %>
<% = "<tr><td align = center colspan = 3><input type = text readonly size = 30 id = transdate name = transdate value = Transaction></td>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = transdate name = transdate value = Date></td>"%>
<% = "<td align = center><input type= text readonly size = 7 id = date name = date value = " & date() & "></td></tr>"%>
<% = "<tr><td align = left colspan= 2>< input type = text readonly size = 15 id = txtTotal name = txtTotal value = SubTotal></td>"%>
<% = "<td align = center><input type= text readonly size = 7 id = valtotal name = valtotal value = " & formatcurrency(subtotal) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtProvTax name = txtProvTax value = Provincial Tax></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valProvTax name=valProvTax value = " & formatcurrency(provTax) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtFedTax name = txtFedTax value = Federal Tax></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valFedTax name= valFedTax value = " & formatcurrency(fedTax) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtTotal name = txtTotal value = Total></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valTotal name = valTotal value = " & formatcurrency(total) & "></td>"%>
<tr><td align = "center"><input type="button" name="btnFinalize" id="btnFinalize" value="Finalize!" onClick="Finalize()"></td>
</tr>
</table>
</form>
</body>
</html>
<html>
<head>
<META NAME="Sales" Content="Offers online buying capability">
<title>Sales</title>
<script language = “javascript”>
function Finalize()
{
document.formSales.submit()
}
</script>
</head>
<link href="Styleforms.css" rel="stylesheet" type="text/css">
<body>
<h3 align= "center"> If your order is correct please check below to finalize the transaction!</h3>
<form name = "formSales" id = "formSales" action = "Finalize.asp" method = "post">
<table border = 1 cellspacing = 0 cellpadding = 5 align = "center">
<%
dim x, count, subtotal, total, provTax, fedTax, temp2
x = 1
count = session ("TotalProdCount")
%>
<% Response.Write(" ") %>
<%
temp2 = "'" + Request.Form.Item("prodName" + cstr(x)) + "'"
do while x <= count
if (Request.Form.Item("checkYes" + cstr(x)) = 1) then %>
<% = "<tr><td align = center><input type = text readonly size = 2 id = prodID2" & cstr(x) & "
name = prodID2" & cstr(x) & " value = " & Request.Form.Item("prodId" + cstr(x)) & "></td>"%>
<% = "<td align = center><input type = text readonly size = 40 id = prodName2" & cstr(x) & " name
= prodName2" & cstr(x) & " value = " & Request.Form.Item("prodName" + cstr(x)) & "></td>"%>
<% = "<td align = center><input type = text readonly size = 6 id = prodPrice2" & cstr(x) & " name
= prodPrice2" & cstr(x) & " value = " & formatcurrency(Request.Form.Item("prodPrice" + cstr(x))) &
"></td>"%>
<% subtotal = subtotal & CCur(Request.Form.Item("prodPrice" + cstr (x))) %>
<%
end if
x = x + 1
provTax = subtotal * (8/100)
fedTax = subtotal *(7/100)
total = subtotal =provTax +fedTax
loop
session ("buyItems") = x
%>
<% Response.Write ("<br>") %>
<% Response.Write ("<br>") %>
<% = "<tr><td align = center colspan = 3><input type = text readonly size = 30 id = transdate name = transdate value = Transaction></td>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = transdate name = transdate value = Date></td>"%>
<% = "<td align = center><input type= text readonly size = 7 id = date name = date value = " & date() & "></td></tr>"%>
<% = "<tr><td align = left colspan= 2>< input type = text readonly size = 15 id = txtTotal name = txtTotal value = SubTotal></td>"%>
<% = "<td align = center><input type= text readonly size = 7 id = valtotal name = valtotal value = " & formatcurrency(subtotal) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtProvTax name = txtProvTax value = Provincial Tax></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valProvTax name=valProvTax value = " & formatcurrency(provTax) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtFedTax name = txtFedTax value = Federal Tax></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valFedTax name= valFedTax value = " & formatcurrency(fedTax) & "></td></tr>"%>
<% = "<tr><td align = left colspan = 2><input type = text readonly size = 15 id = txtTotal name = txtTotal value = Total></td>"%>
<% = "<td align = center><input type = text readonly size = 7 id = valTotal name = valTotal value = " & formatcurrency(total) & "></td>"%>
<tr><td align = "center"><input type="button" name="btnFinalize" id="btnFinalize" value="Finalize!" onClick="Finalize()"></td>
</tr>
</table>
</form>
</body>
</html>