<?php echo '<div class="item-type-reassort"> <table class="table table-striped table-bordered"> <thead> <tr> <th>type</th> <th>Pourcentage</th> <th>#</th> </tr> </thead> <tbody> '; $types = getProduitsTypes(); foreach ($types as $key => $value) { $Reassort->setType($value); $Reassort->setMagasin($_GET['magasin']); $Reassort->setDate($_GET['date']); echo '<tr>'; echo '<td>' . $value . '</td>'; echo '<td>' . $Reassort->getReaPercent() . ' %</td>'; echo '<td><a href="rea-details.php?date=' . $_GET['date'] . '&magasin=' . $_GET['magasin'] . '&type=' . $value . '"><button class="btn">Consulter</button></a></td>'; echo '</tr>'; } echo ' </tbody> </table> </div>'; ?> </div>