Current File : /home/k/a/r/karenpetzb/www/items/category/promotion.zip
PK{�H[��*<*<
product.phtmlnu&1i�<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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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 '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
												}
												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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
						<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?>
					</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> 
   PK{�H[?�YYcodereduction.phtmlnu&1i�<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">&#8364;</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>&nbsp;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">&#8364;</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>&nbsp;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>&nbsp;&#8364;</b>"; } ?>
			</td>
			<td  >
				<?php if ($this->escape($row['POUR']) > 0 ) { echo $this->escape($row['POUR'])."<b>&nbsp;%</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> PK{�H[�?��5�5
user.phtmlnu&1i� <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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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'])."&nbsp;&#8364;"; } ?>
							<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
								<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
							<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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'])."&nbsp;&#8364;"; } ?>
						<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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>PK{�H[aHT^^
gift.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0" width="1000px">
	<tr>
		<td colspan="2">
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2"><div class="text2">LES AVANTAGES</div></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" >
			<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="1000px" align="left">
					<tr >
						<td width="800px">
							Pour <input type="text" name="referencenbbuy" size="4"> article(s) achete <input type="text" name="referencebuy" > il y a <input type="text" name="referencenbgift" size="3"> article(s) offert <input type="text" name="referencegift" > 
						</td>
						<td>
							<input type="hidden" value="1" name="gift" />
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>	
	<tr >
		<td colspan="2" >
		<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="1000px" align="left">
					<tr >
						<td width="400px">
							Si le MONTANT TOTAL de la commande >= <input type="text" name="montant">
						</td>
						<td width="400px">
							cet article est offert <input type="text" name="reference">
						</td>
						<td>
							<input type="hidden" value="2" name="gift" />
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td >
			<div  class="text2">LES AVANTAGES EN COURS</div>
		
		
		</td>
		<td class="link2" style="text-align: center">
		
		<a href="" id="giftSlide1" >Article achete -> Article offert </a> | 
		<a href="" id="giftSlide2" >Selon la commande </a>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2" >
			<div id="v-giftSlide1" >
				<table cellpadding="0" cellspacing="5" border="0"  width="1000px" >
					<?php 
					if ($this->listProductGift) {
					$listProductGift = $this->listProductGift;
					foreach($listProductGift as $row) : ?>
					<tr >
						<td valign="top" >
							<b><?php echo $this->escape($row['PRODNBBUY']);?></b> Article(s) achete : <b><?php echo $this->escape($row['PRODREFBUY']);?></b>
						</td>
						<td valign="top" >
							<div class="link3" >
							 <b><?php echo $this->escape($row['PRODNBGIFT']);?></b> Article(s) offert : <b><?php echo $this->escape($row['PRODREFGIFT']);?></b>
							
							</div>
						</td>
						<td style="text-align: center">
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
						</td>
					</tr>
					<tr><td colspan="3" style="background:#666666;height:1px;"></td></tr>
					<?php endforeach;   } ?>
				</table>

			</div>
		</td>
	</tr>
	<tr >
		<td colspan="2" >
			<div id="v-giftSlide2" >
				<table cellpadding="0" cellspacing="5" border="0"  width="1000px" >
					<?php 
					if ($this->listCmdGift) {
					$listCmdGift = $this->listCmdGift;
					foreach($listCmdGift as $row) : ?>
					<tr >
						<td valign="top" >
							Si le MONTANT TOTAL de la commande >= <b><?php echo $this->escape($row['CMDMONTANT']);?>&nbsp;&#8364;</b>
						</td>
						<td valign="top" >
							<div class="link3" >
								Article offert : 
								<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['CMDPRODREFGIFT']);?></a>
							
							</div>
						</td>
						<td style="text-align: center">
							<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/giftdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
						</td>
					</tr>
					<tr><td colspan="3" style="background:#666666;height:1px;"></td></tr>
					<?php endforeach;   } ?>
				</table>

			</div>
		</td>
	</tr>
</table>PK{�H[|1���
�
front.phtmlnu&1i�<table cellpadding="0" cellspacing="5" border="0" width="100%">
	<tr>
		<td colspan="2">
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2"><div class="text2">LES PROMOTIONS DE LA PAGE D'ACCUEIL</div></td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<tr >
		<td colspan="2">
			<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontadd" method="post">
				<table  border="0" cellpadding="0" cellspacing="10" width="100%"  >
					<tr >
						<td width="200px">
							Afficher un produit
						</td>
						<td width="200px">
							REFERENCE : <input type="text" name="reference" id="reference" value=""/>
						</td>
						<td>
							POSITION : <input type="text" name="position" id="position" value="" maxlength="2" size="4"/>
						</td>
						<td>
							<input type="submit" name="ajouter" value="Ajouter"/>
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
	<tr >
		<td colspan="2" style="background:#666666; height: 1px"></td>
	</tr>
	<?php  if ($this->listFront) { ?>
	<tr>
		<td colspan="2">
			<table cellpadding="0" cellspacing="5" border="0" width="100%">
				<?php 
				$listFront = $this->listFront;
				foreach($listFront as $row) { ?>
				<tr >
					<td valign="top" >
						<div class="link3" >
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['REFERENCE']);?>
							
							</a>
						</div>
					</td>
					<td valign="top" width="300px">
						<div class="link3" >
							<a href="<?php echo $this->baseUrl; ?>/backoffice/product/edit/showProduct/<?php echo $this->escape($row['IDPRODUCT']);?>"><?php echo $this->escape($row['NOM']);?></a>
						</div>
						<div class="text1" >
							<?php echo $row['DESCSHORT'] ;?>
						</div>
					</td>
					
					<td valign="top" >
						<form action="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontedit" method="post">
					
						POSITION : <input type="text" name="position" value="<?php echo $row['POSITION']; ?>"  maxlength="2" size="4"> 
						<input type="hidden" name="promoid" value="<?php echo $row['ID']; ?>">
					 
						<input type="submit" name="edit" value="Modifier"> 
						</form>
					</td>
					<td style="text-align: center">
						<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/promotion/frontdel/id/<?php echo $row['ID']; ?>" >Supprimer</a>
					</td>
				</tr>
				<?php } ?>
			</table>
		</td>
	</tr>
	<?php } ?>
</table>PK{�H[�b�x��
command.phtmlnu&1i�<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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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&nbsp;&#8364;</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&nbsp;%</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>&nbsp;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'])."&nbsp;&#8364;"; } ?>
					<?php if ($this->escape($isAll['REMISEPOUR']) > 0 ) { echo $this->escape($isAll['REMISEPOUR'])."&nbsp;%"; } ?></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'];?>&nbsp;&#8364;</b> alors 
			</td>
			<td>
				<span  >Remise de <b>
					<?php if ($this->escape($remise['REMISEEURO']) > 0 ) { echo $this->escape($remise['REMISEEURO'])."<b>&nbsp;&#8364;</b>"; } ?>
					<?php if ($this->escape($remise['REMISEPOUR']) > 0 ) { echo $this->escape($remise['REMISEPOUR'])."<b>&nbsp;%</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'])."&nbsp;&#8364;"; } ?>
								<?php if ($this->escape($row['REMISEPOUR']) > 0 ) { echo $this->escape($row['REMISEPOUR'])."&nbsp;%"; } ?></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>PK{�H[��*<*<
product.phtmlnu&1i�PK{�H[?�YYg<codereduction.phtmlnu&1i�PK{�H[�?��5�5
Tuser.phtmlnu&1i�PK{�H[aHT^^
�gift.phtmlnu&1i�PK{�H[|1���
�
��front.phtmlnu&1i�PK{�H[�b�x��
��command.phtmlnu&1i�PK���