Timetable


Calendar

Calendar

“;
for ($j = 0; $j < 7; $j++) {
echo “”;
}
echo ”

“;
}
?>

Sun Mon Tue Wed Thu Fri Sat
“;
if ($i === 0 && $j < $firstDayOfWeek) {
// empty cell before the first day of the month
} else if ($date > $daysInMonth) {
// empty cell after the last day of the month
} else {
$dateString = “$year-$month-$date”;
$isChecked = in_array($dateString, $selectedDates) ? ‘checked’ : ”;
echo ““;
$date++;
}
echo “
Selected dates: