{include file='inc_header.tpl'}

	<!-- ######################################################################################################### -->

	<tr>
	  <td valign="top">
		<div id="leftcontent">
		  {include file='inc_left.tpl'}
		</div>
	  </td>

	  <!-- ######################################################################################################### -->

	  <td valign="top">
		<div id="centercontent">
		  {include file='inc_menu.tpl'}

		  <div id="produit_box_titre">&nbsp;<a href="./">Articles</a> > Contenu de votre panier</div>
		  <div id="produit_box">

			<table summary="r&eacute;capitulatif de votre commande" id="table_panier">
			  <thead>
				<tr>
				  <td colspan="7">&nbsp;</td>
				</tr>
			  </thead>

			  {if ($BASKET == 'empty')}

			  <tbody>
				<tr>
				  <td colspan="7">Votre panier est actuellement vide !</td>
				</tr>
			  </tbody>

			  {else}

			  <thead>
				<tr id="table_panier_titre">
				  <th width="10%" >R&egrave;f</th>
				  <!--<th width="52">&nbsp;</th>-->
				  <th>Produit</th>
				  <th width="10%">Prix</th>
				  <th width="10%">Quantit&eacute;</th>
				  <th width="10%">Total</th>
				  <th width="10%">.</th>
				</tr>
			  </thead>

			  {foreach from=$BASKET item=BASKET_DETAIL}

			  <tbody>
				<tr class="table_panier_produit">
				  <td align="left">{$BASKET_DETAIL.Reference}</td>
				  <!--<td align="center"><a href="./images/product_big/{$BASKET_DETAIL.ImgName}" class="lightwindow page-options" title="{$BASKET_DETAIL.ProductName}"><img src="./images/product_mini/{$BASKET_DETAIL.ImgName}" style="border: 1px solid #808080;" /></a></td>-->
				  <td align="left">{$BASKET_DETAIL.ProductName}</td>
				  <td align="right">{$BASKET_DETAIL.PriceUnit} &euro;</td>
				  <td align="right">
					<form name="formBasket{$BASKET_DETAIL.ID_BasketDetail}" method="POST" action="">
					  <input type="hidden" name="data[ID_BasketDetail]" value="{$BASKET_DETAIL.ID_BasketDetail}" />
					  <select name="data[Quantity]" size="1" style="width: 70px;" onChange="document.formBasket{$BASKET_DETAIL.ID_BasketDetail}.submit()">{$BASKET_DETAIL.LoopQte}</select>
					</form>
				  </td>
				  <td align="right">{$BASKET_DETAIL.PriceQte} &euro;</td>
				  <td align="center">
					<form name="formBasketDelete" method="POST" action="">
					  <input type="hidden" name="DP" value="{$BASKET_DETAIL.ID_Product}">
					  <input name="remove" type="submit" onClick="" id="remove" value="Retirer" class="zbox" />
					</form>
				  </td>
				</tr>
			  </tbody>

			  {/foreach}

			  <tbody>
				<tr id="table_panier_total">
				  <td align="right" colspan="4">Total g&eacute;n&eacute;ral&nbsp;</td>
				  <td align="right"><b style="color: purple; font-weight: bold; font-size: 1.2em;">{$BASKET_TOTAL} &euro;</b></td>
				  <td>&nbsp;</td>
				</tr>
			  </tbody>

			  {/if}

			</table>

			<form name="charform" method="POST" action="">
			  <input type="hidden" name="remove" id="remove" value="" />

			  <table width="100%">
				<tr align="center">
				  <td>
				  {if ($BASKET != 'empty')}
					<br /><a class="bouton" href="./">&lt;&lt; Continuer mes achats</a>
				  </td>
				  <td>
					<br /><a class="bouton" href="./adresse.php">Proc&eacute;der au paiement &gt; &gt;</a>
				  {else}
					<br /><a class="bouton" href="./">&lt;&lt; Continuer mes achats</a>
				  {/if}
				  </td>
				</tr>
			  </table>

			</form>

		  </div>
		</div>
	  </td>

	  <!-- ######################################################################################################### -->

	</tr>
  </table>
</div>

<script type="text/javascript">initGalleryScript();</script>

{include file='inc_footer.tpl'}
