Blame view

site/inscrire.php 1.46 KB
de42133d   grouille   Test
1
  <?php
56f6a1da   grouille   Test
2
  session_start();
d3479236   grouille   MAJ
3
4
  require_once("accesBase.php");
  $membres = members();
56f6a1da   grouille   Test
5
6
  ?>
  
f3564fdb   grouille   Ajout des fichier...
7
8
9
  <!DOCTYPE html>
  
  <html>
00872e67   grouille   Test
10
11
  	<head>
  		<?php include("head.php"); ?>
f3564fdb   grouille   Ajout des fichier...
12
13
14
15
  	</head>
  
  	<!-- Contenu du site -->
  	<body>
011cb454   grouille   Ajout compte
16
17
  		<?php 
  		include("header.php");
c71ae98a   grouille   Test
18
  		if(getGroupe($_SESSION['Login'])==1)
e8885fa6   grouille   Test
19
  		{
8d6acadf   grouille   MAJ
20
  			include("formInscription.php");
d3479236   grouille   MAJ
21
22
23
24
  			?>
  			<div class="row">
  				<div class="col-6 col-md-6 offset-md-3 offset-3">
  					<br/>
d7e50981   grouille   MAJ
25
  					<h1 style="margin-bottom:20px; border-bottom:1px solid #CCC; padding-bottom:20px;"><i class="fas fa-database"></i> Membres</h1>
d3479236   grouille   MAJ
26
27
  					<table class="table table-striped table-bordered">
  						<tbody>
fccb88d3   grouille   MAJ
28
  							<th class="thead-dark">
d3479236   grouille   MAJ
29
30
31
32
33
  								<td>Nom</td>
  								<td>Prénom</td>
  								<td>Identifiant</td>
  								<td>Groupe</td>
  								<td>Action</td>
fccb88d3   grouille   MAJ
34
  							</th>
d3479236   grouille   MAJ
35
36
37
38
39
40
41
42
  							
  							<?php 
  							foreach($membres as $membre){
  								?>
  								<tr>
  									<td><?php echo $membre['nom'];?></td>
  									<td><?php echo $membre['prenom'];?></td>
  									<td><?php echo $membre['identifiant'];?></td>
d7e50981   grouille   MAJ
43
  									<td><?php echo groupeId($membre['groupe']);?></td>
d3479236   grouille   MAJ
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  									<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
e8885fa6   grouille   Test
59
  		}
011cb454   grouille   Ajout compte
60
  		else
5214456a   grouille   Test
61
  		{ header("Location: accueil.php"); }
011cb454   grouille   Ajout compte
62
  		?>
f3564fdb   grouille   Ajout des fichier...
63
  	</body>
011cb454   grouille   Ajout compte
64
  </html>