Current File : /home/k/a/r/karenpetzb/www/items/category/commande.tar
paiement.phtml000060400000002134150714201110007400 0ustar00
<?php 
if (isset($this->verifMessage) && $this->verifMessage == 1) { ?>
<div class="col-xs-6 col-xs-offset-3 alert alert-success text-center hidden-print"  >
	Votre commande a �t� prise en compte
</div>
<div class="col-xs-12  hidden-print" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-6 text-center "><a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/">Retourner � la page d'accueil</a></div>
	<div class="col-xs-6 text-center "><a class="btn btn-default" onclick="window.print();return false;" href="<?php echo $this->baseUrl; ?>/"><span class="fa fa-print"></span> Imprimer</a></div>
</div>
<?php } else { ?>

<div class="col-xs-6 col-xs-offset-3 alert alert-danger text-center hidden-print"  >
	Votre commande n'a pas �t� prise en compte
</div>
<div class="col-xs-12" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-12 text-center"><a class="btn btn-primary hidden-print" href="<?php echo $this->baseUrl; ?>/mon-panier-validation.html">Retourner � la page de validation</a></div>
</div>		
<?php }	?>

<?php echo $this->render("/commande/facture.phtml"); ?>facture_mail.phtml000060400000037400150714201110010235 0ustar00<!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">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<meta name="Identifier-URL" content="<?php echo $this->baseUrl_SiteCommerceUrl;?>" />
	<meta name="Reply-to" content="<?php echo $this->serviceClient_Mail;?>" />
	
	<style type="text/css">
	
img {
	border: none;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
}

body {
	font-family: "Arial";
	font-size: 12px;
	text-align: left;
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

.oldPromoPrice {
	font-size: 10px;
	font-weight: normal;
	color: #5e5e59;
	text-decoration: line-through;
}
.link6 a:link,.link6 a:visited,.link6 a:active {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: bold;
	color: #787878;
	text-decoration: none;
}

.link6 a:hover {
	text-decoration: underline;
}

.textTd1 {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}
 

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	padding: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
	padding:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	padding:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	padding:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}




.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
	padding: 10px 0 0 20px;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px; 
}

.bill_buy{
	float: left;
	width:500px; 
}
 
.bill_user_paiement_box {
	width:450px;
	margin:5px 0 0 0;
	padding: 0 10px 10px 10px;
	border : 2px #000000 solid;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
	padding :10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
	padding: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
	padding: 0 0 20px 0;
}
.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
</head>
<body>

<?php
$facture = $this->facture;
?>
<div style="clear: both;	width: 800px;	margin: 0 auto 0 auto;">
	<div style="float: clear;width: 800px;">
		<div class="bill_company">
			<div class="bill_company_logo"> 
				<a href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png" style="border: none;"/></a>
			</div>
		</div>
		<div  style="	float: right;	width: 400px;">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php if ($facture['STATUT'] == 1 || $facture['STATUT'] == 2 || $facture['STATUT'] == 3) { echo 'Facture';} else {echo 'Devis';} ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
					} catch(Zend_Exception $e) { } 
					?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div> 
		</div>
		<div style="	float: left;	width: 350px;">
			<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
			<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
			<?php } ?>
			<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
			<span class="bill_text">Email : <?php  echo $this->serviceClient_Mail;?></span>
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line"  style="text-align: center">P.U. HT</th>
				<th class="bill_line"  style="display: none;">Prix Remis�</th>
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) {
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row['REFERENCE']);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<a target="_blank"  href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row['NAVNOM_URLPARENTS'], $row['NAVPRODUCTNOM'], $row['PRODUCTID']); ?>"><?php echo $row['DESIGNATION'];?></a>
					<?php if (!empty($row['SELECTEDOPTION'])) { 
						echo '<br/>'.$row['SELECTEDOPTION'].'<br/>';
					} ?>
				</td> 
				<td class="textTd1" > 
					<?php if ((int)$row['STOCK'] == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row['STOCK'] == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row['STOCK'] == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row['QUANTITY']; ?>	
				</td>
				<td class="textTd1" width="150px">
						<?php $this->currentData = $row;
						echo $this->render("../produits/ajaxshowpromoprice.phtml"); ?>
				</td>
				<td width="120px"  style="display: none;">
				<?php if ($row['isPROMO'] == 1 && $row['REMISEPRIX'] > 0) { ?>
					<span class="textTd1" >
						<?php
							if ((int)$row['REMISEPRIXTAUXP'] > 0) {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364; <br>('.$this->escape($row['REMISEPRIXTAUXP']).' %)';
								} else {
									echo number_format($row['REMISEPRIX'], 2, ',', ' ').' &#8364;';
								}
							?>
					</span>
					<?php } ?>
				</td>
				<td width="120px">
					<span class="textTd1" style="float: right;" >
						<?php if ($row['isDEVIS'] == 1) { 
							echo number_format($row['PRIXTOTAL'], 2, ',', ' ').' &#8364;';
						} ?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>
	
  <?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row['NOM'].' ('.$row['NBPOINT'].' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>				
		</table>
	</div>
	<div class="bill_facture"> 
		<div class="bill_buy">   
				<?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
						case 1 : ?>
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par ch�que</div>
							<div style="margin-left:10px">- Veuillez libeller votre ch�que � l�ordre de <?php echo $this->siteName; ?></div>
							<div style="margin-left:10px">- Inscrivez le num�ro de votre commande au dos de votre ch�que</div>
							<div style="margin-left:10px">- Puis envoyez votre r�glement � l�adresse suivante :</div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->siteName; ?></div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_title; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_address; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_cp; ?></div>
							<br/>
							<div style="font-size:10px;text-align:center">A noter : Les produits sont exp�di�s � r�ception du ch�que</div> 
						</div> 
						<?php  break;
							case 2 : ?>  
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par virement</div>
							<div >- La commande sera exp�di�e d�s le virement pr�sent sur notre compte bancaire.</div> 
							<div class="bill_text">- Inscrivez votre num�ro de commande sur le formulaire de virement</div> 
							<div >- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15 jours</span> pour effectuer le virement sur notre compte ci-dessous indiqu�, au d�l� de ce d�lai votre commande sera automatiquement annul�e.</div> 
							<br/>
							<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div> 
							<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div> 
							<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div> 
							<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div> 
							<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>  
						</div> 
				<?php 	break;
						default : ?>
							<span class="bill_text2">
							<?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?> Mode de reglement :
							<?php 
								switch ($facture['USER_MODEPAIEMENT']) {
									case 1 : echo " Paiement s�curis� en ligne"; break;
									case 2 : echo " Contre remboursement";break;
									case 3 : echo " Paiement diff�r� - 30 jours";break;
									case 4 : echo " Paiement diff�r� - 45 jours";break;
									case 5 : echo " Paiement diff�r� - 60 jours";break;
									case 6 : echo " A r�ception de la facture";break;
								}
							} else { 
								echo $facture['USER_MODEPAIEMENT_LABEL'];
							} ?>
							</span>	 
						<?php 
						break;  
				} ?>  
		</div> 
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right"> 
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['LIV_NOM']) && !empty($facture['LIV_NOM']) ) { echo 'Livraison en '.$facture['LIV_NOM']; } else { echo 'Frais de port'; } 
						} ?>
					</td>
					
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="bill_footer">
			<span class="link18">
				<input type="checkbox" checked="checked" disabled="disabled"/>
				J'ai pris connaissance des Conditions G�n�rales de Vente et les accepte sans r�serves.
			</span>
			<br /><br />
			<span class="bill_text3">
			P�nalit�s de retard (taux annuel) : 9,00% 
			</span><br>
			<span class="bill_text3">
			<b>RESERVE DE PROPRIETE</b> : Nous nous r�servons la propri�t� des marchandises jusqu'au paiement du prix par l'acheteur. Notre droit de revendication porte aussi bien sur les marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du 12 mai 1980). 
			</span><br><br>
	</div>
	
		<div class="bill_footer2" >
				<span class="bill_text3">
			<?php echo $this->site_addresse; ?>
			</span><br>
			<span class="bill_text3">
			<?php echo $this->site_actualshort; ?>
			</span>
		</div >
</div>


</body>
</html>
facture.phtml000060400000036655150714201110007246 0ustar00
<?php
$facture = $this->facture;
?>
<script type="text/javascript"> 
	 $(function(){
		 window.print();
	});
</script>
<style type="text/css">
.textTd1 {
	font-family: "Verdana";
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}
.oldPromoPrice {
	font-size: 10px;
	font-weight: normal;
	color: #5e5e59;
	text-decoration: line-through;
}
.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}

.bill_header {
	float: clear : both;
	width: 800px;
}

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
	
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
 
.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px; 
}

.bill_buy{
	float: left;
	width:500px; 
}
 
.bill_user_paiement_box {
	width:450px;
	margin:5px 0 0 0;
	padding: 0 10px 10px 10px;
	border : 2px #000000 solid;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
}

.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
<div class="bill_body">
	<div class="bill_header">
		<div class="bill_company">
			<div class="bill_company_logo">
        <a href="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png" style="border: none;"/></a>
			</div>
		</div>
		<div class="bill_idents">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php if ($facture['STATUT'] == 1) { echo 'Commande N';} else {echo 'Devis N';} ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line"><?php echo $facture['REFERENCE']; ?></span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
		
					
					} catch(Zend_Exception $e) {
						
					} ?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div> 
		</div>
		<div style="float: left;width:800px ">
			<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
				<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
			<?php } ?>
			<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
			<span class="bill_text">Email : <?php echo $this->serviceClient_Mail; ?></span>
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].'  '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line" style="text-align:center">P.U. HT</th> 
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) {
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row->item_reference);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<?php echo $row->item_designation;?>
					<?php if (!empty($row->item_selectedOption)) { 
						echo '<br/>'.$row->item_selectedOption.'<br/>';
					} ?> 
				</td>
				<td class="textTd1" > 
					<?php if ((int)$row->item_stock == 1) { ?>
					<img alt="Disponible" title="Disponible" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row->item_stock == 2) { ?>
					<img alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row->item_stock == 3) { ?>
					<img alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row->item_qte; ?>	
				</td>
				<td class="textTd1" width="150px">
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td> 
				<td width="120px">
					<span class="textTd1" style="float: right;" >
					<?php 
						if (!$row->isSurDevis()) {
							echo number_format($row->getPrixTotalHT(true), 2, ',', ' ').' &#8364;';
						}
					?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>	
			
  <?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row->fidelite_nom.' ('.$row->fidelite_nbpoint.' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>
		</table>
	</div>
	<div class="bill_facture">
		<?php if ($facture['STATUT'] == 1) { ?> 
		<div class="bill_buy">   
				<?php switch ($facture['USER_MODEPAIEMENT_TYPE']) {
						case 1 : ?>
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par ch�que</div>
							<div style="margin-left:10px">- Veuillez libeller votre ch�que � l�ordre de <?php echo $this->siteName; ?></div>
							<div style="margin-left:10px">- Inscrivez le num�ro de votre commande au dos de votre ch�que</div>
							<div style="margin-left:10px">- Puis envoyez votre r�glement � l�adresse suivante :</div>
							<br/>
							<div class="bill_text" style="text-align:center"><?php echo $this->siteName; ?></div>
							<br/>
						<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_title; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_address; ?></div>
							<div class="bill_text" style="text-align:center"><?php echo $this->site_addresse3_cp; ?></div>
							<br/>
							<div style="font-size:10px;text-align:center">A noter : Les produits sont exp�di�s � r�ception du ch�que</div> 
						</div> 
						<?php  break;
							case 2 : ?>  
						<div class="bill_user_paiement_box">
							<div class="bill_text2" style="text-align:center">Mode de paiement : Par virement</div>
							<div >- La commande sera exp�di�e d�s le virement pr�sent sur notre compte bancaire.</div> 
							<div class="bill_text">- Inscrivez votre num�ro de commande sur le formulaire de virement</div> 
							<div >- Vous disposez d�un <span style="font-weight: bold;">d�lai de 15 jours</span> pour effectuer le virement sur notre compte ci-dessous indiqu�, au d�l� de ce d�lai votre commande sera automatiquement annul�e.</div> 
							<br/>
							<div class="bill_text">RIB : <?php echo $this->site_rib_numbers; ?></div> 
							<div class="bill_text">No IBAN : <?php echo $this->site_rib_iban; ?></div> 
							<div class="bill_text">Code BIC : <?php echo $this->site_rib_bic; ?></div> 
							<div class="bill_text">Nom du compte : <?php echo $this->siteName; ?></div> 
							<div class="bill_text">Nom et domiciliation de la banque : <?php echo $this->site_rib_bankname; ?></div>  
						</div> 
				<?php 	break;
						default : ?> 
							<span class="bill_text2">
							<?php if (empty($facture['USER_MODEPAIEMENT_LABEL'])) { ?> Mode de reglement :
							<?php 
								switch ($facture['USER_MODEPAIEMENT']) {
									case 1 : echo " Paiement s�curis� en ligne"; break;
									case 2 : echo " Contre remboursement";break;
									case 3 : echo " Paiement diff�r� - 30 jours";break;
									case 4 : echo " Paiement diff�r� - 45 jours";break;
									case 5 : echo " Paiement diff�r� - 60 jours";break;
									case 6 : echo " A r�ception de la facture";break;
								}
							} else { 
								echo $facture['USER_MODEPAIEMENT_LABEL'];
							} ?>
							</span>	 
						<?php 
						break;  
				} ?>  
		</div>
		<?php } ?>
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']['CODE']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right"> 
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['INFOLIV']) && !empty($facture['INFOLIV']) ) { echo 'Livraison en '.$facture['INFOLIV']['NOMLIV']; } else { echo 'Frais de port'; } 
						} ?>
					</td> 
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="bill_footer">
			<span class="link18">
				<input type="checkbox" checked="checked" disabled="disabled"/>
				J'ai pris connaissance des Conditions G�n�rales de Vente et les accepte sans r�serves.
			</span>
			<br /><br />
			<span class="bill_text3">
			P�nalit�s de retard (taux annuel) : 9,00% 
			</span><br>
			<span class="bill_text3">
			<b>RESERVE DE PROPRIETE</b> : Nous nous r�servons la propri�t� des marchandises jusqu'au paiement du prix par l'acheteur. Notre droit de revendication porte aussi bien sur les marchandises que sur leur prix si elles ont d�j� �t� revendues (Loi du 12 mai 1980). 
			</span><br><br>
	</div>
	
		<div class="bill_footer2" >
				<span class="bill_text3">
			<?php echo $this->site_addresse; ?>
			</span><br>
			<span class="bill_text3">
			<?php echo $this->site_actualshort; ?>
			</span>
		</div >
</div>
 
<script type="text/javascript">
  
  ga('create', '<?php echo $this->google_analytics; ?>', 'auto', {'name': 'cmdTracker'});
  
  ga('cmdTracker.require', 'ecommerce');
 
  ga('cmdTracker.ecommerce:addTransaction', {
    'id': '<?php echo $facture['ID_COMMAND'];?>', 
	  'affiliation': '<?php echo $this->siteName; ?>',  
	  'revenue': '<?php echo str_replace(" ", "", number_format($facture['PRIXTOTALTTC'], 2, '.', ' ')); ?>', 
	  'shipping': '<?php echo number_format($facture['PRIXFRAISPORT'], 2, '.', ' '); ?>',  
	  'tax': '0',
    'currency': 'EUR'
	});

  <?php $caddy = $facture['CADDY'];
  foreach($caddy as $row) { 
		$unitPrice = "";
		if (!$row->isSurDevis()) {
		 	if ($row->isPromo()) { 
				$unitPrice = number_format($row->getPrixAfterRemise(), 2, '.', ' ');
			} else {
				$unitPrice = number_format($row->item_prix, 2, '.', ' ').' ';
			} 
		}
	?>
	
	ga('cmdTracker.ecommerce:addItem', {
  'id': '<?php echo $facture['ID_COMMAND'];?>',    
  'name': '<?php echo strip_tags($row->item_designation);?>',   
  'sku': '<?php echo $this->escape($row->item_reference);?>',  
  'category': '',  
  'price': '<?php echo str_replace(" ", "", $unitPrice);?>',  
  'quantity': '<?php echo $row->item_qte;?>'  
});

  <?php } ?>

  ga('cmdTracker.ecommerce:send');
</script>
paypalipnvalidationtest.phtml000060400000000000150714201110012534 0ustar00connexion.phtml000060400000003101150714201110007571 0ustar00
<script type="text/javascript">
$(function(){
$('#addUserForm').submit(function(e) {  
    e.preventDefault();
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxenregistrement', 
			data : stringify($(this).serializeArray()),
      contentType:"application/x-www-form-urlencoded; charset=iso-8859-1",
			success : function(data) { 
				 if (data == "SUCCESS") {
					 window.location="/mon-panier-livraison.html";
				} else {
					$('#alertMessage').html(data);
					$('#alertMessage').show();
				} 
			}});
		});

	$('#connexionForm').submit(function() { 
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxconnexion', 
			data : $(this).serialize(),
			success : function(data) { 
				 if (data == "SUCCESS") {
					 window.location="/mon-panier-livraison.html";
				} else {
					$('#alertMessage').html(data);
					$('#alertMessage').show();
				}
			}});
		  return false;
		});	
	
});

</script>


<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id_over"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation"></div>
	</div>
</div>
<div id="alertMessage" style="display: none;" class="col-xs-6 col-xs-offset-3 alert alert-danger text-center"  ></div>

<?php 
$this->showSlide = 1;
echo $this->render("/user/connexion.phtml"); ?>devis.phtml000060400000001142150714201110006706 0ustar00<div class="col-xs-6 col-xs-offset-3 alert alert-success text-center hidden-print"  >
	Votre devis a �t� prise en compte
</div>
<div class="col-xs-12" style="margin-top: 20px; margin-bottom: 20px;">
	<div class="col-xs-6 text-center "><a class="btn btn-primary hidden-print" href="<?php echo $this->baseUrl; ?>/">Retourner � la page d'accueil</a></div>
	<div class="col-xs-6 text-center "><a class="btn btn-default" onclick="window.print();return false;" href="<?php echo $this->baseUrl; ?>/"><span class="fa fa-print"></span> Imprimer</a></div>
</div>

<?php echo $this->render("/commande/facture.phtml"); ?>
paypalipnvalidation.phtml000060400000000000150714201110011634 0ustar00livraison.phtml000060400000015414150714201110007611 0ustar00
<script type="text/javascript">
$(function(){ 
	$('#commandeLivForm').submit(function() { 
		 $.ajax( {
			type : "POST",
			async : true,
			url : '/commande/ajaxlivraison', 
			data : $(this).serialize(),
			success : function(data) { 
				 $('#cmdLivResult').html(data);
			}});
		  return false;
		});

	 $('#validLiv').bind({
	    click: function(e){ 
	 		window.location="/mon-panier-validation.html";
	    }
	});

	 var params = new Array();
	params['route'] = $('#livuser_adresse');
	params['locality'] = $('#livuser_ville');
	params['administrative_area_level_2'] = null;
	params['administrative_area_level_1'] = null;
	params['country'] = $('#livuser_pays');
	params['postal_code'] = $('#livuser_cp');
	
	initEventAddress($('#livuser_adressecomplete'), params);
	
});
</script>

<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison_over"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation"></div>
	</div>
</div>
<div class="cmdLiv">
	<div class="cmdLiv_BG1">
		<div class="textA5 titleA1">R�CAPITULATIF DE VOTRE LIVRAISON</div>
	</div>
	<div class="cmdLiv_BG2">
		<div class="col-xs-12 noPadding" style="margin-top: 10px;margin-bottom: 10px;">
		
			<div class="col-xs-6 noPadding caddy-liv-info">
				<form id="commandeLivForm" action="<?php echo $this->baseUrl; ?>/commande/ajaxlivraison/" method="post">	
			
				<div class="textA6" style="float: left;width: 100%;">
					Modifier votre adresse de Livraison
				</div>
			
				<div class="cmdField" style="margin: 10px 0 0 0">
					<div class="textA2 cmdFieldLabel">
						<?php if($this->adresseLiv['type'] == "Professionnel") { 
							echo "* Raison sociale :";
						} else {
							echo "* Pr�nom et Nom :";
						}?>
					</div>
					<div style="float: left;">
						<input type="text" class="form-control" name="livuser_raisonsocial" id="livuser_raisonsocial"  value="<?php echo $this->adresseLiv['raisonsocial']; ?>" />
					</div>
				</div>
				<input type="hidden" id="address_type" name="address_type" value="old">
					
				<div id="adresseNew"  style="display: none;">
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="messageError" id="addressError" style="clear: both;display: none;margin: 0 0 0 70px"></div>
						
						<div class="textA2 cmdFieldLabel">* Adresse :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_adressecomplete" id="livuser_adressecomplete"  value="<?php echo $this->adresseLiv['adressecomplete']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Rue :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_adresse" id="livuser_adresse"  value="<?php echo $this->adresseLiv['adresse']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Code postal :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_cp" id="livuser_cp"  value="<?php echo $this->adresseLiv['cp']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Ville :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_ville" id="livuser_ville"  value="<?php echo $this->adresseLiv['ville']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">Pays :</div>
						<div style="float: left;">
							<input  style="border: none;" readonly="readonly"  type="text" class="form-control" name="livuser_pays" id="livuser_pays"  value="<?php echo $this->adresseLiv['pays']; ?>" />
						</div>
					</div>
					
					<div class="cmdField" style="margin: 10px 0 0 0"> 
						<div style="float: left;">
							<span class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseNew'),$('#adresseOld'),$('#address_type'), 'old')">Je ne trouve pas mon adresse !</a></span>
						</div>
					</div>
							
				</div>
				
				<div id="adresseOld" >
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Adresse :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_adresse_old"  value="<?php echo $this->adresseLiv['adresse']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Code postal :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_cp_old"  value="<?php echo $this->adresseLiv['cp']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Ville :</div>
						<div style="float: left;">
							<input type="text" class="form-control" name="livuser_ville_old"  value="<?php echo $this->adresseLiv['ville']; ?>" />
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0">
						<div class="textA2 cmdFieldLabel">* Pays :</div>
						<div style="float: left;">
							<select name="livuser_pays_old" class="form-control">
								<?php 
								foreach ($this->listPays as $pays) { ?>
								<option value="<?php echo $pays['PAYS']; ?>" <?php if (strcasecmp($pays['PAYS'], "FRANCE") == 0) { echo 'selected'; } ?>><?php echo $pays['PAYS']; ?></option>
								<?php }?>
							</select>
						</div>
					</div>
					<div class="cmdField" style="margin: 10px 0 0 0;display: none;"> 
						<div style="float: left;">
							<span class="link7"><a href="javascript:;" onclick="swichAdresse($('#adresseOld'),$('#adresseNew'),$('#address_type'), 'new')">Trouver mon adresse</a></span>
						</div>
					</div>
				</div>
				</form>
			</div>
			<div class="col-xs-6 noPadding">
				<div class="textA6" style="float: left;width: 100%;">
					Adresse de Livraison 
				</div>
				<div class="col-md-8 col-md-offset-2" id="cmdLivResult">
					<?php echo $this->render("/ajax/ajaxlivraison.phtml"); ?>
				</div>
			</div>
		</div>
	
	</div>
	<div class="cmdLiv_BG3"> 
		<div class="cmdFieldSubmit">
			<input type="button" class="btn btn-primary" onclick="$('#commandeLivForm').submit();" id="editLiv" value="MODIFIER" />
		</div>
		<div class="cmdFieldSubmit2" >
			<input type="button" id="validLiv" class="btn btn-success btn-lg" value="CONTINUER"/>
		</div>
	</div>
</div>
validation.phtml000060400000021171150714201110007732 0ustar00

<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation_over"></div>
	</div>
</div>
<?php 
$facture = $this->facture;
?>
<div style="float: left; margin: 0 0 0 150px">
	<span class="text3" >Avant de terminer votre commande, veuillez v�rifier l'exactitude de vos donn�es. </span>
</div>

 <?php echo $this->render("/commande/factureedit.phtml"); ?>

<div class="col-xs-6 col-xs-offset-6 text-right" >
  <div class="checkbox" style="width: 360px;">
	   <label class="link18">
          <input type="checkbox" name="isCGV" id="isCGV" > J'ai pris connaissance des <a href="<?php echo $this->baseUrl; ?>/info-3/conditions-generales-vente.html" target="_blank">Conditions G�n�rales de Vente</a>
	
        </label>
	</div>
  </div>
<div class="col-xs-12 noPadding" style="margin: 20px 0 70px 0;">

	<div  class="col-sm-3 col-xs-12 text-center noPadding" > 
		<a class="btn btn-primary btn-lg caddy-link" href="<?php echo $this->baseUrl; ?>/commande/devis" onclick="return checkCheckBoxes('isCGV');" >
			FAIRE UN DEVIS
		</a> 
	</div> 
	<?php if ($facture['PRIXTOTALTTC'] > 0 && $this->isCommandValid == true) { ?>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/1" class="btn btn-primary caddy-link"   >
				PAYER PAR CHEQUE
			</a>
		</div>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');" href="<?php echo $this->baseUrl; ?>/commande/paiement/type/2" class="btn btn-primary caddy-link" >
				FAIRE UN VIREMENT
			</a>
		</div>
		
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<?php 
				$modepaiement = $facture['USER_MODEPAIEMENT'];
				$isCompte = false;  
				$modepaiement_imgTexte = '';
				if ($this->user['isrecepfacture'] == "Y" || $this->user['iscredit'] == 1) {
					switch ($modepaiement) {
						case 2 : 
							$modepaiement_texte = "Payer � r�ception de la facture";
							$modepaiement_img = "/business/image/inbox.png";
							$modepaiement_imgTexte = "Payer � r�ception de la facture";
							$isCompte = true;
							break;
						case 3 : 
							$modepaiement_texte = "Paiement diff�r� - 30 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 30 jours";
							$isCompte = true;
							break;
						case 4 : 
							$modepaiement_texte = "Paiement diff�r� - 45 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 45 jours";
							$isCompte = true;
							break;
						case 5 : 
							$modepaiement_texte = "Paiement diff�r� - 60 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 60 jours";
							$isCompte = true;
							break;
						case 6 : 
							$modepaiement_texte = "A r�ception de la facture";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer a r�ception de la facture";
							$isCompte = true;
							break;
						default :
							$isCompte = false;
							break;
					} 
				}   
				if ($isCompte) { 
			?>
			<a onclick="return checkCheckBoxes('isCGV');" title="<?php echo $modepaiement_imgTexte; ?>"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/3" data-placement="bottom" class="tooltips btn btn-danger btn-lg caddy-link" >
					EN COMPTE
				</a>
				<?php } ?>
		</div>
		<div class="col-sm-3 col-xs-12 text-center noPadding" >
				<?php $myDate = new Zend_Date(strtotime($facture['DATESTART'])); ?>
				
					<form action="https://securepayments.paypal.com/acquiringweb?cmd=_hosted-payment" method="post">
						<input type="hidden" name="cmd" value="_hosted-payment">
						<input type="hidden" name="business" value="<?php echo $this->paypal_business; ?>">
						<input type="hidden" name="item_name" value="<?php echo 'Total de la commande du '.$myDate->toString('dd/MM/YYYY').' (TTC)'; ?>" /> 
						<input type="hidden" name="item_number" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="custom" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="no_shipping" value="1">
						<input type="hidden" name="no_note" value="1">
						<input type="hidden" name="return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="cancel_return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="page_style" value="PayPalPerso">
						<input type="hidden" name="currency_code" value="EUR">
						
						<input type="hidden" name="subtotal" value="<?php echo $facture['PRIXTOTALTTC']; ?>"> 
						<input class="btn btn-success btn-lg caddy-link btn-paypal-only" data-placement="top" type="submit" name="PayPal2" value="PAYER VIA PAYPAL"  onclick="return checkCheckBoxes('isCGV');" >
						
						<input type="hidden" name="first_name" value="<?php echo utf8_encode($facture['LIV_RAISONSOCIAL']); ?>">
						<input type="hidden" name="address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="zip" value="<?php echo utf8_encode($facture['LIV_CP']); ?>">
						<input type="hidden" name="country" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
						<input type="hidden" name="billing_first_name" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
						<input type="hidden" name="billing_last_name" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
						<input type="hidden" name="billing_address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="billing_city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="billing_zip" value="<?php echo utf8_encode($facture['FACT_CP']); ?>">
						<input type="hidden" name="billing_country" value="<?php echo utf8_encode($facture['FACT_PAYS']); ?>">
					
						<!-- PERSONNALISATION -->
						<input type="hidden" name="template" value="TemplateA">
						<input type="hidden" name="bodyBgColor" value="#A2A1A1">
						<input type="hidden" name="footerTextColor" value="#000000">
						<input type="hidden" name="headerBgColor" value="#ffffff">
						<input type="hidden" name="headerHeight" value="150">
						<input type="hidden" name="logoImage" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png">
						<input type="hidden" name="orderSummaryBgColor" value="#D6D6D6">
						<input type="hidden" name="pageButtonBgColor" value="#68B777">
						<input type="hidden" name="pageButtonTextColor" value="#000000">
						
						<input type="hidden" name="pageTitleTextColor" value="#DE021B">
						<input type="hidden" name="sectionBorder" value="#DE021B">
						<input type="hidden" name="showCustomerName" value="true">
						<input type="hidden" name="showBillingAddress" value="true">
						<input type="hidden" name="showShippingAddress" value="true">
						
					</form>
			</div>
			<?php } ?>
	</div>	

	<input type="hidden" id="PRIXTOTALHT" value="<?php echo $facture['PRIXTOTALHT']; ?>">
	<input type="hidden" id="PRIXTOTALTTC" value="<?php echo $facture['PRIXTOTALTTC']; ?>">
	<input type="hidden" id="PRIXFRAISPORT" value="<?php echo $facture['PRIXFRAISPORT']; ?>">
	<input type="hidden" id="PRIXTAX" value="<?php echo $facture['PRIXTOTALTTC'] - $facture['PRIXTOTALHT'] ; ?>">
	<input type="hidden" id="REFERENCE" value="<?php echo $facture['REFERENCE']; ?>">
	<input type="hidden" id="IDUSER" value="<?php echo $facture['IDUSER']; ?>">
	<input type="hidden" id="USER_EMAIL" value="<?php echo $facture['USER_EMAIL']; ?>">
	<input type="hidden" id="USER_NOM" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
	<input type="hidden" id="USER_PRENOM" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
	<input type="hidden" id="LIV_VILLE" value="<?php echo utf8_encode($facture['LIV_VILLE']); ?>">
	<input type="hidden" id="LIV_PAYS" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
	<input type="hidden" id="USER_TYPE" value="<?php echo $facture['USER_TYPE']; ?>">
	<input type="hidden" id="USER_MODEPAIEMENT_LABEL" value="<?php echo $facture['USER_MODEPAIEMENT_LABEL']; ?>"> 
factureedit.phtml000060400000024601150714201110010100 0ustar00
<?php
$facture = $this->facture;
?>
<style type="text/css">
.oldPromoPrice,
.text12 {
font-size: 11px;
}

.bill_body {
	clear: both;
	width: 800px;
	margin: 0 auto 0 auto;
}

.bill_header {
	float: clear : both;
	width: 800px;
}

.bill_company {
	float: left;
}
.bill_company_logo {
	margin: 10px 0 10px 10px;
	width: 94px;
	height: 121px;
}
.bill_idents {
	float: right;
	width: 550px;
	margin: 20px 0 0 0 ;
}
.bill_idents_opt1{
	float:left;
	width:120px;
	height:50px;
	margin:0 0 0 10px;
}

.bill_idents_opt21{
	float:left;
	width:120px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt31{
	float:left;
	width:120px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_idents_opt22{
	float:left;
	width:250px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}
.bill_idents_opt32{
	float:left;
	width:250px;
	height:24px;
	margin:1px 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_text {
	color: #000000;
	font-weight: bold;
}
.bill_text2 {
	color: #000000;
	font-weight: bold;
	line-height:25px;
}
.bill_text3 {
	color: #000000;
	font-size:11px;
}
.bill_address {
	float: left;
	width: 800px; 
	margin:10px 0 0 0;
}

.bill_address_opt {
	float: left;
	width: 300px; 
	margin: 0 0 0 50px;
}
.bill_address_opt1{
	float:left;
	width:300px;
	height:25px;
	background-color: #e7e7e7;
	margin:0 0 0 0;
	text-align:center;
	border: solid 1px black;
	color: #000000;
	font-weight: bold;
}

.bill_address_opt2 {
	float:left;
	width:250px;
	margin: 10px 0 0 20px;
}
.bill_address_opt3 {
	float:left;
	width:300px;
	margin: 10px 0 0 0;
}

.bill_line {
	line-height:25px;
	text-align:center;
	font-weight:bold;
}
.bill_line2 {
	line-height:20px;
}

.bill_caddy {
	float: left;
	width:800px;
	height:auto;
}

.bill_facture{
	float: left;
	width:800px;
	height:150px;
}

.bill_buy{
	float: left;
	width:350px;
	height:30px;
}

.bill_detail{
	float: right;
	width:250px;
	height:130px;
	border: solid 1px black;
	margin: 10px 0 0 0;
}
.bill_footer{
	float: left;
	width:800px;
	margin: 20px 0 0 0;
}
.bill_footer2{
	float: left;
	width:800px;
	text-align:center;
	margin: 0 0 20px 0;
}

.bill_linkd a:link,.bill_linkd a:visited,.bill_linkd a:active {
	font-family: "Arial";
	font-size: 12px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
}

.bill_linkd a:hover {
	text-decoration: underline;
}
</style>
<div class="bill_body">
	<div class="bill_header">
		<div class="bill_company">
			<div class="bill_company_logo"> 
				<a href="<?php echo $this->baseUrl; ?>/"><img alt="Directement � la source de la qualit�" src="<?php echo $this->baseUrl; ?>/business/image/logo.png" /></a>
			</div>
			<div>
				<?php if (!empty($facture['USER_NUMCOMPTE'])) {?>
				<span class="bill_text">Compte : <?php echo $facture['USER_NUMCOMPTE']; ?></span><br>
				<?php } ?>
				<span class="bill_text">Tel : <?php echo $this->tel_contact; ?></span><br>
				<span class="bill_text">Email : <?php echo $this->serviceClient_Mail; ?></span>
			</div>
		</div>
		<div class="bill_idents">
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt21">
					<span class="bill_line"><?php echo 'Date'; ?></span>
				</div>
				<div class="bill_idents_opt31">
					<span class="bill_line">
					<?php 
					try {
					$myDate = new Zend_Date(strtotime($facture['DATESTART']));
					
					$mois = array('','Jan.', 'F�v.', 'Mars', 'Avril', 'Mai', 'Juin', 'Juil.', 'Ao�t', 'Sept.', 'Oct.', 'Nov.', 'D�c.');
				$moisComplet = array('','Janvier', 'F�vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao�t', 'Septembre', 'Octobre', 'Novembre', 'D�cembre');
				
					echo $myDate->toString("dd").' '.$mois[(int)$myDate->toString('MM')].' '.$myDate->toString("YYYY");
		
					} catch(Zend_Exception $e) {
						
					} ?>
					</span>
				</div>
			</div>
			<div class="bill_idents_opt1">
				<div class="bill_idents_opt22">
					<span class="bill_line"><?php echo 'Client'; ?></span>
				</div>
				<div class="bill_idents_opt32">
				<span class="bill_line"><?php echo $facture['USER_EMAIL']; ?></span>
				</div>
			</div>
		
		</div>
	</div>
	<div class="bill_address">
		<div class="bill_address_opt">
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Facturation</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['FACT_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_CP'].' '.$facture['FACT_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['FACT_PAYS']; ?></span>
				</div>
			<div class="bill_address_opt3">
				<span class="text3">Pour modifier votre adresse de facturation, <span class="link4"><a href="<?php echo $this->baseUrl; ?>/mon-compte.html">cliquez ici. </a></span></span>
			</div>
		</div>
		<div class="bill_address_opt">	
			<div class="bill_address_opt1">
				<span class="bill_line">Adresse de Livraison</span>
			</div>
			<div class="bill_address_opt2">
				<span class="bill_text2"><?php echo $facture['LIV_RAISONSOCIAL']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_ADRESSE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_CP'].' '.$facture['LIV_VILLE']; ?></span><br>
				<span class="bill_text2"><?php echo $facture['LIV_PAYS']; ?></span>
			</div>
			<div class="bill_address_opt3">
				<span class="text3">Pour modifier votre adresse de livraison, <span class="link4"><a href="<?php echo $this->baseUrl; ?>/mon-panier-livraison.html">cliquez ici. </a></span></span>
			</div> 
		</div>
	</div>
	<div class="bill_caddy">
		<table style="border:1px solid black;"  border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr align="center" style="background-color: #e7e7e7;">
				<th class="bill_line" >R�f�rence</th>
				<th class="bill_line">D�signation</th>
				<th class="bill_line" style="width: 60px">Dispo.</th>
				<th class="bill_line">Quantit�</th>
				<th class="bill_line"  style="text-align: center">P.U. HT</th> 
				<th class="bill_line" >Montant HT</th>
			</tr>
			<?php 
			$index = 1;
			$i = 0;
			$caddy = $facture['CADDY'];
			foreach($caddy as $row) { 
				?>
			<tr >
				<td colspan="6" height="1px" style="background-color: #868686"></td>
			</tr>
			<tr align="center"  height="25px" >
				<td class="textTd1" width="110px" style="text-align:center;white-space: nowrap;">
					<?php echo $this->escape($row->item_reference);?>
				</td>
				<td  width="450px" class="bill_linkd" style="text-align: left;">
					<a target="_blank"  href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->product_navnom_urlparents, $row->product_navnom, $row->product_id); ?>"><?php echo $row->item_designation;?></a>
					<?php if (!empty($row->item_selectedOption)) { 
						echo '<br/>'.$row->item_selectedOption.'<br/>';
					} ?>
				</td>
				<td class="textTd1" > 
					<?php if ((int)$row->item_stock == 1) { ?>
					<img class="tooltips" alt="Disponible imm�diatement" title="Disponible imm�diatement" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock11.png" />
					<?php } else if ((int)$row->item_stock == 2) { ?>
					<img class="tooltips" alt="Disponible sous 8 jours" title="Disponible sous 8 jours" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock22.png" />
					<?php } else if ((int)$row->item_stock == 3) { ?>
					<img class="tooltips" alt="Nous contacter" title="Nous contacter" src="<?php echo $this->baseUrl; ?>/business/image/admin/stock33.png" />
					<?php }?> 	
				</td>
				<td class="textTd1" >
					<?php echo $row->item_qte; ?>	
				</td>
				<td class="textTd1" width="150px">					
						<?php $this->currentData = $row;
						echo $this->render("/produits/ajaxshowpromopricecaddy.phtml"); ?>
				</td> 
				<td width="120px">
					<span class="textTd1" style="float: right;" >
					<?php 
						if (!$row->isSurDevis()) {
							echo number_format($row->getPrixTotalHT(true), 2, ',', ' ').' &#8364;';
						}
					?>
					</span>
				</td>
			</tr>
			<?php $i++; } ?>	
			<?php
	$caddyfidelite = $facture['CADDYFIDELITE'];
	foreach($caddyfidelite as $row) {
		?>
    <tr>
      <td colspan="6">
        <div style="font-weight: bold;margin:10px;">
          <?php echo 'Carte de fid�lit� : '.$row->fidelite_nom.' ('.$row->fidelite_nbpoint.' points)'; ?>
        </div>
      </td>
    </tr>
  <?php } ?>
		</table>
	</div>
	<div class="bill_facture">
		<div class="bill_detail">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr align="right">
					<td class="bill_line2">Total HT</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALHTHR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2" >Remise <?php if (isset($facture['CODEREDUCTION']) && !empty($facture['CODEREDUCTION']) ) { echo " ( ".$facture['CODEREDUCTION']['CODE']." ) "; } ?></td>
					<td  class="bill_line2" ><?php echo number_format($facture['PRIXREMISEEUR'], 2, ',', ' '); ?> &#8364;</td>
				</tr>	
				<tr align="right">
					<td  class="bill_line2">
						<?php if (strcasecmp($facture['LIV_PAYS'], "FRANCE") != 0) { ?>
						Prix d�part 	
						<?php } else {
							if (isset($facture['INFOLIV']) && !empty($facture['INFOLIV']) ) { echo 'Livraison en '.$facture['INFOLIV']['NOMLIV']; } else { echo 'Frais de port'; } 
						} ?>
					</td>
					<td class="bill_line2"><?php echo number_format($facture['PRIXFRAISPORT'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">Net HT</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALHTFP'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr align="right">
					<td  class="bill_line2">Total TVA</td>
					<td  class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
				<tr >
					<td colspan="2" height="1px" style="background-color: #868686"></td>
				</tr>
				<tr align="right">
					<td class="bill_text2">NET A PAYER TTC</td>
					<td class="bill_text2"><?php echo number_format($facture['PRIXTOTALTTC'], 2, ',', ' '); ?> &#8364;</td>
				</tr>
			</table>
		</div>
	</div>
</div>