Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/productoptionlist/option.phtml
 <div class="table-box">
	<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/option">
	<table class="table">
		<thead>
			<tr>
				<th class="col-md-4" colspan="2"><?php echo $this->titlePage; ?><i style="display:none">Liste de caract�ristiques disponible lors de la s�lection d'un produit</i></th>
			</tr>
		</thead>
		<tbody>
			<?php echo $this->render("alert_tr.phtml"); ?>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Caract�ristique</td>
				<td class="col-md-8"><input type="text" class="form-control" size="60" name="name" placeholder="Ajouter une caract�ristique de produit"></td>
			</tr>
			<tr class="nostriped">
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Valeurs</td>
				<td class="col-md-8"><input type="text" class="form-control" name="value" value="" size="40" placeholder="Ajouter une liste de valeurs � s�lectionner"><i>valeur 1, valeur 2, ...</i></td>
				
			</tr>
			<tr class="nostriped">
				<td colspan="2" class="text-center">
					<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>

<div class="table-box">
<table class="display table" id="optionTable" width="100%">
	<thead>
		<tr>
			<th>Caract�ristiques</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($this->listoption as $optionList)  { ?>
		<tr>
			<td >
				<form method="POST" action="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/optionedit">
				<div class="col-md-4 no-space-top">
					<input type="text" class="form-control" size="40" name="name" value="<?php echo $optionList->name;?>">
				</div>
				<div class="col-md-4 no-space-top">
					<?php $values = explode("::", $optionList->valuesString);
						$result = "";
						foreach ($values as $value) {
							if (empty($result))  {
								$result .= $value;
							} else {
								$result .= ", ".$value;
							}
						}	?>	
					<input type="text" class="form-control" size="40" name="value" value="<?php echo $result;?>">
				</div>
				
				
				<div class="col-md-4 no-space-top">
					<input type="hidden" name="id" id="id" value="<?php echo $optionList->id;?>">
					<div class="btn-group">
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
						<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/productoptionlist/optiondel/id/<?php echo $optionList->id;?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
					</div>
				</div>
				</form>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</div>