Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/productglobal/list.phtml |
<div class="table-box">
<table class="table">
<tr><td><h5>Augmentation g�n�rale du prix des produits</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/addpricecategory" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>De la cat�gorie</label></div>
<div class="col-md-4 no-space-top">
<select name="listcategory" class="form-control">
<option value="none">Aucun</option>
<option value="0">Tous</option>
<?php
$show = array();
foreach($this->listallcategories as $row) {
for ($level=0 ; $level<11; $level++) {
if ((!isset($show['NOM'.$level]) || $show['NOM'.$level] != $row['NOM'.$level]) && $row['NOM'.$level] != null) {
?>
<option value="<?php echo $this->escape($row['ID'.$level]); ?>">
<?php
for ($i=0 ; $i<$level; $i++) {
echo ' ';
}
echo $this->escape($row['NOM'.$level]); ?>
</option>
<?php
$show['NOM'.$level] = $row['NOM'.$level];
}
}
} ?>
</select>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-6 no-space-top">
<label >Pourcentage de prix % </label>
</div>
<div class="col-md-3 no-space-top">
<select class="form-control" name="pricesign">
<option>+</option>
<option>-</option>
</select>
</div>
<div class="col-md-3 no-space-top">
<input class="form-control" type="text" size="2" name="pricepour" id="pricepour" value="" maxlength="2">
</div>
</div>
<div class="col-md-2 no-space-top text-center">
<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/productglobal/addpricebrend" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>De la marque</label></div>
<div class="col-md-4 no-space-top">
<select name="listbrend" class="form-control">
<option value="none">Aucun</option>
<?php foreach($this->listbrend as $row) { ?>
<option value="<?php echo $this->escape($row['ID']); ?>" >
<?php echo $this->escape($row['BREND']); ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-md-4 no-space-top">
<div class="col-md-6 no-space-top">
<label >Pourcentage de prix % </label>
</div>
<div class="col-md-3 no-space-top">
<select class="form-control" name="pricesign">
<option>+</option>
<option>-</option>
</select>
</div>
<div class="col-md-3 no-space-top">
<input class="form-control" type="text" size="2" name="pricepour" id="pricepour" value="" maxlength="2">
</div>
</div>
<div class="col-md-2 no-space-top text-center">
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</div>
</form>
</td>
</tr>
<tr><td><h5>Grille de frais de livraison </h5></td></tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commandadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Frais de livraison</label></div>
<div class="col-md-3 no-space-top">Quand le MONTANT TOTAL de la commande est inf�rieur � </div>
<div class="col-md-4 no-space-top"><input placeholder="Montant de la commande" type="text" class="form-control" name="montantfrais" value="" /></div>
<div class="col-md-3 no-space-top"> €, les frais de livraison sont de </div>
</div>
<div class="col-md-12">
<div class="col-md-2 no-space-top"></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="4" 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><h5>Validation de la commande</h5></td></tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commandadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Commande</label></div>
<div class="col-md-3 no-space-top">Quand le MONTANT TOTAL de la commande est inf�rieur � </div>
<div class="col-md-4 no-space-top"><input placeholder="Montant de la commande" type="text" class="form-control" name="montantfrais" value="" /></div>
<div class="col-md-3 no-space-top"> €, la commande n'est pas valide </div>
</div>
<div class="col-md-12 no-space-top text-right">
<input type="hidden" value="5" name="remise" />
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</div>
</form>
</td>
</tr>
</table>
</div>
<div class="table-box">
<table class="table">
<tr><td colspan="2"><h5>Remises effectives</h5></td></tr>
<?php
if ($this->remiseFrais) {
$remise = $this->remiseFrais;
foreach($remise as $row) :
?>
<tr >
<td >Si le MONTANT TOTAL de la commande est < <b><?php echo $row['MONTANTFRAISCMD'];?> €</b> les frais de livraison sont de
<b><?php if ($row['REMISEPOUR']>0) {echo $row['REMISEPOUR'].' %';} else {echo $row['REMISEEURO'].' €';} ?></b> du MONTANT TOTAL
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commanddel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php endforeach; }
if ($this->validCommand) {
$validCommand = $this->validCommand;
?>
<tr >
<td >Si le MONTANT TOTAL de la commande est < <b><?php echo $validCommand['MONTANTVALID'];?> €</b>, la commande n'est pas valide
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/productglobal/commanddel/id/<?php echo $validCommand['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } ?>
</table>
</div>
<table cellpadding="0" cellspacing="5" border="0" width="100%">
<tr >
<td colspan="2" style="background:#666666; height: 1px"></td>
</tr>
<tr >
<td colspan="2" style="background:#666666; height: 1px"></td>
</tr>
</table>