\n"; // Show all available areas echo make_area_select_html('day.php', $area, $year, $month, $day); // Draw the three month calendars if (!$display_calendar_bottom) { minicals($year, $month, $day, $area, $room, 'day'); } echo "\n"; //y? are year, month and day of yesterday //t? are year, month and day of tomorrow // find the last non-hidden day $d = $day; do { $d--; $i= mktime(12,0,0,$month,$d,$year); } while (is_hidden_day(date("w", $i)) && ($d > $day - 7)); // break the loop if all days are hidden $yy = date("Y",$i); $ym = date("m",$i); $yd = date("d",$i); // find the next non-hidden day $d = $day; do { $d++; $i= mktime(12, 0, 0, $month, $d, $year); } while (is_hidden_day(date("w", $i)) && ($d < $day + 7)); // break the loop if all days are hidden $ty = date("Y",$i); $tm = date("m",$i); $td = date("d",$i); // Show current date and timezone echo "
\n"; echo "

" . utf8_strftime($strftime_format['date'], $timestamp) . "

\n"; if ($display_timezone) { echo "
"; echo get_vocab("timezone") . ": " . date('T', $timestamp) . " (UTC" . date('O', $timestamp) . ")"; echo "
\n"; } echo "
\n"; // Generate Go to day before and after links $href_before = "day.php?area=$area$room_param&year=$yy&month=$ym&day=$yd"; $href_now = "day.php?area=$area$room_param"; $href_after = "day.php?area=$area$room_param&year=$ty&month=$tm&day=$td"; $before_after_links_html = " \n"; // and output them echo $before_after_links_html; echo "\n"; echo $inner_html; echo "
\n"; echo $before_after_links_html; show_colour_key(); // Draw the three month calendars if ($display_calendar_bottom) { minicals($year, $month, $day, $area, $room, 'day'); } output_trailer();