Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.volley92.asso.fr
/
htdocs
/
admin174
/
connected
/
pages
/
/srv/data/web/vhosts/www.volley92.asso.fr/htdocs/admin174/connected/pages/catalogue.php
<h1>Catalogue</h1> <a href="add-product" class="btn btn-success btn-sm"><span class="fa fa-plus"></span> Ajouter</a> <hr> <?php include"functions/products.php"; if(empty($products)): echo "<p><i>Aucune fiche produit n'a encore été ajoutée.</i></p>"; else: ?> <?php foreach ($products as $product): ?> <div class='modal fade' id='remove<?=$product->id?>'> <div class='modal-dialog'> <div class='modal-content'> <div class='modal-header'> <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>×</button> <h4 class='modal-title'>Suppression d'un produit</h4> </div> <div class='modal-body'> Confirmez-vous la suppression du produit <b><?=$product->name?></b> ?<br> Référence : <?=$product->reference?><br> <?=$product->desc_short?> </div> <div class='modal-footer'> <form method="post" action="#"> <input type="hidden" name="id" value="<?=$product->id?>"> <a class='btn btn-default' data-dismiss='modal'>Annuler</a> <button type='submit' name='formRemove' class='btn btn-danger'>Supprimer</button> </form> </div> </div> </div> </div> <?php endforeach ?> <table class="table table-striped table-condensed"> <thead> <tr> <th>Nom</th> <th>Reference</th> <th>Description</th> <th></th> </tr> </thead> <tbody> <?php foreach ($products as $product): ?> <tr> <td><?=$product->name?></td> <td><?=$product->reference?></td> <td><?=$product->desc_short?></td> <td class="text-right"> <a href="edit-product-<?=$product->id?>" class="btn btn-warning btn-xs" title="Éditer"><span class="fa fa-edit fa-fw"></span></a> <a data-toggle='modal' href='#remove<?=$product->id?>' class='btn btn-xs btn-danger'><span class="fa fa-times fa-fw"></span></a> </td> </tr> <?php endforeach ?> </tbody> </table> <?php endif; ?>