	<a class="btn btn-success" href="<?php echo URL::site('admin/ajouterpromotion'); ?>"><i class="icon-plus icon-white"></i> Nouvel promotion</a>
	<div class="row-fluid sortable">
	<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i> Liste des promotions</h2>
					</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>Intitule</th>
								  <th>Début</th>
								  <th>Fin</th>
								  <th>Actions</th>
							  </tr>
						  </thead>   
						  <tbody>
						 
						  <?php foreach ($promotions as $promotion) : ?>
							<tr>
								<td><?php echo $promotion['libelle'];?></td>
								<td><?php echo $promotion['date_debut'];?></td>
								<td><?php echo $promotion['date_fin'];?></td>
								<td class="center">
									<a class="btn btn-info" href="modifierpromotion/<?php echo $promotion['id'];?>">
										<i class="icon-edit icon-white"></i>  
										Modifier                                            
									</a>
									<a class="btn btn-danger" onClick="ConfirmMessage('supprimerpromotion/<?php echo $promotion['id'];?>')" >
										<i class="icon-trash icon-white"></i> 
										Supprimer
									</a>
								</td>
							</tr>
								<?php endforeach; ?>
						  </tbody>
					  </table>            
					</div>
				</div><!--/span-->
				</div>
				
				<script type="text/javascript">
   function ConfirmMessage(lien) {
       if (confirm("Voulez-vous vraiment supprimer l element séléctionné ?")) { // Clic sur OK
          window.location.href = lien;
       }
   }
</script>