This commit is contained in:
Baptiste 2022-07-31 20:07:44 +02:00
parent 5d9e9ab4b1
commit 628bf426a4

View file

@ -3,13 +3,11 @@ ob_start(); // Start reading html
include "script/db.php"; include "script/db.php";
header('LOcation:construction.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 { } else {
header('Location: planning.php?planning=1'); header('Location: planning2.php?planning=1');
} }
?> ?>
@ -118,7 +116,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php
@ -135,7 +133,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php
@ -152,7 +150,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php
@ -169,7 +167,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php
@ -185,7 +183,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php
@ -202,7 +200,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
<div class="class" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;"> <div class="class" data-description="<?=$r1['description']?>" style="background-color: <?= $r1['color'] ?>; height: <?= $r1['length'] ?>vh;">
<?= $r1['title'] ?> <?= $r1['title'] ?>
</div> </div>
<?php <?php