From 0d8ef88923d9490374fdf6fef328929956f26559 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sat, 5 Oct 2002 06:43:42 +0000 Subject: More style sheet tweeks, i think everything is in. --- day.php | 23 ++-------- event.php | 2 +- month.php | 22 ++++----- month_bottom.php | 26 +++++------ sidebar.php | 36 +++++++-------- styles/silver/default.css | 114 +++++++++++++++++++--------------------------- week.php | 12 ++--- 7 files changed, 101 insertions(+), 134 deletions(-) diff --git a/day.php b/day.php index b76b999..03a1c63 100644 --- a/day.php +++ b/day.php @@ -34,19 +34,6 @@ $this_day = $day_array2[3]; $this_month = $day_array2[2]; $this_year = $day_array2[1]; -$date = strtotime($getdate); -$month1 = date('m', DateAdd ('m', '-1', $date)); -$month2 = date('m', $date); -$month3 = date('m', DateAdd ('m', '+1', $date)); -$year1 = date('Y', DateAdd ('m', '-1', $date)); -$year2 = date('Y', $date); -$year3 = date('Y', DateAdd ('m', '+1', $date)); -$first_sunday1 = sundayOfWeek($year1, $month1, '1'); -$first_sunday2 = sundayOfWeek($year2, $month2, '1'); -$first_sunday3 = sundayOfWeek($year3, $month3, '1'); -$display_month1 = localizeDate ($dateFormat_month, strtotime('-1 month', $date)); -$display_month2 = localizeDate ($dateFormat_month, $date); -$display_month3 = localizeDate ($dateFormat_month, strtotime('+1 month', $date)); $parse_month = date ('Ym', $date); $thisday2 = localizeDate($dateFormat_week_list, $date); @@ -87,18 +74,18 @@ if ($master_array[($getdate)]) { - + - +
- '; ?> - '; ?> - '; ?> + '; ?> + '; ?> + '; ?>
diff --git a/event.php b/event.php index 52f40c8..4dfbc81 100644 --- a/event.php +++ b/event.php @@ -54,7 +54,7 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2); - + diff --git a/month.php b/month.php index 9a228fc..2aa0ccf 100644 --- a/month.php +++ b/month.php @@ -97,7 +97,7 @@
- +
$day"; - $bgcolor="#F2F2F2"; + $day= "$day"; + $bgclass="class=\"monthoff\""; } else { if ($getdate == $daylink) { - $bgcolor="#F2F9FF"; + $bgclass="class=\"monthon\""; } else { - $bgcolor="#FFFFFF"; + $bgclass="class=\"monthreg\""; } } if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $this_month)) { - echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo "\n"; @@ -148,7 +148,7 @@ echo "\n"; } else { - echo "
\n"; + echo "\n"; echo "$day\n"; echo "
\n"; echo "\n"; echo "\n"; - echo "
\n"; + echo "\n"; if (!isset($val["event_start"])) { $event_start = 'All'; $event_end = 'Day'; @@ -169,10 +169,10 @@ echo "
\n"; echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; echo "\n"; @@ -196,7 +196,7 @@
-
$powered_by_lang PHP iCalendar $version_lang"; ?> +
'.$powered_by_lang.' PHP iCalendar '.$version_lang.''; ?> diff --git a/month_bottom.php b/month_bottom.php index 9726c24..f9401d9 100644 --- a/month_bottom.php +++ b/month_bottom.php @@ -25,7 +25,7 @@
\n"; + echo "\n"; echo "$day\n"; echo "
- + @@ -46,7 +46,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "\n"; + print "\n"; $start_day = ($start_day + (24.5 * 60 * 60)); } ?> @@ -67,7 +67,7 @@ $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day= "$day"; + if ($check_month != $minical_month) $day= "$day"; if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "
$day$day
\n"; @@ -112,28 +112,28 @@ - + - + - + - + - + @@ -201,13 +201,13 @@ - + - + @@ -232,7 +232,7 @@
\"\""; ?>\"\""; ?> $subscribe_lang"; ?>
\"\""; ?>\"\""; ?> $download_lang"; ?>
- + @@ -253,7 +253,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "\n"; + print "\n"; $start_day = ($start_day + (24.5 * 60 * 60)); } ?> @@ -274,7 +274,7 @@ $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day= "$day"; + if ($check_month != $minical_month) $day= "$day"; if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "
$day$day
\n"; diff --git a/sidebar.php b/sidebar.php index c231a9f..b12628d 100644 --- a/sidebar.php +++ b/sidebar.php @@ -14,7 +14,7 @@ - + @@ -25,7 +25,7 @@ - + @@ -53,13 +53,13 @@ - + - + @@ -80,7 +80,7 @@
\"right\""; ?> \"right\""; ?>
\"\""; ?>\"\""; ?> $subscribe_lang"; ?>
\"\""; ?>\"\""; ?> $download_lang"; ?>
- + @@ -91,21 +91,21 @@ - + - + - + - + @@ -205,7 +205,7 @@ - + @@ -226,7 +226,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "\n"; + print "\n"; $start_day = ($start_day + (24.5 * 60 * 60)); } ?> @@ -247,7 +247,7 @@ $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day= "$day"; + if ($check_month != $minical_month) $day= "$day"; if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "
$day$day
\n"; @@ -285,7 +285,7 @@ - + @@ -306,7 +306,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "\n"; + print "\n"; $start_day = ($start_day + (24.5 * 60 * 60)); } ?> @@ -327,7 +327,7 @@ $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day= "$day"; + if ($check_month != $minical_month) $day= "$day"; if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "
$day$day
\n"; @@ -365,7 +365,7 @@ - + @@ -386,7 +386,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "\n"; + print "\n"; $start_day = ($start_day + (24.5 * 60 * 60)); } ?> @@ -407,7 +407,7 @@ $day = date ("j", $start_day); $daylink = date ("Ymd", $start_day); $check_month = date ("m", $start_day); - if ($check_month != $minical_month) $day= "$day"; + if ($check_month != $minical_month) $day= "$day"; if ($i == 0) echo "\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo " @@ -328,7 +328,7 @@ for ($i=0;$i<7;$i++) { +
'.$powered_by_lang.' PHP iCalendar '.$version_lang.''; ?>
$day$day
\n"; diff --git a/styles/silver/default.css b/styles/silver/default.css index 627e298..89d7bb1 100644 --- a/styles/silver/default.css +++ b/styles/silver/default.css @@ -1,76 +1,56 @@ /* Style sheet for the silver calendar (default) */ -.eventborder { background-color: #336699; border: 1px #006699 solid; } -.eventbg { background-color: #6699CC; } -.eventbg2 { background-color: #6699CC; border-right: 1px solid #FFFFFF; } -.eventbg2week { background-color: #6699CC; border-right: 1px solid #A1A5A9; } -.eventfont { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; } -.calborder { background-color: #FFFFFF; border: 1px #A1A5A9 solid; } -.dayborder { border-top: 1px solid #A1A5A9; } -.dayborder2 { border-top: 1px dashed #CCCCCC; } -.weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } -.weekborder2 { border-right: 1px solid #A1A5A9; } -.timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(time_bg.gif); } -.timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(time_bg.gif); } - -.navback { background-image: url(time_bg.gif); } -.sideback { background-image: url(side_bg.gif); } - -a.psf { - text-decoration: none; - } -a.psf:link { - color: #06f; - background-color: transparent; - } -a.psf:visited { - color: #06f; - background-color: transparent; - } -a.psf:active { - color: #36c; - background-color: transparent; - } -a.psf:hover { - color: #009; - background-color: transparent; - } - -a.ps2 { - text-decoration: underline; - } -a.ps2:link { - color: #06f; - background-color: transparent; - } -a.ps2:visited { - color: #06f; - background-color: transparent; - } -a.ps2:active { - color: #36c; - background-color: transparent; - } -a.ps2:hover { - color: #009; - background-color: transparent; - } +.eventborder { background-color: #336699; border: 1px #006699 solid; } +.eventbg { background-color: #6699CC; } +.eventbg2 { background-color: #6699CC; border-right: 1px solid #FFFFFF; } +.eventbg2week { background-color: #6699CC; border-right: 1px solid #A1A5A9; } +.calborder { background-color: #FFFFFF; border: 1px #A1A5A9 solid; } +.dayborder { border-top: 1px solid #A1A5A9; } +.dayborder2 { border-top: 1px dashed #CCCCCC; } +.weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } +.weekborder2 { border-right: 1px solid #A1A5A9; } +.timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(time_bg.gif); } +.timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(time_bg.gif); } +.navback { background-image: url(time_bg.gif); } +.sideback { background-image: url(side_bg.gif); } +.monthback { background-color: #A1A5A9; } +.monthreg { background-color: #FFFFFF; } +.monthoff { background-color: #F2F2F2; } +.monthon { background-color: #F2F9FF; } + +/* Link colors and attributes */ +/* This is the main link style */ +a.psf { text-decoration: none; } +a.psf:link { color: #0066ff; background-color: transparent; } +a.psf:visited { color: #0066ff; background-color: transparent; } +a.psf:active { color: #3366cc; background-color: transparent; } +a.psf:hover { color: #000099; background-color: transparent; } + +/* This is the link style for the mini-cals */ +a.ps2 { text-decoration: underline; } +a.ps2:link { color: #0066ff; background-color: transparent; } +a.ps2:visited { color: #0066ff; background-color: transparent; } +a.ps2:active { color: #3366cc; background-color: transparent; } +a.ps2:hover { color: #000099; background-color: transparent; } - -body { -background-color: #E5E5E5; -} +/* Body attributes */ + +body { background-color: #E5E5E5; } /* CSS definitions for fonts */ -.V9 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; } -.G10 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #06f; } -.G10B { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: black; } -.G10G { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #666; } -.V12 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } -.H20 { font-family: Helvetica, sans-serif; font-size: 18px; } +.V9 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; } +.V9BOLD { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; } +.G10 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #0066FF; } +.G10B { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } +.G10BOLD { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; } +.G10G { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #A1A5A9; } +.V12 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } +.H20 { font-family: Helvetica, sans-serif; font-size: 18px; } +.eventfont { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; } + +/* Length of the form drop downs */ -.query_style { font-size : 11px; font-family : verdana, geneva, arial, sans-serif; width: 146px; margin-bottom:0; } -.add_style { font-size : 12px; font-family : verdana, geneva, arial, sans-serif; width: 160px; } +.query_style { font-size : 11px; font-family : verdana, geneva, arial, sans-serif; width: 146px; margin-bottom:0; } diff --git a/week.php b/week.php index e0f0e11..92fa1f9 100644 --- a/week.php +++ b/week.php @@ -78,18 +78,18 @@ for ($i=0;$i<7;$i++) { - + - +
-
$powered_by_lang PHP iCalendar $version_lang"; ?>
-- cgit v1.2.3