index day

This commit is contained in:
Baptiste 2022-06-19 18:09:31 +02:00
parent ead65dd9b4
commit d061ae3ce2

View file

@ -89,7 +89,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 0 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 1 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -107,7 +107,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 1 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 2 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -124,7 +124,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 2 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 3 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -141,7 +141,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 3 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 4 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -158,7 +158,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 4 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 5 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -174,7 +174,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<div class="day_title">S</div> <div class="day_title">S</div>
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 5 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 6 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>
@ -191,7 +191,7 @@ if(isset($_GET['planning']) AND !empty(['planning']))
<?php <?php
// For every planned activity on day 0 // For every planned activity on day 0
$req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 6 AND num_planning = ? ORDER BY order_start ASC'); $req1 = $db->prepare('SELECT title, description, color, length FROM planning_insa WHERE day = 7 AND num_planning = ? ORDER BY order_start ASC');
$req1->execute(array($planning)); $req1->execute(array($planning));
while($r1 = $req1->fetch()) { while($r1 = $req1->fetch()) {
?> ?>