	<!-- <a class="btn btn-success" href="<?php echo URL::site('admin/ajouterproduit'); ?>"><i class="icon-plus icon-white"></i> Nouveau produit</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 commandes</h2>
					</div>
					<div class="box-content">
						<table class="table table-striped table-bordered bootstrap-datatable datatable">
						  <thead>
							  <tr>
								  <th>Unite</th>
								  <th>Date</th>
								  <th>Client</th>
								  <th>Téléphone</th>
								  <th>Désignation</th>
								  <th>Quantité</th>
								  <th>Validé</th>
								   <th>Actions</th>
							  </tr>
						  </thead>   
						  <tbody>
						 
						  <?php foreach ($commandes as $commande) : ?>
							<tr>
								<td><?php echo $commande['unite'];?></td>
								<td><?php echo $commande['date_commande'];?></td>
								<td><?php echo $commande['client'];?></td>
								<td><?php echo $commande['telephone'];?></td>
								<td><?php echo $commande['designation'];?></td>
								<td><?php echo $commande['quantite'];?></td>
								<td><?php echo $commande['valide'];?></td>
								<td class="center">
								  <?php if ($commande['valide']==0) { ?>
									<a class="btn btn-info" href="validercommande/<?php echo $commande['id_commande'];?>">
										<i class="icon-edit icon-green"></i>  
										Valider                                            
									</a>
									<a class="btn btn-danger" onClick="ConfirmMessage('supprimercommande/<?php echo $commande['id_commande'];?>')" >
										<i class="icon-trash icon-white"></i> Supprimer </a>
										
								 <?php } else {  ?>
								 
								    <a class="btn btn-info" href="devalidercommande/<?php echo $commande['id_commande'];?>">
										<i class="icon-edit icon-white"></i>  
										Dévalider                                            
									</a>
								 <?php } ?>
								   
									
								</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>