Blame view

html/menu.php 2.15 KB
8d481333   lwadbled   add(html): Codes ...
1
2
3
4
  <!DOCTYPE html>
  <html>
  	<head>
  		<meta charset="utf-8"/>
c825216f   lwadbled   feat(main.php): R...
5
  		<title>Mon espace</title>
8d481333   lwadbled   add(html): Codes ...
6
7
8
9
10
11
12
13
14
15
  		<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css"
  		      rel="stylesheet"
  		      integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
  		      crossorigin="anonymous">
  		<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"
  			integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//E1J19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
  			crossorigin="anonymous">
  		</script>
  	</head>
  	<body>
95d09295   lwadbled   fix(): correction...
16
  		<div class="text-center">
8d481333   lwadbled   add(html): Codes ...
17
18
19
20
21
22
23
24
  			<?php	
  				session_start();
  				if(isset($_GET['deconnexion'])){
  					if($_GET['deconnexion']==true){
  						session_unset();
  						echo "<meta http-equiv=\"refresh\" content=\"0;url=index.html\">";
  						//header('Location : index.html');
  					}
87d5afd9   lwadbled   feat(*): verifica...
25
  				}elseif(isset($_SESSION['identifiant'])){
8d481333   lwadbled   add(html): Codes ...
26
  					$identifiant = $_SESSION['identifiant'];
9de9bb41   lwadbled   feat(html): Ajout...
27
  					echo "Bonjour $identifiant, vous ĂȘtes connectĂ©<br>";
87d5afd9   lwadbled   feat(*): verifica...
28
29
  				}else{
  					echo "<meta http-equiv=\"refresh\" content=\"0;url=index.html\">";
8d481333   lwadbled   add(html): Codes ...
30
  				}
cdb865f1   lwadbled   feat(Python): Ajo...
31
32
  				//$test = shell_exec('python3 Python/client.py');
  				//echo "Reponse : $test";
8d481333   lwadbled   add(html): Codes ...
33
  			?>
9de9bb41   lwadbled   feat(html): Ajout...
34
35
36
37
38
39
40
41
42
  			<form method="POST" action="menu.php?deconnexion=true"> 
  				<button class="btn-lg btn-danger" type="submit">Deconnexion</button>
  			</form>
  			<form method="POST" action="reservation.php"> 
  				<button class="btn-lg btn-primary" type="submit">Reserver un banc</button>
  			</form>
  			<form method="POST" action="mesReservations.php"> 
  				<button class="btn-lg btn-success" type="submit">Mes Reservations</button>
  			</form>
46de4374   lwadbled   feat(gestionAppar...
43
44
  			<?php
  				if($identifiant=="admin"){
c1606691   lwadbled   feat(gestionBanc....
45
46
47
  					echo "<form method='POST' action='gestionBanc.php'>";
  					echo "<button class='btn-lg btn-warning' type='submit'>Gestion des bancs</button>";
  					echo "</form>";
46de4374   lwadbled   feat(gestionAppar...
48
49
50
  					echo "<form method='POST' action='gestionAppareil.php'>";
  					echo "<button class='btn-lg btn-warning' type='submit'>Gestion des appareils</button>";
  					echo "</form>";
5aaa2b1b   lwadbled   feat(gestionReser...
51
52
53
  					echo "<form method='POST' action='gestionReservation.php'>";
  					echo "<button class='btn-lg btn-warning' type='submit'>Gestion des reservations</button>";
  					echo "</form>";
46de4374   lwadbled   feat(gestionAppar...
54
55
  				}
  			?>
8d481333   lwadbled   add(html): Codes ...
56
57
58
  		</div>
  	</body>
  </html>