#!/usr/local/bin/perl print "Content-type: text/html\n\n"; use lib "/home/scsfac/downeyt/public/scripts"; use CGILib; use DB_File; my %query = get_query(); use constant DB_PATH => "/home/scsfac/downeyt/notes/"; my @monthArr = qw(January February March April May June July August September October November December); my %monthArr = qw(january 0 ffebruary 1 march 2 april 3 may 4 june 5 july 6 august 7 september 8 october 9 november 10 december 11); my %selected; $selected{$query{class}} = "selected"; $selected{$query{month}} = "selected"; $selected{$query{day}} = "selected"; $selected{$query{year}} = "selected"; print <
$content\n"; } else { print "
$courseName | \n"; $align = 0; foreach $month (sort sort_by_month keys %calMonth) { print "|
---|---|
$month | \n"; @day = split (/:/,$calMonth{$month}); shift @day; sort {$a <=> $b} @day; $pos = 0; foreach (@day) { if ($pos%2 == 0) { print "|
\n"; $align =0; $pos++; } print " | \n"; print ""; print "$_ | \n"; if ($pos%2 == 0) { print "