';
if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
foreach ($master_array[("$daylink")] as $event_times) {
foreach ($event_times as $val) {
if (!isset($val["event_start"])) $image1 = '';
if (isset($val["event_start"])) $image2 = '';
}
}
if (isset($master_array[("$daylink")][-1])) $image2 = '';
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
echo '' . $day . '' . "\n";
echo ' | ' . "\n";
echo ' ' . "\n";
echo '' . "\n";
echo '' . $image1 . $image2 . ' | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
} elseif ($check_month == $minical_month) {
echo ' | ' . "\n";
echo '' . $day . ' | ' . "\n";
} else {
echo '' . "\n";
echo '' . $day . ' | ' . "\n";
}
$start_day = ($start_day + (24.5 * 60 * 60));
$i++;
$image1 = '';
$image2 = '';
if ($i == 7) {
echo '
';
$i = 0;
$checkagain = date ("m", $start_day);
if ($checkagain != $minical_month) $whole_month = FALSE;
}
} while ($whole_month == TRUE);
$startYear = strtotime ("+1 month", $startYear);
?>