{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 class="box_titre"><a href="./">Acceuil</a> > [ <a href="compte.php" title="Votre compte">Votre compte</a><b>&nbsp;::&nbsp;</b>Vos commandes ]</div>
		  <div class="box">

			{if ($orderList != false)}
			<table id="table_histo_cmd">
			  <tr>
				<th width="15%">Date</th>
				<th width="15%">N&deg; commande</th>
				<th width="10%">Montant</th>
				<th width="60%">Status</th>
			  </tr>

			  {foreach from=$ORDER_LIST item=ORDERLIST}
			  <tr>
				<td align="center">{$ORDERLIST.Date}</td>
				<td align="center"><a href="?IDO={$ORDERLIST.ID_Orders}#{$ORDERLIST.ID_Orders}">{$ORDERLIST.BillNumber}</a></td>
				<td align="right">{$ORDERLIST.Amount}&nbsp;&euro;&nbsp;</td>
				<td align="left">{$ORDERLIST.DetailStatus}</td>
			  </tr>
			  {/foreach}
			</table>
			{else}
			<p>Votre historique en contient aucune commandes pour le moment.</p>
			{/if}

		  </div>

		  {if ($smarty.get.IDO > 0)}
		  <div class="box_titre">D&eacute;tail de la commande n&deg; <b class="green">{$BILL_NUMBER}</b> du {$ORDER_DATE}</div>
		  <div class="box">

		  <table id="table_detail_cmd">
			<thead>
			  <tr>
				<th width="15%">R&eacute;f&eacute;rence</th>
				<th width="60%">Article</th>
				<th width="9%">Prix unitaire</th>
				<th width="7%">Qt&eacute;</th>
				<th width="9%">Total</th>
			  </tr>
			</thead>

			{foreach from=$ORDER_DETAIL item=ORDERDETAIL}
			<tbody>
			  <tr>
				<td class="ligne_cmd" align="left">&nbsp;{$ORDERDETAIL.Reference}</td>
				<td class="ligne_cmd" align="left">&nbsp;{$ORDERDETAIL.ProductName}</td>
				<td class="ligne_cmd" align="right">{$ORDERDETAIL.Price}&nbsp;&euro;&nbsp;</td>
				<td class="ligne_cmd" align="center">{$ORDERDETAIL.Quantity}</td>
				<td class="ligne_cmd" align="right">{$ORDERDETAIL.PriceLine}&nbsp;&euro;&nbsp;</td>
			  </tr>
			</tbody>
			{/foreach}

			<tbody>
              <tr>
                <td class="" colspan="4" align="right">Frais d'envoi : </td>
                <td align="right">{$ORDER_COST}&nbsp;&euro;&nbsp;</td>
              </tr>
              <tr>
                <td class="" colspan="4" align="right">T.V.A. : </td>
                <td align="right">{$ORDER_TAX}&nbsp;&euro;&nbsp;</td>
              </tr>
              <tr>
                <td colspan="4" align="right">Total de la commande : </td>
                <td class="total_cmd">{$ORDER_TOTAL}&nbsp;&euro;&nbsp;</td>
              </tr>
            </tbody>
		  </table>

		  </div>
		  {/if}


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

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

{include file='inc_footer.tpl'}
