while ($rowresa = mysqli_fetch_array($resultresa)) { $statususer = getUser($rowresa['id_user_resa']); if ($statususer['status_user'] == 2) { $class = "text-muted"; $info = "<span class=\"badge bg-primary\" title=\"Renouvellement de l'adhésion depuis le " . getDateFr($statususer['dateRen_user']) . " au tarif : " . getNomTarif($statususer['tarif_user']) . "\" data-toggle=\"tooltip\"><i class=\"fa fa-info\"></i></span>"; } else { $class = ""; $info = ""; } echo '<tr><form method="post" role="form"> <td><a href="index.php?a=1&b=2&iduser='******'id_user_resa'] . '"><button type="button" class="btn btn-primary sm" data-toggle="tooltip" title=" Fiche adhérent"><i class="fa fa-edit"></i></button></a> <a href="index.php?a=21&b=1&iduser='******'id_user_resa'] . '"><button type="button" class="btn bg-navy sm" data-toggle="tooltip" title="Ajouter impressions"><i class="fa fa-print"></i></button></a></td> <td><h5 id="p' . $rowresa['id_user_resa'] . '" class=' . $class . '>' . getUserName($rowresa['id_user_resa']) . ' ' . $info . '</h5></td> <td><h5>' . getComputerName($rowresa['id_computer_resa']) . '</h5></td> <td><h5>' . getTime($rowresa['debut_resa']) . '</h5></td> <td><h5>' . getTime($rowresa['debut_resa'] + $rowresa['duree_resa']) . '</h5></td> <td>' . getHorDureeSelect2($rowresa['duree_resa'], $rowresa['debut_resa'], $_SESSION['resa']['date'], $rowresa['id_computer_resa'], $epn) . ' <!--<input type="checkbox" name="free" ' . $check . '/>--> <input type="submit" value="mod." name="modify_duration" class="btn btn-sm"/> <input type="hidden" name="idResa" value="' . $rowresa['id_resa'] . '"/></td> <td><a href="' . $_SERVER['REQUEST_URI'] . '&del=' . $rowresa['id_resa'] . '"><button type="button" class="btn bg-red sm"><i class="fa fa-trash-o"></i></button></a></td></form></tr>'; } echo '</form></tbody></table></div></div>'; } } else {
include/admin_inscription.php V0.1 */ // admin --- Utilisateur $mesno = $_GET["mesno"]; if ($mesno != "") { echo getError($mesno); } // Les adhérents en pré-inscription $result = getAllUserInsc(); $nb = mysqli_num_rows($result); if ($nb > 0) { ?> <div class="box box-primary"><div class="box-header"><h3 class="box-title">Pré-inscriptions</h3></div> <div class="box-body"><table class="table"> <thead><tr><td>Nom</td><td>Prénom</td><td>Nom d'utilisateur</td><td>Poste concerné ou EPN choisi par internet</td><td> </td></tr></thead> <?php for ($i = 1; $i <= $nb; $i++) { $row = mysqli_fetch_array($result); $rowcomputer = getComputerName($row["id_inscription_computer"]); echo "<tr><td>" . $row["nom_inscription_user"] . "</td>\n <td>" . $row["prenom_inscription_user"] . "</td>\n <td>" . $row["login_inscription_user"] . "</td>\n <td>" . $rowcomputer . "</td>\n <td><a href=\"index.php?a=24&b=1&iduser="******"id_inscription_user"] . "\"><img src=\"./img/mod.gif\" alt=\"Modifier\" title=\"Modifier\"></a></td></tr>"; } ?> </table></div></div> <?php } else { echo getError(41); } ?>