diff --git a/assets/css/page/planning.css b/assets/css/page/planning.css index e69de29..d86bd3b 100644 --- a/assets/css/page/planning.css +++ b/assets/css/page/planning.css @@ -0,0 +1,48 @@ +main { + text-align: center; + border: 0; + margin: 0; + width: 100%; +} + +table { + margin: 50px; + border-collapse: collapse; + height: 80vh; + margin-left: auto; + margin-right: auto; +} + +table th, td { + border: 0; + margin: 0; + padding: 0; +} + +.tr-th { + background-color: rgba(255, 255, 255, 0.5); +} + +.tr-th th { + padding: 20px; + color: black; + font-size: 30px; +} + +.tr-td { + height: 100%; +} + +div.hours { + background-color: rgba(255, 255, 255, 0.7); + border-top: 2px solid black; + color: black; + border-right:2px solid black; +} + +div.content { + display : flex; + align-items : center; + justify-content : center; + border: 2px solid black; +} \ No newline at end of file diff --git a/planning.php b/planning.php index 81f8f9a..52ed2b4 100755 --- a/planning.php +++ b/planning.php @@ -1,8 +1,72 @@ +include "script/db.php"; + +if(isset($_GET['planning']) AND !empty(['planning'])) +{ + $planning = (int) htmlspecialchars($_GET['planning']); +} +?> +
+ +
+ + + +
Planning
+ + + +
+ + + + + + + + + + + + + + + + "; + $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = ? AND num_planning = ? ORDER BY order_start ASC'); + $req1->execute(array($day, $planning)); + while($r1 = $req1->fetch()) { + ?> +
" class="content"> + +
+ "; + } + ?> + +
HeuresLundiMardiMercrediJeudiVendrediSamediDimanche
+ +
+ +
+ +
+ +