Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/promotion/gift.phtml
<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>