--- ConnorCalendar/calendar.pl 2016/11/03 12:54:10 1.11 +++ ConnorCalendar/calendar.pl 2018/10/30 13:53:00 1.13 @@ -8,7 +8,7 @@ | | Nicholas DeClario | March 2009 -| $Id: calendar.pl,v 1.11 2016/11/03 12:54:10 nick Exp $ +| $Id: calendar.pl,v 1.13 2018/10/30 13:53:00 nick Exp $ | +------------------------------------------------------------------------------ =end comment @@ -26,14 +26,14 @@ use Calendar::Simple; use Date::Pcalendar::Year qw( :all ); use Date::Pcalendar::Profiles qw( $Profiles ); -my $VERSION = '$Id: calendar.pl,v 1.11 2016/11/03 12:54:10 nick Exp $'; +my $VERSION = '$Id: calendar.pl,v 1.13 2018/10/30 13:53:00 nick Exp $'; my $DEBUG = ""; my $URL = "http://demandred.dyndns.org/cgi-bin/ConnorCalendar/index.cgi"; my %post_in = ( ); my %opts = &fetchOptions( ); my @list = ( ); my @months = qw/ January February March April May June July - August September October November December /; + August September October November December /; my %holidays = ( "Easter Sunday" => 'even', "Christmas Day" => 'even', @@ -51,18 +51,21 @@ my %specials = ( "11/28" => "even", "5/6" => "odd", ); + +print "Content-type: text/html\n\n"; +print &header( ); + + ## Change this @weekend to 'qw/ 2011 8 12 /' for original schedule my @weekend = qw/ 2011 8 19 /; my %weekends = &calcWeekends( @weekend ); &ReadParse( ); -my $yr = sprintf( "%d", $post_in{'cy'} ) || ( ( localtime )[5] + 1900 ); +my $yr = sprintf( "%d", $post_in{'cy'} || ( localtime )[5] + 1900 ); my $YEAR = sprintf( "%d", $yr ); push @list, 'Easter Sunday' if ( $YEAR % 2 == 0 ); -print "Content-type: text/html\n\n"; -print &header( ); print &css( ); my $year_us = Date::Pcalendar::Year->new( $YEAR, $Profiles->{'US-FL'} ); my @hdays = $year_us->labels( ); @@ -112,13 +115,13 @@ for( my $month = 1; $month <= 12; $month $row++; } print ""; -print "

Holidays I have Connor are in Red\n
"; +print "

Holidays Connor visits are in Red\n
"; print "Today is Blue\n
"; -print "Weekends and special days I have Connor are in Green\n

"; +print "Weekends and special days Connor visits are in Green\n

"; print "
List of Special/Holidays " . - "I have Connor:

"; + "Connor Visits:

"; print map { $_ . "
\n" } sort @list; print "

\n"; print "

Version: $VERSION
"; @@ -196,7 +199,7 @@ sub calcWeekends my $d = shift; my %weekends = ( ); - print "Weekends I have Connor:\n"; + print "Weekends Connor Visits:\n"; use Calendar; my $date = Calendar->new_from_Gregorian( $m, $d, $y );