Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/promotion/command.phtml |
<div class="table-box">
<table class="table">
<tr><td><h5>Remises associ�es aux commandes</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
<div class="col-md-2 no-space-top"><label>Sur toute les commandes</label></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="1" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-4 no-space-top no-space-side"><label>Quand le MONTANT TOTAL de la commande est sup�rieur � </label></div>
<div class="col-md-8 no-space-top no-space-side"><input type="text" placeholder="Montant de la commande" name="montant" value="" class="form-control" /></div>
</div>
<div class="col-md-12 no-space-side">
<div class="col-md-2"></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="2" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/commandadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-3 no-space-top no-space-side"><label>Quand il y a </label></div>
<div class="col-md-3 no-space-top no-space-side"><input type="text" placeholder="Quantit� d'articles" name="nbrreference" class="form-control" ></div>
<div class="col-md-3 no-space-top no-space-side text-center"><label>articles de REFERENCE </label></div>
<div class="col-md-3 no-space-top no-space-side"><input type="text" placeholder="R�f�rence du produit" name="reference" class="form-control" ></div>
</div>
<div class="col-md-12 no-space-side">
<div class="col-md-2"></div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remiseeuro">Remise €</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en euros" class="form-control" type="text" size="10" name="remiseeuro" id="remiseeuro" value=""></div>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-3 no-space-top"><label for="remisepour">Remise %</label></div>
<div class="col-md-9 no-space-top"><input placeholder="Remise � effectuer en pourcentage" class="form-control" type="text" size="10" name="remisepour" id="remisepour" value="" maxlength="3"></div>
</div>
<div class="col-md-2 no-space-top text-center">
<input type="hidden" value="3" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
</table>
</div>
<div class="table-box">
<table class="table">
<tr><td colspan="3"><h5>Remises effectives</h5></td></tr>
<?php
if ($this->remiseAll) {
$isAll = $this->remiseAll;
?>
<tr >
<td >Sur toute les commandes
</td>
<td>
<span >Remise de <b>
<?php if ($this->escape($isAll['REMISEEURO']) > 0 ) { echo $this->escape($isAll['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($isAll['REMISEPOUR']) > 0 ) { echo $this->escape($isAll['REMISEPOUR'])." %"; } ?></b>
</span> </td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $isAll['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php }
if ($this->remiseMontant) {
$remise = $this->remiseMontant;
?>
<tr >
<td >Si le MONTANT TOTAL de la commande est sup�rieur � <b><?php echo $remise['MONTANTEQUAL'];?> €</b> alors
</td>
<td>
<span >Remise de <b>
<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])."<b> €</b>"; } ?>
<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."<b> %</b>"; } ?></b>
</span>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } ?>
<tr >
<td colspan="3" >
<table class="table">
<?php if ($this->listRemise1) {
$listRemise1 = $this->listRemise1;
foreach($listRemise1 as $row) : ?>
<tr >
<td >
<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['CHILDREFERENCE']);?></a>
</td>
<td >
<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['NOM']);?></a>
<?php echo $row['DESCSHORT'] ;?>
</td>
<td >
<div >Remise de <b>
<?php if ($this->escape($row['REMISEEURO']) > 0 ) { echo $this->escape($row['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])." %"; } ?></b>
</div>
</td>
<td >Pour
<span >
<b><?php if ($this->escape($row['CHILDNBR']) > 0 ) { echo $this->escape($row['CHILDNBR']); } ?></b>
</span>
articles
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/commanddel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php endforeach; } ?>
</table>
</td>
</tr>
</table>
</div>