Current File : /home/k/a/r/karenpetzb/www/items/category/promotion.tar |
product.phtml 0000604 00000036052 15071563447 0007310 0 ustar 00 <div class="table-box">
<table class="table">
<tr><td><h5>Remises associ�es aux produits</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/productadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Sur un produit</label></div>
<div class="col-md-10 no-space-top"><input type="text" placeholder=" R�f�rence du produit" class="form-control" size="10" name="reference" id="reference" value=""></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="1" name="promo" />
<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/productadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Remise sur X selon Y</label></div>
<div class="col-md-2 no-space-top"><label>Produit achet� par le client</label></div>
<div class="col-md-4 no-space-top"><input type="text" placeholder="Quantit� du produit" class="form-control" size="2" name="referencebuynb" id="referencebuynb" value="" /></div>
<div class="col-md-4 no-space-top"><input placeholder="R�f�rence du produit" type="text" class="form-control" size="10" name="referencebuy" id="referencebuy" value="" /> </div>
</div>
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"></div>
<div class="col-md-2 no-space-top"><label>Produit remis�</label></div>
<div class="col-md-4 no-space-top"><input type="text" class="form-control" placeholder="Quantit� du produit" size="2" name="referencepromonb" id="referencepromonb" value="" /></div>
<div class="col-md-4 no-space-top"><input type="text" placeholder="R�f�rence du produit" class="form-control" size="10" name="referencepromo" id="referencepromo" value="" /></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="2" name="promo" />
<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/productadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Remise par date</label></div>
<div class="col-md-2 no-space-top"><label>Date de d�but</label></div>
<div class="col-md-3 no-space-top">
<input type="text" class="form-control" readonly="readonly" name="sdPicker" id="sdPicker" value="" maxlength="10" />
<input type="hidden" name="sd" id="sdPickerField" value="" maxlength="10" />
</div>
<div class="col-md-2 no-space-top"><label>Date de fin</label></div>
<div class="col-md-3 no-space-top">
<input type="text" class="form-control" readonly="readonly" name="edPicker" id="edPicker" value="" maxlength="10" />
<input type="hidden" name="ed" id="edPickerField" value="" maxlength="10" />
</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="3" name="promo" />
<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/productadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Sur une cat�gorie</label></div>
<div class="col-md-10 no-space-top">
<select name="listcategory" class="form-control">
<option value="0">Aucun</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>
<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="promo" />
<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/productadd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top"><label>Sur une marque</label></div>
<div class="col-md-10 no-space-top">
<select name="listbrend" class="form-control">
<option value="0">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>
<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="5" name="promo" />
<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="4"><h5>Remises effectives</h5></td></tr>
<?php
if ($this->listPromo1) {
$listPromo1 = $this->listPromo1;
foreach($listPromo1 as $row) { ?>
<tr >
<td > R�f�rence <a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>"><?php echo $this->escape($row['REFERENCE']);?></a>
</td>
<td > Produit <a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['ID']);?>"><?php echo $this->escape($row['NOM']);?></a>
</td>
<td > 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>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/idref/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listPromo2) {
$listPromo2 = $this->listPromo2;
foreach($listPromo2 as $row) { ?>
<tr >
<td >
Si <b><?php echo $this->escape($row['CHILDREFBUYNB']);?></b> articles de la reference : <b><?php echo $this->escape($row['CHILDREFBUY']);?></b> sont achetes
</td>
<td >
<b><?php echo $this->escape($row['CHILDREFPROMONB']);?></b> articles de la reference : <b><?php echo $this->escape($row['CHILDREFPROMO']);?></b> ont une remise
</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 class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listPromo3) {
$listPromo3 = $this->listPromo3;
foreach($listPromo3 as $row) {
$myDate1 = new Zend_Date(strtotime($row['DATEPROMOSTART']));
$myDate2 = new Zend_Date(strtotime($row['DATEPROMOEND']));
?>
<tr >
<td >
Les produits o� la date de promo est comprise entre
</td>
<td>
<?php
$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');
?>
<b><?php echo $myDate1->toString("dd").' '.$mois[(int)$myDate1->toString('MM')].' '.$myDate1->toString("YYYY");?></b> et
<b><?php echo $myDate2->toString("dd").' '.$mois[(int)$myDate2->toString('MM')].' '.$myDate2->toString("YYYY");?></b>
</td>
<td >
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>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listPromo4) {
$listPromo4 = $this->listPromo4;
foreach($listPromo4 as $row) { ?>
<tr >
<td >
Les produits associ�s � la cat�gorie
</td>
<td><b><?php echo $this->escape($row['NOMCATEGORY']);?></b></td>
<td > 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>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listPromo5) {
$listPromo5 = $this->listPromo5;
foreach($listPromo5 as $row) { ?>
<tr >
<td >
Les produits associ�s � la marque
</td>
<td><?php echo $this->escape($row['BREND']);?> </td>
<td > 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>
</td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/productdel/id/<?php echo $row['IDPROMO']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
</table>
</div>
<script type="text/javascript">
$(function(){
$("#sdPicker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#sdPickerField",
dateFormat: 'DD, d MM, yy'
});
$("#edPicker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#edPickerField",
dateFormat: 'DD, d MM, yy'
});
});
</script>
codereduction.phtml 0000604 00000013531 15071563447 0010454 0 ustar 00 <div class="table-box">
<table class="table">
<tr><td><h5>Remises par code de r�duction</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/addcodereductionproduit" method="post">
<table class="table">
<thead>
<tr >
<th>R�f�rence</th>
<th>Quantit�</th>
<th>Date d�but</th>
<th>Date fin</th>
<th class="text-center">€</th>
<th class="text-center">%</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td><input class="form-control" type="text" size="10" name="codereduc_ref" ></td>
<td><input class="form-control" type="text" size="3" name="codereduc_nbr" ></td>
<td >
<input class="form-control" type="text" readonly="readonly" name="sd2Picker" id="sd2Picker" value="" maxlength="10" />
<input type="hidden" name="sd2" id="sd2PickerField" value="" maxlength="10" />
</td>
<td >
<input class="form-control" type="text" readonly="readonly" name="ed2Picker" id="ed2Picker" value="" maxlength="10" />
<input type="hidden" name="ed2" id="ed2PickerField" value="" maxlength="10" />
</td>
<td><input class="form-control" type="text" size="5" name="codereduc_euro" value=""></td>
<td><input class="form-control" type="text" size="5" name="codereduc_pour" value="" maxlength="3"></td>
<td>
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/addcodereductioncommande" method="post">
<table class="table">
<thead>
<tr>
<th >Minimum d'achat</th>
<th>Date d�but</th>
<th>Date fin</th>
<th class="text-center">€</th>
<th class="text-center">%</th>
<th></th>
</tr>
</thead>
<tr>
<td ><input class="form-control" type="text" size="10" name="codereduc_cmdmin" ></td>
<td>
<input class="form-control" type="text" readonly="readonly" name="sd1Picker" id="sd1Picker" value="" maxlength="10" />
<input type="hidden" name="sd1" id="sd1PickerField" value="" maxlength="10" />
</td>
<td>
<input class="form-control" type="text" readonly="readonly" name="ed1Picker" id="ed1Picker" value="" maxlength="10" />
<input type="hidden" name="ed1" id="ed1PickerField" value="" maxlength="10" />
</td>
<td><input class="form-control" type="text" size="5" name="codereduc_euro" value=""></td>
<td><input class="form-control" type="text" size="5" name="codereduc_pour" value="" maxlength="3"></td>
<td>
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-plus"></i> Ajouter</button></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
<div class="table-box">
<table class="table">
<tr><td colspan="6"><h5>Remises effectives</h5></td></tr>
<?php
$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');
foreach($this->listReduc as $row) { ?>
<tr <?php
$isUsed = false;
if (isset($row['NOM']) && !empty($row['NOM']) &&
isset($row['PRENOM']) && !empty($row['PRENOM'])&&
isset($row['IDUSER']) && !empty($row['IDUSER']) && $row['IDUSER'] > 0) {
$isUsed = true;
}?> >
<td >
<?php echo "CODE : ".$row['CODE']."<br/> ".$this->escape($row['LIBELLE']);
if ($isUsed == true) { ?>
<br/>
Utilis� par : <a href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $row['IDUSER']; ?>"><?php echo $row['PRENOM']." ".$row['NOM'];?></a>
<?php } ?>
</td>
<td>
<?php $myDate1 = new Zend_Date(strtotime($row['DATESTART']));?>
<?php echo $myDate1->toString("dd").' '.$mois[(int)$myDate1->toString('MM')].' '.$myDate1->toString("YYYY");?>
</td>
<td>
<?php $myDate2 = new Zend_Date(strtotime($row['DATESTART']));?>
<?php echo $myDate2->toString("dd").' '.$mois[(int)$myDate2->toString('MM')].' '.$myDate2->toString("YYYY");?>
</td>
<td >
<?php if ($this->escape($row['EURO']) > 0 ) { echo $this->escape($row['EURO'])."<b> €</b>"; } ?>
</td>
<td >
<?php if ($this->escape($row['POUR']) > 0 ) { echo $this->escape($row['POUR'])."<b> %</b>"; } ?>
</td>
<td >
<span >
<?php if ($row['isACTIF'] == 1) { ?>
<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/unactivecodereduction/id/<?php echo $row['ID']; ?>" >D�sactiver</a>
<?php } else { ?>
<a class="btn btn-warning" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/activecodereduction/id/<?php echo $row['ID']; ?>" >Activer</a>
<?php } ?>
</span>
<span >
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/delcodereduction/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</span>
</td>
</tr>
<?php } ?>
</table>
</div>
<script type="text/javascript">
$(function(){
$("#sd2Picker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#sd2PickerField",
dateFormat: 'DD, d MM, yy'
});
$("#ed2Picker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#ed2PickerField",
dateFormat: 'DD, d MM, yy'
});
$("#sd1Picker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#sd1PickerField",
dateFormat: 'DD, d MM, yy'
});
$("#ed1Picker").datepicker({
altFormat: 'yy-mm-dd',
altField: "#ed1PickerField",
dateFormat: 'DD, d MM, yy'
});
});
</script> user.phtml 0000604 00000032716 15071563447 0006611 0 ustar 00 <div class="table-box">
<table class="table">
<tr><td><h5>Remises associ�es aux clients</h5></td></tr>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-2 no-space-top"><label>Anniversaire de l'inscription</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/useradd" method="post">
<div class="col-md-2 no-space-top"><label>Si c'est la premiere commande</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="2" 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/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique au client</label></div>
<div class="col-md-10 no-space-top">
<select name="iduser" class="form-control">
<option value="0">S�lectionner un Client</option>
<?php
$listAllUser = $this->listAllUser ;
foreach($listAllUser as $row) {
?>
<option value="<?php echo $this->escape($row['IDUSER']); ?>">
<?php echo $row['NOM']." ".$row['PRENOM'] ; ?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="col-md-12 no-space-side">
<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="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>
<tr>
<td>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un client et une marque</label></div>
<div class="col-md-10 no-space-top">
<div class="col-md-6 no-space-top no-space-side">
<select name="iduser" class="form-control">
<option value="0">S�lectionner un Client</option>
<?php
$listAllUser = $this->listAllUser ;
foreach($listAllUser as $row) {
?>
<option value="<?php echo $this->escape($row['IDUSER']); ?>">
<?php echo $row['NOM']." ".$row['PRENOM'] ; ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-md-6 no-space-top no-space-side">
<select name="idbrend" class="form-control">
<option value="0">S�lectionner une Marque</option>
<?php
$listAllBrend = $this->listbrend ;
foreach($listAllBrend as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['BREND']; ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="col-md-12 no-space-side">
<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>
<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/useradd" method="post">
<div class="col-md-12 no-space-top">
<div class="col-md-2 no-space-top no-space-side"><label>Sp�cifique � un code interne et une marque</label></div>
<div class="col-md-10 no-space-top">
<div class="col-md-6 no-space-top no-space-side">
<select name="idcintern" class="form-control">
<option value="0">S�lectionner un Code Interne</option>
<?php
$listAllCIntern = $this->listAllCIntern ;
foreach($listAllCIntern as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['CODE']." - ".$row['LABEL'] ; ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-md-6 no-space-top no-space-side">
<select name="idbrend" class="form-control">
<option value="0">S�lectionner une Marque</option>
<?php
$listAllBrend = $this->listbrend ;
foreach($listAllBrend as $row) {
?>
<option value="<?php echo $this->escape($row['ID']); ?>">
<?php echo $row['BREND']; ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="col-md-12 no-space-side">
<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="5" 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->dateInsc) {
$remise = $this->dateInsc;
?>
<tr >
<td >Si la date anniversaire est atteinte
</td>
<td><span >Remise de <b>
<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])." %"; } ?></b>
</span> </td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php }
if ($this->firstCmd) {
$remise = $this->firstCmd;
?>
<tr >
<td >Si c'est la premiere commande
</td>
<td>
<span >Remise de <b>
<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])." €"; } ?>
<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])." %"; } ?></b>
</span> </td>
<td class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $remise['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } ?>
<?php
if ($this->listUser) {
$listUser = $this->listUser;
foreach($listUser as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
<?php echo $row['NOM'].' '.$row['PRENOM'];?>
</a> remise sur les commandes
</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 class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listUserBrend) {
$listUserBrend = $this->listUserBrend;
foreach($listUserBrend as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/edit/id/<?php echo $this->escape($row['IDUSER']);?>">
<?php echo $row['NOM'].' '.$row['PRENOM'];?>
</a> pour les produits de la marque
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
<?php echo $row['BREND']; ?>
</a>
</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 class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
<?php
if ($this->listCinternBrend) {
$listCinternBrend = $this->listCinternBrend;
foreach($listCinternBrend as $row) { ?>
<tr >
<td >
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/user/codeinterne">
<?php echo $row['CODEINTERN'].' - '.$row['LABELINTERN'];?>
</a> pour les produits de la marque
<a class="btn btn-primary" href="<?php echo $this->baseUrl; ?>/backoffice/supplier/edit/id/<?php echo $this->escape($row['IDSUPPLIER']);?>">
<?php echo $row['BREND']; ?>
</a>
</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 class="text-center">
<a class="btn btn-danger" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/userdel/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</a>
</td>
</tr>
<?php } } ?>
</table>
</div>