<?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>'; ?>
<legend> Fiche Réassort Imprimable du <?php echo $_GET['date']; ?> sur <?php echo $_GET['magasin']; ?> pour <?php echo $_GET['type']; ?> </legend> <?php $Reassort->setMagasin($_GET['magasin']); $Reassort->setType($_GET['type']); $Reassort->setDate($_GET['date']); $rows = $Reassort->getReaList(); echo '<h4>Réassortis</h4>'; echo ' <table class="table table-striped table-bordered very-small-text"> <thead> <tr> <th>Heure</th> <th>Prix</th> <th>EAN / ISBN</th> <th>Titre</th> <th>Auteur</th> <th>Editeur</th> <th>Edition</th> </tr>