inscrire.php
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
session_start();
require_once("accesBase.php");
$membres = members();
?>
<!DOCTYPE html>
<html>
<head>
<?php include("head.php"); ?>
</head>
<!-- Contenu du site -->
<body>
<?php
include("header.php");
if(getGroupe($_SESSION['Login'])==1)
{
?>
<div class="row">
<div class="col-6 col-md-6 offset-md-3 offset-3">
<br/>
<h1 style="margin-bottom:20px; margin-top:60px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Membres</h1>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<td>Nom</td>
<td>Prénom</td>
<td>Identifiant</td>
<td>Groupe</td>
<td>Action</td>
</tr>
<?php
foreach($membres as $membre){
?>
<tr>
<td><?php echo $membre['nom'];?></td>
<td><?php echo $membre['prenom'];?></td>
<td><?php echo $membre['identifiant'];?></td>
<td><?php echo groupeId($membre['groupe']);?></td>
<td>
<form action="suppression.php" method="POST">
<input type="hidden" name="id" value="<?php echo $membre['identifiant'];?>">
<input type="submit" name="supprimer" value="Supprimer">
</form>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php
include("formSuppression.php");
include("formInscription.php");
}
else
{ header("Location: accueil.php"); }
?>
</body>
</html>