Calendar
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|
| $nbr");
$date_table = $nbr."-".$month ;
foreach ($data['dates'] as $date) {
if ($date['date'] === $date_table) {
echo " " . $date['name']; } } foreach ($_COOKIE as $nom_cookie => $valeur_cookie) { $cut = explode("-", $nom_cookie); if (count($cut) >= 3) { $rappelday = $cut[0]; $rappelmonth = $cut[1]; $rappelyear = $cut[2]; $rappel = ($rappelday == $nbr and $rappelmonth == $month and $rappelyear == $year) ? " $valeur_cookie" : ""; } else { $rappel = "error rappel"; } echo($rappel); } echo(" | ");
$nbr++;
}
for ($i=0; $i<5 ; $i++) {
echo("||||||
| $nbr");
$date_table = $nbr."-".$month ;
foreach ($data['dates'] as $date) {
if ($date['date'] === $date_table) {
echo " " . $date['name']; } } foreach ($_COOKIE as $nom_cookie => $valeur_cookie) { $cut = explode("-", $nom_cookie); if (count($cut) >= 3) { $rappelday = $cut[0]; $rappelmonth = $cut[1]; $rappelyear = $cut[2]; $rappel = ($rappelday == $nbr and $rappelmonth == $month and $rappelyear == $year) ? " $valeur_cookie" : ""; } else { $rappel = "error rappel"; } echo($rappel); } echo(" | ");
$nbr++;
}
echo("