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