--- ConnorCalendar/calendar.pl 2013/05/28 22:59:33 1.4
+++ ConnorCalendar/calendar.pl 2013/05/29 02:53:46 1.5
@@ -8,7 +8,7 @@
|
| Nicholas DeClario
| March 2009
-| $Id: calendar.pl,v 1.4 2013/05/28 22:59:33 nick Exp $
+| $Id: calendar.pl,v 1.5 2013/05/29 02:53:46 nick Exp $
|
+------------------------------------------------------------------------------
=end comment
@@ -26,14 +26,14 @@ use Calendar::Simple;
use Date::Calendar::Year qw( :all );
use Date::Calendar::Profiles qw( $Profiles );
-my $VERSION = q/$Id: calendar.pl,v 1.4 2013/05/28 22:59:33 nick Exp $/;
+my $VERSION = q/$Id: calendar.pl,v 1.5 2013/05/29 02:53:46 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 Novemeber December /;
+ August September October November December /;
my %holidays = (
"Christmas Day" => 'even',
"Christmas Eve" => 'odd',
@@ -59,8 +59,8 @@ my $yr = sprintf( "%d", $post_in{'cy'}
my $YEAR = sprintf( "%d", $yr );
print "Content-type: text/html\n\n";
-print "";
-print "Calendar Days I Have Connor";
+print &header( );
+print &css( );
print "Calendar for $YEAR
\n";
print "
Holidays I have Connor are in Red\n";
print "Today is Blue\n";
@@ -77,7 +77,7 @@ print "<-- $YEAR " .
"-->";
my $row = 0;
-print "";
+print "";
for( my $month = 1; $month <= 12; $month++ )
{
if ( $row >= 3 )
@@ -275,6 +275,223 @@ sub fetchOptions {
return %opts;
}
+sub header {
+ return <
+
+
+
+
+ Calendar Days Connor Visits
+
+
+EOF
+}
+
+sub css {
+ return <
+body {
+
+padding-top: 0px;
+padding-left: 0px;
+padding-right: 0px;
+padding-bottom: 0px;
+
+ text-align:left;
+ margin:0;
+ 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;
+ color:#000000;
+
+
+}
+
+.name {
+ color: #191970;
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ #font-family: Verdana, Arial, sans-serif;
+ font-size: 18pt; font-weight: bold; line-height: 38pt;
+ text-align: center;
+}
+
+h1 {
+ color: #191970;
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ #font-family: Verdana, Arial, sans-serif;
+ font-size: 12pt; font-weight: bold; line-height: 15pt;
+}
+
+
+h2 {
+ color: #191970;
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ font-weight: bold;
+ font-size: 18px;
+}
+
+h3 {
+ color: #191970;
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
+ font-weight: bold;
+ font-size: 14px;
+}
+
+
+textarea { width:100%; }
+
+.gallery {
+padding-top: 80px;
+padding-left: 60px;
+padding-right: 50px;
+line-height: 120%;
+background:url('topleft.jpg') no-repeat top left;
+}
+.browse {
+padding-top: 80px;
+padding-left: 60px;
+padding-right: 50px;
+line-height: 120%;
+background:url(topleft.jpg) no-repeat top left;
+}
+.content, .rc {
+padding-top: 100px;
+padding-left: 80px;
+padding-right: 50px;
+line-height: 120%;
+}
+
+
+.footer {
+padding-top: 10px;
+padding-left: 50px;
+padding-right: 50px;
+
+}
+
+
+.header {
+float: right;
+margin-top: 30px;
+margin-right: 50px;
+padding: 10px;
+padding-top: 10px,10px,10px,10px;
+
+}
+pre {
+ border: #777777 1px dashed;
+ padding: 0.5em;
+ margin-left: 1em;
+ margin-right: 2em;
+ white-space: pre;
+ background-color: #fbfdff;
+ color: black;
+ font-size:12px;
+}
+
+.refer {
+ padding-left: 60px;
+ padding-right: 50px;
+ margin-right: 50px;
+ margin-left: 50px;
+ font-size:80%;
+}
+
+.gotobar {
+ color: #191970;
+ font-size:10px;
+}
+
+.edit bar {
+ color: #949ce5;
+}
+
+.contactInfo {
+ font-size:12px;
+ text-align:center;
+}
+
+.workHeader {
+ text-align:left;
+ font-size:13px;
+ text-decoration:none;
+ font-weight:normal;
+}
+
+.workHeaderDate {
+ float: right;
+}
+
+.workHeaderStrong {
+ font-size:15px;
+ text-decoration:none;
+ font-weight:bolder;
+}
+
+.jobDescription {
+ padding-top:15px;
+ font-size:13px;
+}
+
+.bulletContent {
+ font-size:13px;
+}
+
+.leftCol {
+ width:10.2em;
+ position:absolute;
+ top:0;
+ font-size:13px;
+ padding-left:1%;
+ padding-right:1%;
+}
+
+.rightCol {
+ width:10.2em;
+ position:absolute;
+ top:0;
+ font-size:13px;
+ padding-left:1%;
+ padding-right:1%;
+}
+
+a:link {color:#082e58; text-decoration: none; font-weight:bolder;}
+a:visited {color:#7795b7; font-weight:normal; text-decoration:none;}
+a:hover {color:#949ce5;}
+
+
+a.definition:before { content:"[::"; }
+a.definition:after { content:"]"; }
+a.alias { text-decoration:none; border-bottom: thin dashed; }
+a.near:link { color:#093; }
+a.near:visited { color:#550; }
+a.upload:before { content:"<"; }
+a.upload:after { content:">"; }
+a.outside:before { content:"["; }
+a.outside:after { content:"]"; }
+img.logo { float: right; clear: right; border-style:none; }
+div.diff { padding-left:5%; padding-right:5%; }
+div.old { background-color:#FFFFAF; }
+div.new { background-color:#CFFFCF; }
+div.message { background-color:#FEE; }
+div.journal h1 { font-size:large; }
+table.history { border-style:none; }
+td.history { border-style:none; }
+span.result { font-size:larger; }
+span.info { font-size:smaller; font-style:italic; }
+div.rss { background-color:#EEF; }
+div.sister { float:left; margin-right:1ex; background-color:#FFF; }
+div.sister p { margin-top:0; }
+div.sister img { border:none; }
+div.near { background-color:#EFE; }
+div.near p { margin-top:0; }
+
+EOF
+
+}
+
__END__
=head1 NAME