Commit d7e509819ca9ad30266bd41df6ed6f29b263dfaf
1 parent
8d6acadf
MAJ
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
site/accesBase.php
@@ -99,7 +99,7 @@ | @@ -99,7 +99,7 @@ | ||
99 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); | 99 | $result = pg_query($db, $query) or die("La requête a echoué : ".pg_last_error()); |
100 | $tab = pg_fetch_assoc($result); | 100 | $tab = pg_fetch_assoc($result); |
101 | deconnexion($db); | 101 | deconnexion($db); |
102 | - return $tab['groupe']; | 102 | + return $tab['nom']; |
103 | } | 103 | } |
104 | 104 | ||
105 | function getGroupes() | 105 | function getGroupes() |
site/formInscription.php
@@ -6,7 +6,7 @@ $groupes = getGroupes(); | @@ -6,7 +6,7 @@ $groupes = getGroupes(); | ||
6 | <div class="row"> | 6 | <div class="row"> |
7 | <div class="col-6 col-md-6 offset-md-3 offset-3"> | 7 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
8 | <br/> | 8 | <br/> |
9 | - <h1 style="margin-bottom:20px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-user-plus"></i> Créer un compte</h1> | 9 | + <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-user-plus"></i> Créer un compte</h1> |
10 | <form action="inscription.php" method="post"> | 10 | <form action="inscription.php" method="post"> |
11 | <table class="table table-striped table-bordered"> | 11 | <table class="table table-striped table-bordered"> |
12 | <tbody> | 12 | <tbody> |
@@ -52,7 +52,7 @@ $groupes = getGroupes(); | @@ -52,7 +52,7 @@ $groupes = getGroupes(); | ||
52 | </tr> | 52 | </tr> |
53 | </tbody> | 53 | </tbody> |
54 | </table> | 54 | </table> |
55 | - <input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px; margin-bottom:20px;" value="Ajouter"/> | 55 | + <input type="submit" class="btn btn-dark btn-lg btn-block" style="margin-top:20px;" value="Ajouter"/> |
56 | <br/> | 56 | <br/> |
57 | </form> | 57 | </form> |
58 | </div> | 58 | </div> |
site/inscrire.php
@@ -22,7 +22,7 @@ $membres = members(); | @@ -22,7 +22,7 @@ $membres = members(); | ||
22 | <div class="row"> | 22 | <div class="row"> |
23 | <div class="col-6 col-md-6 offset-md-3 offset-3"> | 23 | <div class="col-6 col-md-6 offset-md-3 offset-3"> |
24 | <br/> | 24 | <br/> |
25 | - <h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Membres</h1> | 25 | + <h1 style="margin-bottom:20px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Membres</h1> |
26 | <table class="table table-striped table-bordered"> | 26 | <table class="table table-striped table-bordered"> |
27 | <tbody> | 27 | <tbody> |
28 | <tr> | 28 | <tr> |
@@ -40,7 +40,7 @@ $membres = members(); | @@ -40,7 +40,7 @@ $membres = members(); | ||
40 | <td><?php echo $membre['nom'];?></td> | 40 | <td><?php echo $membre['nom'];?></td> |
41 | <td><?php echo $membre['prenom'];?></td> | 41 | <td><?php echo $membre['prenom'];?></td> |
42 | <td><?php echo $membre['identifiant'];?></td> | 42 | <td><?php echo $membre['identifiant'];?></td> |
43 | - <td><?php echo groupeId($membre['identifiant']);?></td> | 43 | + <td><?php echo groupeId($membre['groupe']);?></td> |
44 | <td> | 44 | <td> |
45 | <form action="suppression.php" method="POST"> | 45 | <form action="suppression.php" method="POST"> |
46 | <input type="hidden" name="id" value="<?php echo $membre['identifiant'];?>"> | 46 | <input type="hidden" name="id" value="<?php echo $membre['identifiant'];?>"> |