AP LOGO

Pour info

Posté le 17/04/2008

 

 

Sem\n"; for ($i=0;$i<7;$i++) { echo"\n"; } ?> "; // calcul le numero de semaine $nb_day=date("z", mktime(0,0,0,$month,$cpt_day-$num_day+3,$year)); $val=intval($nb_day/7)+1; echo "\n"; // affiche les jours du mois for ($i=0;$i<7;$i++) { $theday=date("D", mktime(0,0,0,$month,$cpt_day-$num_day,$year)); $val=date("d", mktime(0,0,0,$month,$cpt_day-$num_day,$year)); $jourferie=calcul_joursferies($month,$cpt_day-$num_day,$year); $class="titrenum"; if (($theday=="Sun") or ($theday=="Sat")or ($jourferie)){ $class="titrewend";} if ($now==date("Y/m/d",mktime(0,0,0,$month,$cpt_day-$num_day,$year))){ $class="titrenow";} if ((($cpt_day-$num_day)<1) or (($cpt_day-$num_day)>$max_day)){ $class="titrenum2"; if (($theday=="Sun") or ($theday=="Sat")or ($jourferie)){ $class="titrewend2";} } $cpt_day++; echo "\n"; } echo ""; } ?>
$tabday[$i]
".(($val < 10) ? "0".$val : $val)."".$val."