Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/category2/add.phtml |
<div class="table-box">
<form action="<?php echo $this->baseUrl; ?>/backoffice/category2/add" method="post" name="addCategory" enctype="multipart/form-data" >
<table class="table">
<thead>
<tr>
<th colspan="2" class="col-md-4" ><?php echo $this->titlePage; ?></th>
</tr>
</thead>
<tbody>
<?php echo $this->render("alert_tr.phtml"); ?>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Nom</td>
<td class="col-md-8"><input type="text" class="form-control" name="nom" id="nom" value="<?php echo $this->populateForm['NOM']; ?>" /></td>
</tr>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Nom de navigation</td>
<td class="col-md-8"><input type="text" class="form-control" name="navnom" id="navnom" value="<?php echo $this->populateForm['NAVNOM']; ?>" /></td>
</tr>
<tr >
<td class="col-md-4">Mots cl�s</td>
<td class="col-md-8"><input type="text" class="form-control" name="keywords" id="keywords" value="<?php echo $this->populateForm['KEYWORDS']; ?>" /></td>
</tr>
<tr>
<td class="col-md-4">Description</td>
<td class="col-md-8"><input type="text" class="form-control" name="desc" id="desc" value="<?php echo $this->populateForm['DESCRIPTION']; ?>" /></td>
</tr>
<tr>
<td class="col-md-4">Cat�gorie parente</td>
<td class="col-md-8">
<select name="idparent" id="idparent" class="form-control">
<?php
$show = array();
foreach($this->listallcategories2 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 ' ';
}
echo $row['NOM'.$level]; ?>
</option>
<?php
$show['NOM'.$level] = $row['NOM'.$level];
}
}
} ?>
</select>
</td>
</tr>
<tr>
<td class="col-md-4">Image de la cat�gorie</td>
<td class="col-md-8">
<input type="file" name="picCat" id ="picCat" size="50" >
<br><i>Extensions : jpg, gif, png</i>
</td>
</tr>
<tr>
<td colspan="2" class="text-center">
<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i> Ajouter</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="clearfix"></div>