Current File : /home/karenpetzb/application/modules/default/views/scripts/user/ajaxcaddyselection.phtml |
<script type="text/javascript" >
$(function(){
initEventsCaddyType();
});
</script>
<?php $caddyTypes = $this->caddyType; ?>
<div class="userAccount_Panel">
<?php if (isset($caddyTypes) && !empty($caddyTypes)) { ?>
<form id="caddyTypeCheckForm" action="<?php echo $this->baseUrl; ?>/mon-panier-type-actualiser.html" method="post">
<table class="user-cmd-table"cellpadding="0" cellspacing="0" width="100%">
<thead >
<tr align="center" >
<th >Produit</th>
<th >Prix Unitaire (HT)</th>
<th >Prix remis�</th>
<th style="width: 100px;">Quantit�</th>
<th>Prix Total</th>
</tr>
</thead>
<tbody>
<?php foreach($caddyTypes as $row) { ?>
<tr align="center" >
<td >
<div class="caddyProdImg" >
<a target="_blank" class="tooltips" data-placement="right" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>"
title="<?php echo $this->escape($row->designation);?>" >
<img src="<?php echo $this->baseUrl.'/'.$row->url; ?>">
</a>
</div>
<div class="caddyProdTxt" >
<div class="link17" style="width: auto;clear:both">
<a target="_blank" class="tooltips" data-placement="top" href="<?php echo $this->baseUrl; ?>/<?php echo Utils_Tool::getFormattedUrlProduct($row->navnom_urlparents, $row->navnom, $row->idProduit); ?>"
title="<?php echo $this->escape($row->designation);?>">
<?php echo $row->designation;?>
</a>
</div>
<div class="textA1 productDetail_ref">
<?php echo "Ref. ".$this->escape($row->reference);?>
</div>
</div>
</td>
<td >
<?php if (!$row->isSurDevis()) { ?>
<div class="textA2" >
<?php echo number_format($row->prix, 2, ',', ' ').' ';?>
<span style="color: #000000">€</span>
</div>
<?php } else { ?>
<div >
<span class="textA2" >sur devis</span>
</div>
<?php } ?>
</td>
<td >
<?php if (!$row->isSurDevis()) {
if ($row->isPromoCaddyType) { ?>
<div class="textA2">
<?php echo number_format($row->getPrixAfterRemise(), 2, ',', ' ').' ';?>
<span style="color: #000000">€</span>
</div>
<?php } else { echo ' '; }
} else { ?>
<div >
<span class="textA2" >sur devis</span>
</div>
<?php } ?>
</td>
<td>
<div class="col-xs-12 noPadding">
<div class="col-xs-8 noPadding">
<input onclick="javascript:clearInput($(this), '0');" type="text" class="form-control input-sm text-center caddyQuantity" maxlength="6" name="Quantity[]" value="<?php echo $row->qte; ?>" />
</div>
<div class="col-xs-4 noPadding" style="margin-top: 5px; ">
<a href="javascript:;" onclick="changeValueOfCaddyTypeQte($(this), 0)">
<img alt="Supprimer" class="tooltips" data-placement="right" title="Supprimer" src="<?php echo $this->baseUrl; ?>/business/image/mini_trash.png">
</a>
</div>
</div>
<input type="hidden" name="selectedOption[]" value="<?php echo $row->selectedOption; ?>" />
<input type="hidden" name="Child[]" value="<?php echo $row->idChild; ?>" />
<input type="hidden" name="CaddyType[]" value="<?php if ($row->isPromoCaddyType) { echo $row->id; } else { echo '0'; } ?>" />
<input type="hidden" name="QuantityMin[]" value="<?php echo $row->qte_min; ?>" />
</td>
<td >
<?php if (!$row->isSurDevis()) {
if ($row->isPromoCaddyType) { ?>
<div class="textA2">
<?php echo number_format($row->getPrixAfterRemise(), 2, ',', ' ').' ';?>
<span style="color: #000000">€</span>
</div>
<?php } else { ?>
<div class="textA2" >
<?php echo number_format($row->prix, 2, ',', ' ').' ';?>
<span style="color: #000000">€</span>
</div>
<?php }
} else { ?>
<div >
<span class="textA2" >sur devis</span>
</div>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="col-xs-12 text-center" style="margin-top: 10px;">
<button type="submit" class="tooltips btn btn-success" data-placement="left" title="Mettre la s�lection dans mon panier" >
<span class="fa fa-plus-circle"></span> AJOUTER AU PANIER
</button>
</div>
</form>
<?php } else { ?>
<div class="userAccount_NoCaddyType">
<span>Vous n�avez pas encore de s�lection,</span>
<span>Contactez-nous le plus vite possible !</span>
<span><?php echo $this->siteName; ?></span>
<?php echo $this->site_addresse2; ?>
<span>N� Azur : <?php echo $this->tel_contact; ?></span>
<span><?php echo $this->contact_Mail; ?></span>
</div>
<?php } ?>
</div>