Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/product/livraison.phtml
<table cellpadding="0" cellspacing="6" border="0" width="800px">
	<tr>
		<td >
			<span class="errorText"><?php echo $this -> messageError; ?></span>
			<span class="successText"><?php echo $this -> messageSuccess; ?></span>
		</td>
	</tr>
	<tr>
		<td>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/addlivraisontype" method="post">
			<table cellpadding="0" cellspacing="10" border="0" >
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="3">
						<div class="text2">TYPE DE LIVRAISON</div>
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td>
						Nom : <br/>
						<input type="text" size="40" name="livraison_nom" >
					</td>
					<td>
						Franco : <br/>
						<input type="text" size="5" name="livraison_franco" >
					</td>
					<td>
						<input type="submit" value="Ajouter" >
					</td>
				</tr>
				<tr > <td colspan="3" style="background:#666666; height: 1px"></td></tr>
			</table>
			</form>
		</td>
	</tr>
	<tr>
		<td >
			<?php  foreach($this->livraisontypes as $row) { ?>
				<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editlivraisontype" method="post">
				
				<table cellpadding="0" cellspacing="10" border="0" >
					<tr>
						<td>
							<input type="text" size="40" name="livraison_nom" value="<?php echo $this->escape($row['NOM']);?>">
						</td>
						<td>
							<input type="text" size="5" name="livraison_franco" value="<?php echo $this->escape($row['CMDFRANCO']);?>">
						</td>
						<td>
							<input type="hidden" value="<?php echo $row['ID']; ?>" name="livraison_id">
							<input type="submit" value="Modifier">
						</td>
						<td>
							<a class="button"  href="<?php echo $this->baseUrl; ?>/backoffice/product/dellivraisontype/id/<?php echo $row['ID']; ?>" onClick="return msgOkCancelDelete();">Supprimer</a>
						</td>
					</tr>
				</table>
			</form>
			<?php } ?>
		</td>
	</tr>
	
	<tr>
		<td>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/addlivraisonpoids" method="post">
			<table cellpadding="0" cellspacing="10" border="0" >
				
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td colspan="6">
						<div class="text2">POIDS</div>
					</td>
				</tr>
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				<tr>
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_from" >Kg
					</td>
					<td width="20px"> - > </td>
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_to" >Kg
					</td>
					<td width="200px">
						<?php  foreach($this->livraisontypes as $row) { ?>
						<input type="radio" checked="checked" name="livraison_poids_type" value="<?php echo $row['ID']; ?>" ><?php echo $row['NOM'];?><br/>
						<?php } ?>
					</td>
					
					<td width="100px">
						<input type="text" size="6" name="livraison_poids_price">&euro;
					</td>
					<td  width="150px">
						<input type="submit" value="Ajouter" >	
					</td>
				</tr>
				<tr > <td colspan="6" style="background:#666666; height: 1px"></td></tr>
				
			</table>
			</form>
			<?php  foreach($this->livraisonpoids as $row) { ?>
			<form action="<?php  echo $this->baseUrl; ?>/backoffice/product/editlivraisonpoids" method="post">
				
			<table cellpadding="0" cellspacing="10" border="0" > 
				<tr>
					<td>
						<input type="text" size="6" name="livraison_poids_from" value="<?php echo $this->escape($row['FROM']);?>">Kg
					</td>
					<td> - > </td>
					<td>
						<input type="text" size="6" name="livraison_poids_to" value="<?php echo $this->escape($row['TO']);?>">Kg
					</td>
					<td>
						<?php  foreach($this->livraisontypes as $rowType) { ?>
						<input type="radio" <?php if ($rowType['ID'] == $row['TYPE']) { echo 'checked="checked"';} ?>  name="livraison_poids_type" value="<?php echo $rowType['ID']; ?>" ><?php echo $rowType['NOM'];?><br/>
						<?php } ?>
						<input type="hidden" value="<?php echo $row['ID']; ?>" name="livraison_poids_id">
					</td>
					<td>
						<input type="text" size="6" name="livraison_poids_price" value="<?php echo $this->escape($row['PRICE']);?>">&euro;
					</td>
					<td>
						<input type="submit" value="Modifier" >		
						<a class="button" href="<?php echo $this->baseUrl; ?>/backoffice/product/dellivraisonpoids/id/<?php echo $row['ID']; ?>" onClick="return msgOkCancelDelete();">Supprimer</a>
					
					</td>
				</tr>
			</table>
			</form>
			<?php } ?>
		</td>
	</tr>
</table>