--- ConnorCalendar/calendar.pl 2013/05/29 03:27:02 1.6 +++ ConnorCalendar/calendar.pl 2014/03/21 02:55:24 1.9 @@ -8,7 +8,7 @@ | | Nicholas DeClario | March 2009 -| $Id: calendar.pl,v 1.6 2013/05/29 03:27:02 nick Exp $ +| $Id: calendar.pl,v 1.9 2014/03/21 02:55:24 nick Exp $ | +------------------------------------------------------------------------------ =end comment @@ -26,7 +26,7 @@ use Calendar::Simple; use Date::Calendar::Year qw( :all ); use Date::Calendar::Profiles qw( $Profiles ); -my $VERSION = q/$Id: calendar.pl,v 1.6 2013/05/29 03:27:02 nick Exp $/; +my $VERSION = q/$Id: calendar.pl,v 1.9 2014/03/21 02:55:24 nick Exp $/; my $DEBUG = ""; my $URL = "http://demandred.dyndns.org/cgi-bin/ConnorCalendar/index.cgi"; my %post_in = ( ); @@ -35,13 +35,14 @@ my @list = ( ); my @months = qw/ January February March April May June July August September October November December /; my %holidays = ( + "Easter Sunday" => 'even', "Christmas Day" => 'even', "Christmas Eve" => 'odd', "Father's Day" => 'all', "Independence Day" => 'even', "Labor Day" => 'even', "Memorial Day" => 'odd', - "New Year's Day" => 'even', + "New Year's Day" => 'odd', "New Year's Eve" => 'odd', "Thanksgiving Day" => 'odd', ); @@ -57,21 +58,18 @@ my %weekends = &calcWeekends( @weekend ) 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( ); -print "

Calendar for $YEAR

\n"; my $year_us = Date::Calendar::Year->new( $YEAR, $Profiles->{'US-FL'} ); my @hdays = $year_us->labels( ); -#$DEBUG = "Holidays for $YEAR:\n"; -#foreach ( sort @hdays ) { $DEBUG .= $_ ."\n"; } - - -print "
<-- $YEAR " . - "-->
"; +print "

<-- " . + "Calendar Days Connor Visits for $YEAR" . + "-->

"; my $row = 0; print ""; for( my $month = 1; $month <= 12; $month++ ) @@ -118,10 +116,10 @@ print "Today is BlueGreen\n

"; -print "
List of Special/Holidays " . - "I have Connor:
";
-print map { $_ . "\n" } sort @list;
-print "
\n"; +print "
List of Special/Holidays " . + "I have Connor:

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

\n"; print "

Version: $VERSION
"; print "CVS: http://demandred.dyndns.org/cgi-bin/cvsweb/ConnorCalendar/"; print "

"; @@ -306,7 +304,7 @@ padding-bottom: 0px; font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; #font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12pt; - background:url(lowerright.jpg) no-repeat bottom right; + background: #eeeeee; color:#000000; @@ -325,7 +323,7 @@ p.Legend { font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; font-size: 8pt; margin: auto; - width: 28%; + width: 300px; background-color : transparent; border-top: 1px solid #888888; border-left: 1px solid #888888; @@ -394,7 +392,7 @@ p.footer { font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif; font-size: 8pt; margin: auto; - width: 48%; + width: 500px; background-color : transparent; border-top: 1px solid #888888; padding-top: 3px;