planning séparés

This commit is contained in:
Baptiste Rebillard 2022-08-16 12:40:11 +02:00
parent dcd17ae215
commit 846a106d73
2 changed files with 49 additions and 6 deletions

View file

@ -5,6 +5,18 @@ main {
width: 100%;
}
section {
display: block;
background-color: rgba(255,255,255,0.5);
width: 80%;
max-width: 800px;
margin-left: auto;
margin-right: auto;
padding: 50px;
font-size: 1.2rem;
margin-top: 40px;
}
.planning-container {
height: 82vh;
width: 100%;

View file

@ -6,8 +6,6 @@ include "script/db.php";
if(isset($_GET['planning']) AND !empty(['planning']))
{
$planning = (int) htmlspecialchars($_GET['planning']);
} else {
header('Location: planning.php?planning=1');
}
?>
@ -17,7 +15,25 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<span class="corners corners-top"></span>
<span class="corners corners-bottom"></span>
<div class="title">Planning</div>
<div class="title">
Planning
<?php
if(isset($planning)) {
switch($planning) {
case 1:
echo "général";
break;
case 2:
echo "Pkpeach";
break;
case 3:
echo "Bommario";
break;
}
}
?>
</div>
<span class="circles circles-top"></span>
<span class="circles circles-bottom"></span>
@ -241,11 +257,26 @@ if(isset($_GET['planning']) AND !empty(['planning']))
</script>
<?php } else { ?>
<?php
} else {
if(isset($_POST['p1'])) {
header('Location: planning.php?planning=1');
}
if(isset($_POST['p2'])) {
header('Location: planning.php?planning=2');
}
if(isset($_POST['p3'])) {
header('Location: planning.php?planning=3');
}
?>
<section>
Clique sur le planning que tu souhaites visionner : <br>
<font color="red">On les a pas encore en fait</font>
<form method="POST">
<input type="submit" name="p2" value="Planning Pkpeach" class="submit">
<input type="submit" name="p3" value="Planning Boomario" class="submit">
<input type="submit" name="p1" value="Planning général" class="submit">
</form>
</section>
<?php } ?>