find_periode(date('d.m.Y'));
$today_hidden=\HtmlInput::hidden('today', $today_periode);
} catch (\Exception $e) {
$today_hidden='';
}
?>
get_first_week_day();
$nDay=$nFirstDay;
for ($i=0;$i<=6;$i++){
echo "| ";
$nDay=($nDay>6)?0:$nDay;
echo ''.$week[$nDay].'';
echo ''.substr($week[$nDay],0,2).'';
$nDay++;
echo " | ";
}
?>
day) {
if ($nCol==0)
{
echo "";
}
$class="workday";
if ($week==0||$week==6)
{
$class="weekend";
}
// compute the date
$timestamp_date=mktime(0,0,0,$this->month,$ind,$this->year);
$date_calendar=date('w',$timestamp_date);
$st="";
if ($today_month==$this->month&&$today_day==$ind)
{
$st=' style="border:2px solid darkblue;background-color:hsl(199, 60%, 95%);" ';
}
if ( $date_calendar == $week ) {
echo '| '.''.$ind."";
echo ''.$cell[$ind].'';
echo ''.$cell[$ind].'';
echo ' | ';
$ind++;$week++;$nCol++;
} else {
echo " | ";
$week++;$nCol++;
}
//if ( $ind > $this->day ) exit();
if ( $nCol == 7 ) { echo "
";$nCol=0;}
if ( $week == 7 ) { $week=0;}
}
if ( $nCol != 0 ) { echo "";}
?>