forked from vergnet/site-accueil-insa
planning séparés
This commit is contained in:
parent
dcd17ae215
commit
846a106d73
2 changed files with 49 additions and 6 deletions
|
@ -5,6 +5,18 @@ main {
|
||||||
width: 100%;
|
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 {
|
.planning-container {
|
||||||
height: 82vh;
|
height: 82vh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
43
planning.php
43
planning.php
|
@ -6,8 +6,6 @@ include "script/db.php";
|
||||||
if(isset($_GET['planning']) AND !empty(['planning']))
|
if(isset($_GET['planning']) AND !empty(['planning']))
|
||||||
{
|
{
|
||||||
$planning = (int) htmlspecialchars($_GET['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-top"></span>
|
||||||
<span class="corners corners-bottom"></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-top"></span>
|
||||||
<span class="circles circles-bottom"></span>
|
<span class="circles circles-bottom"></span>
|
||||||
|
@ -241,11 +257,26 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
||||||
|
|
||||||
</script>
|
</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>
|
<section>
|
||||||
Clique sur le planning que tu souhaites visionner : <br>
|
<form method="POST">
|
||||||
<font color="red">On les a pas encore en fait</font>
|
<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>
|
</section>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in a new issue