Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/annoncegallery/edit.phtml |
<div class="table-box">
<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncegallery/edit" method="post" name="editAnnonceForm" 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> Statut</td>
<td class="col-md-8">
<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1"> Actif</label>
<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceGallery['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2"> Inactif</label>
</td>
</tr>
<tr >
<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i> Position</td>
<td class="col-md-8"><input type="text" name="position" size="40" class="form-control" placeholder="Position de l'image" id="position" value="<?php echo $this->populateFormAnnonceGallery['POSITION']; ?>" /></td>
</tr>
<tr >
<td class="col-md-4">Titre</td>
<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control" placeholder="Titre non visible" id="nom" value="<?php echo $this->populateFormAnnonceGallery['NOM']; ?>" /></td>
</tr>
<tr >
<td class="col-md-4">Cat�gorie</td>
<td class="col-md-8">
<?php $tabController = explode(':',$this->populateFormAnnonceGallery['ID_CATS']); ?>
<select class="form-control" size="15" name="categories[]" id="categories" multiple="multiple">
<?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 (in_array($row['ID'.$level], $tabController)) {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 >
<label for="picture" >Image</label>
<br/>
<div class="col-md-12 text-center no-space-top">
<?php if (!empty($this->populateFormAnnonceGallery['URL'])) {
$urlPicture = $this->populateFormAnnonceGallery['URL'];
?>
<ul class="gallerybox ">
<li>
<figure>
<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
</figure>
</li>
</ul>
<?php } ?>
</div>
</td>
<td>
<input type="file" name="picture" id="picture" size="50"/>
<br><i>Extensions : jpg, gif, png</i>
</td>
</tr>
<tr >
<td class="col-md-12" colspan="2"> Contenu</td>
</tr>
<tr >
<td class="col-md-12" colspan="2"><input type="text" name="content_short" size="40" class="form-control" placeholder="Titre de l'image" id="content_short" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_SHORT']; ?>" /></td>
</tr>
<tr >
<td class="col-md-12" colspan="2"><input type="text" name="content_long" size="40" class="form-control" placeholder="Sous-titre de l'image" id="content_long" value="<?php echo $this->populateFormAnnonceGallery['CONTENT_LONG']; ?>" /></td>
</tr>
<tr>
<td colspan="2" class="text-center">
<input type="hidden" name="content" value="">
<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceGallery['ID'];?>">
<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i> Modifier</button>
</td>
</tr>
</tbody>
</table>
</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
tinymce.init({
selector: 'textarea',
height: 500,
convert_urls: false,
theme: 'modern',
skin: "lightgraygradient",
language: 'fr_FR',
plugins: [
'advlist autolink lists link image charmap print preview hr anchor pagebreak',
'searchreplace wordcount visualblocks visualchars code fullscreen',
'insertdatetime media nonbreaking save table contextmenu directionality',
'emoticons template paste textcolor colorpicker textpattern imagetools jbimages'
],
toolbar1: 'insertfile undo redo | styleselect | bold italic forecolor backcolor emoticons | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image jbimages template | print preview media',
image_advtab: true,
relative_urls: false,
templates: <?php echo $this->FeatureTinymceTemplate; ?>,
content_css: '<?php echo $this->FeatureTinymceCss; ?>'
});
});
</script>