Current File : /home/karenpetzb/application/modules/default/views/scripts/commande/factureedit.phtml |
<?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, ',', ' ').' €';
}
?>
</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, ',', ' '); ?> €</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, ',', ' '); ?> €</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, ',', ' '); ?> €</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, ',', ' '); ?> €</td>
</tr>
<tr align="right">
<td class="bill_line2">Total TVA</td>
<td class="bill_line2"><?php echo number_format($facture['PRIXTOTALTVA'], 2, ',', ' '); ?> €</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, ',', ' '); ?> €</td>
</tr>
</table>
</div>
</div>
</div>