<!--#include file="../cp/inc_func.asp"-->
<% 
OpenDB()
'response.redirect("maintenance.asp")

If Session("custID") ="" then
	response.redirect "cart_empty.asp"
End If

subtotal = 0
counter = 0
sql = "Select cart.*, productname, productprice from cart left join products on cart.itemid = products.productid where custID = " & Session("custID")
rs.open sql, , , adopenstatic
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/Main template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Bonds of London : Your Order</title>
<!-- InstanceEndEditable -->
<meta name="author" content="Designed and Marketed by designed4hits - sales@designed4hits.com"/>
<link href="/bonds-screen.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/bonds-print.css" rel="stylesheet" type="text/css" media="print" />
<meta name="author" content="Designed and Marketed by designed4hits - sales@designed4hits.com"/>
<meta name="revisit-after" content="28 days"/>
<meta name="robots" content="index, follow"/>
<!-- InstanceBeginEditable name="head" -->
<meta name="Description" content="Page description."/>
<meta name="Keywords" content="Keywords"/>
<!-- InstanceEndEditable -->
</head>
<body>
<img src="/images/BOL-high-logo.gif" alt="Bonds Of London" class="print-logo"/>
<div id="sidebar">
  <a href="/default.asp"><img src="/images/sidebar/sidebar-logo.jpg" alt="Bonds of London" class="logo" /></a>
  <div id="cata">
<h1><span></span>Product Catalogue</h1>
<ul>
<li><a href="/catalouge/pipes.asp?cat=1">Pipes</a></li>
<li><a href="/catalouge/pipeacc.asp?cat=2">Pipe Accessories</a></li>
<li><a href="/catalouge/cigars.asp?cat=3">Cigars</a></li>
<li><a href="/catalouge/cigacc.asp?cat=21">Cigar Accessories</a></li>
<li><a href="/catalouge/tobac.asp?cat=22">Luxury Cigarettes,<br />Tobacco &amp; Snuff</a></li>
<li><a href="/catalouge/smokeacc.asp?cat=23">Smoking Accessories</a></li>
<li><a href="/catalouge/lighters.asp?cat=24">Lighters</a></li>
<li><a href="/catalouge/shaving.asp?cat=25">Mens Shaving</a></li>
<li><a href="/catalouge/tank.asp?cat=26">Tankards</a></li>
<li><a href="/catalouge/hipflask.asp?cat=27">Hip Flasks</a></li>
<li><a href="/catalouge/knives.asp?cat=28">Swiss Army Knives &amp;<br />
Leatherman tools</a></li>
<li><a href="/catalouge/gift.asp?cat=29">Gifts</a></li>
<li><a href="/catalouge/maglite.asp?cat=30">MagLites</a></li>
<li><a href="/catalouge/basket.asp">View Current Order</a></li>
</ul>
</div><!--/#cata-->
<ul class="lastlist">
<li><a href="/default.asp">Homepage</a></li>
<li><a href="/About.html">About Us</a></li>
<li><a href="/news.asp">News</a></li>
<li><a href="/customers.html">Our Customers</a></li>
<li><a href="/location.html">Our Location</a></li>
<li><a href="/contact.asp">Contact Us</a></li>
</ul>
<div id="patch">
<p><img src="/images/cclogo-block.gif" alt="Cards acepted" width="117" height="50" />
<a href="/privacy.html">Privacy Notice</a><br />
  <a href="/terms.html">Terms &amp; Conditions</a><br />
  <a href="/sale.html">Conditions of Sale</a><br />
  <a href="/sitemap.html">Site Map</a> : <a href="/links.html">Links</a><br />
&copy;2007 Bonds of London</p>
<span class="d4h"></span>
</div>
<!--/#patch-->
</div>
<!--/#sidebar-->
<div id="main-box">
<div id="boxhead"></div>
<!-- InstanceBeginEditable name="MainBox" -->
  <div id="boxcont">
   <h1 class="replace-catahead">Your Current Order</h1>
<div class="alt-rules"></div>

	<table class="basket" cellspacing="0">
  <tr class="baskethead">
    <td width="20%" >Product</td>
    <td width="16%" >Quantity</td>
    <td width="16%" >Price</td>
    <td width="12%" >Remove</td>
    <td width="13%" >Update</td>
    </tr>
<%
do while not rs.eof
counter = counter + 1
%>
<form name="form<%=counter %>" method="post" action="updateqty.asp?pid=<%=rs("id") %>">
  <tr class="basketcont">
    <td><%=rs("productname") %></td>
    <td><input type="text" name="qty" id="quant" value="<%=rs("itemqty") %>" size="3" /></td>
    <td><%=formatcurrency(rs("productprice"),2) %></td>
    <td><a href="remove_item.asp?resid=<%= rs("id") %>"><img src="../images/buttons/btn-remove-alt.gif" alt="Remove From Basket" width="18" height="25"  style="margin-left:auto; margin-right:auto; width:18px; border:none;" /></a></td>
    <td class="x"><input name="submit" type="image" value="Update" src="../images/buttons/btn-refresh.gif" alt="Update Product"/></td>
    </tr>
</form>
<%
subtotal = subtotal + (rs("itemqty") * rs("productprice"))
rs.movenext
loop

if subtotal < 49.99 Then
	delcharge = 3.950
elseif subtotal > 49.99 AND subtotal < 99.99 Then
	delcharge = 6.95
elseif subtotal > 99.99 and subtotal < 499.99 Then
	delcharge = 8.95	
elseif subtotal > 500 Then
	delcharge = 10.95	

End if


vatcost = subtotal * 0.0
newsubtotal = vatcost + subtotal

If subtotal = 0 then
	delcharge = 0
End If

tot = subtotal + delcharge
%>
  <tr class="baskethead">
    <td>Subtotal</td>
    <td colspan="2">Delivery Charge</td>
    <td colspan="2"><strong class="darktxt">Total</strong></td>
    </tr>
  <tr class="basketfoot">
    <td><%=formatcurrency(subtotal,2) %><!--ASP Sub Total--></td>
    <td colspan="2"><%=formatcurrency(delcharge,2) %><!--ASP Delivery Charge--></td>
    <td colspan="2"><strong class="darktxt"><%=formatcurrency(tot,2) %><!--ASP FINAL Total--></strong></td>
    </tr>
</table>
<p>All prices include UK VAT at 20% 
  <!--Orders from outside the EU will have this deducted from the total.--></p> 
<div class="alt-rules"></div>
 <form method="post" action="checkout.asp">
      <p><input type="image" class="butright" src="../images/buttons/btn-checkout-large.gif" alt="Proceed To Checkout" border="0" /><a href="javascript:history.back()"><img src="../images/buttons/btn-continue.gif" alt="Back" width="128" height="16" border="0" class="butleft" /></a></p>
  </form>
</div><!--/#boxcont-->
<!-- InstanceEndEditable -->
<div id="boxfoot"></div>
</div><!--/#main-box-->
</body>
<!-- InstanceEnd --></html>


