Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/product/add.phtml |
<div class="table-box">
<form method="POST" action="/backoffice/product/add">
<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" size="60" name="nom" id="nom" value="<?php echo $this->populateForm['NOM'];?>"></td>
</tr>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Description courte</td>
<td class="col-md-8"><textarea rows="2" class="form-control" cols="50" name="descshort" id="descshort"><?php echo $this->populateForm['DESCRIPTIONSHORT'];?></textarea></td>
</tr>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Description longue</td>
<td class="col-md-8"><textarea rows="10" class="form-control" cols="50" name="desclong" id="desclong"><?php echo $this->populateForm['DESCRIPTIONLONG'];?></textarea></td>
</tr>
<tr>
<td class="col-md-4">Statut</td>
<td class="col-md-8">
<input type="radio" class="bluecheckradios" name="active" id="active1" value="0" <?php if ($this->populateForm['isACTIVE'] == 0) { echo 'checked="checked"';} ?>> <label for="active1">Actif</label>
<input type="radio" class="bluecheckradios" name="active" id="active2" value="1" <?php if ($this->populateForm['isACTIVE'] == 1) { echo 'checked="checked"';} ?>> <label for="active2">Inactif</label>
</td>
</tr>
<tr>
<td class="col-md-4">Cat�gorie</td>
<td class="col-md-8">
<select name="idcategory" id="idcategory" class="form-control">
<?php
$show = array();
foreach($this->listallcategories 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 if ($row['ID'.$level] == $this->populateForm['IDCATEGORY']) { echo 'selected="selected"';}?> >
<?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">Marque</td>
<td class="col-md-8">
<select name="idbrend" id="idbrend" class="form-control">
<option value="0">Aucun</option>
<?php foreach($this->listbrend as $row) { ?>
<option value="<?php echo $this->escape($row['ID']); ?>" <?php if ($row['ID'] == $this->populateForm['IDBREND']) { echo 'selected="selected"';}?> >
<?php echo $this->escape($row['BREND']); ?>
</option>
<?php } ?>
</select>
</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>
<input type="hidden" name="prix" id="prix" value="0.00">
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
initEditor('#descshort');
initEditor('#desclong');
});
</script>