Bonsoir,
J’essaie de faire un planning qui affiche la semaine avec un roulement de différentes personne.
Le problème c'est sur chaque semaine, le planning change avec un roulement de ces personnes.
Exemple :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 if ($currentweek == 39) { $tech1 = "Alexandre"; $tech2 = "Sandrine"; $tech3 = "Xavier"; $tech4 = "Stephane"; $tech5 = "Aurelien"; $tech6 = "Anthony"; } if ($currentweek == 40) { $tech1 = "Anthony"; $tech2 = "Alexandre"; $tech3 = "Sandrine"; $tech4 = "Xavier"; $tech5 = "Aurelien"; $tech6 = "Anthony"; } ...
Le roulement se répète toutes les 6 semaines.
Est-il possible de faire un algorithme pour faire ce roulement ?
Partager