forked from rebillar/site-accueil-insa
planning
This commit is contained in:
parent
5d9e9ab4b1
commit
628bf426a4
1 changed files with 7 additions and 9 deletions
16
planning.php
16
planning.php
|
@ -3,13 +3,11 @@ ob_start(); // Start reading html
|
|||
|
||||
include "script/db.php";
|
||||
|
||||
header('LOcation:construction.php');
|
||||
|
||||
if(isset($_GET['planning']) AND !empty(['planning']))
|
||||
{
|
||||
$planning = (int) htmlspecialchars($_GET['planning']);
|
||||
} 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));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -135,7 +133,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
|||
$req1->execute(array($planning));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -152,7 +150,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
|||
$req1->execute(array($planning));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -169,7 +167,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
|||
$req1->execute(array($planning));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -185,7 +183,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
|||
$req1->execute(array($planning));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
@ -202,7 +200,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
|
|||
$req1->execute(array($planning));
|
||||
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'] ?>
|
||||
</div>
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue