<th>Heure de debut</th> <th>Heure de fin</th> <th>Durée</th> <th>Machine réservée</th> <th> </th></tr></thead><tbody> <?php while ($row = mysqli_fetch_array($result)) { echo "<tr><td>" . dateFr($row['dateresa_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['debut_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['debut_resa'] + $row['duree_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['duree_resa']) . "</td>\n\t\t\t\t <td>" . $row['nom_computer'] . "</td>\n\t\t\t\t <td><a href=\"index.php?m=8&del=" . $row['id_resa'] . "&min=" . $row['duree_resa'] . "&date=" . $row['dateresa_resa'] . "\"><button type=\"button\" class=\"btn bg-red sm\"><i class=\"fa fa-trash-o\" title=\" supprimer\"></i></button></td></tr>"; } ?> </tbody></table></div></div> <?php } // ARCHIVES DES RESERVATIONS //$result = getUserResaById($_SESSION['iduser'],date("m"),date("Y")) ; $result = getResaById($_SESSION['iduser'], 2); if ($result != FALSE) { // affichage ?> <div class="box box-warning"><div class="box-header"> <h3 class="box-title">Réservations archivées</h3></div> <div class="box-body"><table class="table"> <thead><tr> <th>Date</th> <th>Heure de debut</th> <th>Heure de fin</th> <th>Durée</th> <th>Machine réservée</th></tr></thead><tbody>
echo $id_user; ?> "><button class="btn btn-default btn-sm" data-toggle="tooltip" title="Fiche adhérent"><i class="fa fa-edit"></i></button></a> <a href="index.php?a=6&iduser=<?php echo $id_user; ?> "><button class="btn btn-default btn-sm" data-toggle="tooltip" title="Abonnements"><i class="ion ion-bag"></i></button></a> </div> </div> <div class="box-body"> <?php if (TRUE == checkResa($id_user)) { // affichage des reservation a venir $result = getResaById($id_user, 1); if ($result != FALSE) { echo " <p>Réservations à venir</p>"; echo "<table class=\"table\">\n\t\t\t\t<thead><tr> \n\t\t\t\t <th>Date</th>\n\t\t\t\t <th>Heure de debut</th>\n\t\t\t\t <th>Heure de fin</th>\n\t\t\t\t <th>Durée</th>\n\t\t\t\t <th>Machine réservée</th>\n\t\t\t\t </tr></thead><tbody>"; while ($row = mysqli_fetch_array($result)) { echo "<tr><td>" . dateFr($row['dateresa_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['debut_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['debut_resa'] + $row['duree_resa']) . "</td>\n\t\t\t\t <td>" . getTime($row['duree_resa']) . "</td>\n\t\t\t\t <td>" . $row['nom_computer'] . "</td>\n\t\t\t\t</tr>"; } echo "</tbody></table>"; } else { echo "Aucune réservation enregistrée pour les jours prochains</br>"; } // ARCHIVES DES RESERVATIONS //$result = getUserResaById($_SESSION['iduser'],date("m"),date("Y")) ; $result = getResaByMonth($id_user, date("m"), date("Y")); if ($result != FALSE) { // affichage