Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/blogcategory/add.phtml |
<div class="table-box">
<form method="POST" action="/backoffice/blogcategory/add">
<table class="table">
<thead>
<tr>
<th 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">Publier</td>
<td class="col-md-8">
<input type="radio" value="<?php echo true; ?>" name="is_publish" id="is_publish1" class="bluecheckradios" <?php if ($this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish1"> Oui</label>
<input type="radio" value="<?php echo false; ?>" name="is_publish" id="is_publish2" class="bluecheckradios" <?php if (!$this->populateData['is_publish']) { echo 'checked="checked"';} ?>><label for="is_publish2"> Non</label>
</td>
</tr>
<tr >
<td class="col-md-4">Fermer</td>
<td class="col-md-8">
<input type="radio" value="<?php echo true; ?>" name="is_close" id="is_close1" class="bluecheckradios" <?php if ($this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close1"> Oui</label>
<input type="radio" value="<?php echo false; ?>" name="is_close" id="is_close2" class="bluecheckradios" <?php if (!$this->populateData['is_close']) { echo 'checked="checked"';} ?>><label for="is_close2"> Non</label>
</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->listallblogcategories as $row) {
for ($level=0 ; $level<11; $level++) {
if ((!isset($show['title'.$level]) || $show['title'.$level] != $row['title'.$level]) && $row['title'.$level] != null) {
?>
<option value="<?php echo $this->escape($row['id'.$level]); ?>">
<?php
for ($i=0 ; $i<$level; $i++) {
echo ' ';
}
echo $row['title'.$level]; ?>
</option>
<?php
$show['title'.$level] = $row['title'.$level];
}
}
} ?>
</select>
</td>
</tr>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Titre</td>
<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre" name="title" size="40" id="title" value="<?php echo $this->populateData['title']; ?>"/></td>
</tr>
<tr >
<td class="col-md-4">Titre secondaire</td>
<td class="col-md-8"><input type="text" class="form-control" placeholder="Titre secondaire" name="sub_title" size="40" id="sub_title" value="<?php echo $this->populateData['sub_title']; ?>"/></td>
</tr>
<tr >
<td class="col-md-4">Contenu</td>
<td class="col-md-8">
<textarea name="message" cols="130" rows="20" id="annonceContent">
<?php if (isset($this->populateData['message']) && !empty($this->populateData['message'])) {
echo $this->populateData['message'];
} ?>
</textarea>
</td>
</tr>
<tr>
<td colspan="2" class="text-center">
<button type="submit" name="search" class="btn btn-success">
<span class="glyphicon glyphicon-plus"></span> Ajouter
</button>
</td>
</tr>
</tbody>
</table>
</form>
<script>
$(document).ready(function() {
initEditor('#annonceContent');
});
</script>
</div>