#!perl BEGIN { chdir('..'); } our $header_color = "#eeeeee"; our $non_period_color = "#eeeeee"; our $bgcolor_today = "beige"; our $bgcolor_other_days = "white"; our $cell_width = 110; our $cell_width_banner = 60; our $cell_width_banner_recess = 10; our $cell_padding = 2; our $cell_padding_banner = 1; our $font_size_subject = +0; our $font_size_room = -1; our $font_size_teacher_or_form = -2; our $font_size_banner = -2; our $sep_color = "gray"; our $bgcolor_duty = "#ffc0c0"; our $bgcolor_recess = $header_color; our $sep = qq{
$name1 $name2 | \n};
print qq{}; selectors(); print " | "; } print qq{
}; $wday = 0; for (@$days) { my $x = $_; day_vars(); if ($is_today) { $x = "$x"; } else { $bgcolor = $header_color; } !$banner and print qq{ | $x | }; ++$wday; } !$banner and print "|
---|---|---|
}.nbspify($period_display)." | \n"; } $wday = 0; for my $day (@$days) { day_vars(); if (!$banner || $is_today) { my $entry = $tt{$day}{$period}; my $is_sep = $banner && !$is_class && !$entry; if (!$is_sep) { if ($banner) { $cell_width = $is_class ? $cell_width_banner : $cell_width_banner_recess; } if (!$is_class) { $bgcolor = $entry ? $bgcolor_duty : $bgcolor_recess; } print qq{};
if ($entry) {
my ($subject, $room, $teacher_or_form) = @$entry;
$subject = subject_abbrev($subject);
for ($subject, $room, $teacher_or_form) { $_ = nbspify($_); }
font_size($subject, $font_size_subject);
font_size($room, $font_size_room);
font_size($teacher_or_form, $font_size_teacher_or_form);
print "$subject";
print " ", left_right($room, $teacher_or_form) if $is_class; } else { print " "; } print " | \n";
}
if ($is_sep && !$last_was_sep && $period !~ /^bus duty$/i) {
print qq{$sep}; #}; $last_was_sep = 1; } else { $last_was_sep = 0; } } ++$wday; } !$banner and print " |