forked from rebillar/site-accueil-insa
retouche planning
This commit is contained in:
parent
2f3ca4cbde
commit
8cc8d20fa3
2 changed files with 27 additions and 1 deletions
|
@ -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;
|
||||
}
|
16
planning.php
16
planning.php
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue