retouche planning

This commit is contained in:
Baptiste 2022-06-16 23:05:10 +02:00
parent 2f3ca4cbde
commit 8cc8d20fa3
2 changed files with 27 additions and 1 deletions

View file

@ -45,4 +45,16 @@ div.content {
align-items : center;
justify-content : center;
border: 2px solid black;
}
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;
}

View file

@ -6,6 +6,8 @@ include "script/db.php";
if(isset($_GET['planning']) AND !empty(['planning']))
{
$planning = (int) htmlspecialchars($_GET['planning']);
} else {
header('Location: construction.php');
}
?>
<main>
@ -58,14 +60,26 @@ if(isset($_GET['planning']) AND !empty(['planning']))
</div>
<?php
}
$cnt = $req1->rowCount(); //pour les ptit farceurs
if($cnt == 0) {
header('Location: error.php');
}
echo "</td>";
}
?>
</tr>
</table>
<?php
}
} else {
?>
<section>
Clique sur le planning que tu souhaites visionner : <br>
<font color="red">On les a pas encore en fait</font>
</section>
<?php } ?>
</main>
<?php
$infopage = ["", "Planning", ob_get_clean(), "", "planning"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6