version 1.11, 2016/11/03 12:54:10
|
version 1.13, 2018/10/30 13:53:00
|
Line 33 my %post_in = ( );
|
Line 33 my %post_in = ( );
|
my %opts = &fetchOptions( ); |
my %opts = &fetchOptions( ); |
my @list = ( ); |
my @list = ( ); |
my @months = qw/ January February March April May June July |
my @months = qw/ January February March April May June July |
August September October November December /; |
August September October November December /; |
my %holidays = ( |
my %holidays = ( |
"Easter Sunday" => 'even', |
"Easter Sunday" => 'even', |
"Christmas Day" => 'even', |
"Christmas Day" => 'even', |
Line 51 my %specials = (
|
Line 51 my %specials = (
|
"11/28" => "even", |
"11/28" => "even", |
"5/6" => "odd", |
"5/6" => "odd", |
); |
); |
|
|
|
print "Content-type: text/html\n\n"; |
|
print &header( ); |
|
|
|
|
## Change this @weekend to 'qw/ 2011 8 12 /' for original schedule |
## Change this @weekend to 'qw/ 2011 8 12 /' for original schedule |
my @weekend = qw/ 2011 8 19 /; |
my @weekend = qw/ 2011 8 19 /; |
my %weekends = &calcWeekends( @weekend ); |
my %weekends = &calcWeekends( @weekend ); |
|
|
&ReadParse( ); |
&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 ); |
my $YEAR = sprintf( "%d", $yr ); |
push @list, 'Easter Sunday' if ( $YEAR % 2 == 0 ); |
push @list, 'Easter Sunday' if ( $YEAR % 2 == 0 ); |
|
|
print "Content-type: text/html\n\n"; |
|
print &header( ); |
|
print &css( ); |
print &css( ); |
my $year_us = Date::Pcalendar::Year->new( $YEAR, $Profiles->{'US-FL'} ); |
my $year_us = Date::Pcalendar::Year->new( $YEAR, $Profiles->{'US-FL'} ); |
my @hdays = $year_us->labels( ); |
my @hdays = $year_us->labels( ); |
Line 112 for( my $month = 1; $month <= 12; $month
|
Line 115 for( my $month = 1; $month <= 12; $month
|
$row++; |
$row++; |
} |
} |
print "</tr></table>"; |
print "</tr></table>"; |
print "<p class=\"Legend\">Holidays I have Connor are in <font color=red>Red</font>\n</br>"; |
print "<p class=\"Legend\">Holidays Connor visits are in <font color=red>Red</font>\n</br>"; |
print "Today is <font color=blue>Blue</font>\n</br>"; |
print "Today is <font color=blue>Blue</font>\n</br>"; |
print "Weekends and special days I have Connor are in <font color=green>Green</font>\n</p>"; |
print "Weekends and special days Connor visits are in <font color=green>Green</font>\n</p>"; |
|
|
|
|
print "<table width=35% align=center border=0><tr><td>List of Special/Holidays " . |
print "<table width=35% align=center border=0><tr><td>List of Special/Holidays " . |
"I have Connor:<br /><p class=Legend>"; |
"Connor Visits:<br /><p class=Legend>"; |
print map { $_ . "<br />\n" } sort @list; |
print map { $_ . "<br />\n" } sort @list; |
print "</p></td></tr></table>\n"; |
print "</p></td></tr></table>\n"; |
print "</pre><p class=\"footer\">Version: <font color=green>$VERSION</font><br />"; |
print "</pre><p class=\"footer\">Version: <font color=green>$VERSION</font><br />"; |
Line 196 sub calcWeekends
|
Line 199 sub calcWeekends
|
my $d = shift; |
my $d = shift; |
my %weekends = ( ); |
my %weekends = ( ); |
|
|
print "Weekends I have Connor:\n"; |
print "Weekends Connor Visits:\n"; |
|
|
use Calendar; |
use Calendar; |
my $date = Calendar->new_from_Gregorian( $m, $d, $y ); |
my $date = Calendar->new_from_Gregorian( $m, $d, $y ); |