Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/product/ajaxannexeproductlist.phtml |
<?php header('Content-type: text/html; charset=iso-8859-1'); ?>
<?php
foreach ($this->listProducts as $product) {
$isAcc = false;
$color = "#CC0000";
foreach ($this->listAnnexes as $productAnnexe) {
if ($productAnnexe['ID'] == $product['ID']) {
$color = "green";
$isAcc = true;
break;
}
}
if ($this->currentProduct != $product['ID']) { ?>
<div class="col-md-3 text-center no-space-top">
<div class="col-md-12 text-center">
<ul class="gallerybox">
<li>
<?php echo $product['NOM']; ?>
<figure>
<img alt="<?php echo $product['NOM']; ?>"
title="<?php echo $product['NOM']; ?>"
src="<?php echo $this->baseUrl.'/'.$product['URL']; ?>" />
</figure>
</li>
</ul>
</div>
<div class="btn-group">
<?php if ($isAcc == true) { ?>
<a href="javascript:;" class="btn btn-danger" onclick="delProductAnnexe(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><i class="glyphicon glyphicon-resize-full"></i> D�lier</a>
<?php } else { ?>
<a href="javascript:;" class="btn btn-primary" onclick="addProductAnnexe(<?php echo $this->currentProduct; ?>, <?php echo $product['ID']; ?>)"><i class="glyphicon glyphicon-resize-small"></i> Lier</a>
<?php } ?>
<a class="btn btn-success" target="_blank" href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $product['ID']."#tabs-items"; ?>">
<i class="glyphicon glyphicon-edit"></i> Modifier
</a>
</div>
</div>
<?php } } ?>