Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/annoncefront/list.phtml
 <div class="table-box">
	<?php if ($this->populateFormAnnonceFront['NOM']) { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/edit" method="post" name="editAnnonceForm">
	<?php } else { ?>
	<form action="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/add" method="post" name="addAnnonceForm">
	<?php } ?>
	<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>&nbsp;Titre</td>
				<td class="col-md-8"><input type="text" name="nom" size="40" class="form-control"  placeholder="Titre de l'information" id="nom" value="<?php echo $this->populateFormAnnonceFront['NOM']; ?>" /></td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Statut</td>
				<td class="col-md-8">
					<input type="radio" value="0" name="isshow" id="isshow1" class="bluecheckradios" <?php if ($this->populateFormAnnonceFront['isSHOW'] == 0) { echo 'checked="checked"';} ?>><label for="isshow1">&nbsp;Actif</label>
					<input type="radio" value="1" name="isshow" id="isshow2" class="bluecheckradios" <?php if ($this->populateFormAnnonceFront['isSHOW'] == 1) { echo 'checked="checked"';} ?>><label for="isshow2">&nbsp;Inactif</label>
			
				</td>
			</tr>
			<tr >
				<td class="col-md-4"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;Contenu</td>
				<td class="col-md-8">
						<textarea  name="content" cols="130" rows="20" id="annonceContent" name="annonceContent">
						<?php if (isset($this->populateFormAnnonceFront['CONTENT']) && !empty($this->populateFormAnnonceFront['CONTENT'])) { 
							 echo $this->populateFormAnnonceFront['CONTENT']; 
						} ?>
						</textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="text-center">
					<?php if ($this->populateFormAnnonceFront['NOM']) { ?>
						<input type="hidden" name="id" value="<?php echo $this->populateFormAnnonceFront['ID'];?>">
						<button class="btn btn-success" type="submit" name="edit"><i class="glyphicon glyphicon-edit"></i>&nbsp;Modifier</button>
					<?php } else { ?>
						<button class="btn btn-success" type="submit" name="add"><i class="glyphicon glyphicon-plus"></i>&nbsp;Ajouter</button>
					<?php } ?>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
$(function(){
	initEditor('#annonceContent');
});
</script>

 <div class="table-box">
<table class="display table" id="annonceFrontTable" width="100%">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listannoncefront as $row)  { ?>
		<tr>
			<td><?php echo $row['NOM'];?></td>
			<td><?php if ($this->escape($row['isSHOW'])==0) {echo 'Actif';} else {echo 'Inactif';} ?></td>
			<td>
				<div class="btn-group">
	             	<a class="btn btn-success" href="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/edit/id/<?php echo $row['ID']; ?>"><span class="glyphicon glyphicon-edit"></span> Modifier</a>
					<button class="btn btn-danger btn-modal" data-toggle="ajaxModalDelete" data-linkok="<?php echo $this->baseUrl; ?>/backoffice/annoncefront/del/id/<?php echo $row['ID']; ?>" ><span class="glyphicon glyphicon-trash"></span> Supprimer</button>
				</div>
			</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<script>			
	$(document).ready(function() {
		initDataTable('annonceFrontTable', [[ 0, "asc" ]], [{ "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>