Révision e003fd32
b/index.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
setlocale(LC_TIME, "fr_FR"); |
3 |
$lstJours = array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"); |
|
4 |
$lstMois = array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); |
|
5 | 3 |
$lstFeries = array( |
6 | 4 |
"jourDeLAn" => array(1, 1, "jour de l'an"), |
7 | 5 |
"rameaux" => array(0, 0, "les Rameaux"), |
... | ... | |
86 | 84 |
} |
87 | 85 |
for ($m = 6*$s-5; $m <= 6*$s; $m++) { |
88 | 86 |
if ($j == 0) { |
89 |
echo "\t\t\t\t<th id=\"mois$m\">".$lstMois[$m-1]."</th>\n"; |
|
87 |
$ts = strtotime("$year-$m-1"); |
|
88 |
echo "\t\t\t\t<th id=\"mois$m\">".strftime("%B", $ts)."</th>\n"; |
|
90 | 89 |
$lastDay = 29; |
91 | 90 |
while (checkdate($m, $lastDay, $year)) $lastDay++; |
92 | 91 |
$last[$m] = $lastDay-1; |
93 | 92 |
} else { |
94 | 93 |
$ts = strtotime("$year-$m-$j"); |
95 |
$weekDay = $lstJours[date("w", $ts)]; |
|
94 |
$weekDay = strftime("%A", $ts); |
|
96 | 95 |
$abrvDay = strftime("%a", $ts); |
97 | 96 |
if ($j <= $last[$m]) { |
98 | 97 |
$classFerie = ""; |
Formats disponibles : Unified diff