Current File : /home/karenpetzb/application/modules/backoffice/views/scripts/annoncegallery/list.phtml
<div class="table-box">
<table class="display table" id="AnnonceGalleryTable" width="100%">
	<thead>
		<tr>
			<th></th> 
			<th>Titre</th> 
			<th>Statut</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
	
		<?php foreach($this->listAnnonceGallery as $row)  { ?>
		<tr>
			<td>
				<?php if (!empty($row['URL'])) { 
					$urlPicture = $row['URL'];?>
					<ul class="gallerybox ">
						<li>
							<figure>
								<img src="<?php echo $this->baseUrl.'/'.Utils_Tool::find_thumb($urlPicture, 100);?>" />
							</figure>
						</li>
					</ul>
				<?php } ?>
			</td>
			<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/annoncegallery/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/annoncegallery/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('AnnonceGalleryTable', [[ 1, "asc" ]], [{ "orderable": false, "targets": 0 }, { "orderable": false, "targets": -1, "width": "270px" }]); 	    
	});
</script>
</div>