"; if(($mois <= $aryDateMaintenant[1]) and ($annee <= $aryDateMaintenant[2])) { echo "<"; }else{ if(intval($mois) == 1) echo "<"; else echo "<"; } echo " | "; echo $aryMois[intval($mois)]; echo " | "; if(intval($mois) == 12) echo ">"; else echo ">"; echo " | ||||
L | M | M | J | V | S | D |
"; // ... pour commencer a partir de notre premier jour calcule plus haut $j = $intPremierJour; for( $i=1 ; $i <= $intNbJoursDansMois ; $i ++ ) { echo " | "; if($i == intval($jour)) echo "$i"; else echo $i; echo " | "; // dernier jour de la semaine if($j == 7) { // on change de ligne if($i < $intNbJoursDansMois) { echo "|||||
"; // fin de la table echo " |