diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-10-05 06:43:42 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-10-05 06:43:42 +0000 |
commit | 0d8ef88923d9490374fdf6fef328929956f26559 (patch) | |
tree | e4357e40814449d53401e1127e5d71355c1f0aea | |
parent | 7856c7ea0ed134c4dfee5c9ae2b4e7e2f9ab8b79 (diff) | |
download | phpicalendar-0d8ef88923d9490374fdf6fef328929956f26559.tar.gz phpicalendar-0d8ef88923d9490374fdf6fef328929956f26559.tar.bz2 phpicalendar-0d8ef88923d9490374fdf6fef328929956f26559.zip |
More style sheet tweeks, i think everything is in.
-rw-r--r-- | day.php | 23 | ||||
-rw-r--r-- | event.php | 2 | ||||
-rw-r--r-- | month.php | 22 | ||||
-rw-r--r-- | month_bottom.php | 26 | ||||
-rw-r--r-- | sidebar.php | 36 | ||||
-rw-r--r-- | styles/silver/default.css | 114 | ||||
-rw-r--r-- | week.php | 12 |
7 files changed, 101 insertions, 134 deletions
@@ -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)]) { <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> - <td align="right" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$yesterdays_date.'"><img src="styles/'.$style_sheet.'/left_day.gif" alt="" width="28" height="28" border="0" align="right"></a>'; ?></td> + <td align="right" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$yesterdays_date.'"><img src="styles/'.$style_sheet.'/left_day.gif" alt="" border="0" align="right"></a>'; ?></td> <td align="center" width="20%" class="navback" nowrap valign="middle"><font class="H20"><?php echo $display_date; ?></font></td> - <td align="left" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$tomorrows_date.'"><img src="styles/'.$style_sheet.'/right_day.gif" alt="" width="28" height="28" border="0" align="left"></a>'; ?></td> + <td align="left" width="40%" class="navback"><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$tomorrows_date.'"><img src="styles/'.$style_sheet.'/right_day.gif" alt="" border="0" align="left"></a>'; ?></td> </tr> </table> </td> <td align="right" width="90" class="navback"> <table width="90" border="0" cellpadding="0" cellspacing="0"> <tr> - <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/day_on.gif" width="30" height="24" alt=""></td>'; ?> - <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/week_on.gif" width="30" height="24" alt=""></td>'; ?> - <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/month_on.gif" width="30" height="24" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/day_on.gif" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/week_on.gif" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/month_on.gif" alt=""></td>'; ?> </tr> </table> </td> @@ -54,7 +54,7 @@ $calendar_name2 = str_replace('\\', '', $calendar_name2); <table border="0" width="430" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" width="98%" class="sideback"><font class="G10B"><b><?php echo "$calendar_name2 $calendar_lang"; ?></b></font></td> + <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$calendar_name2 $calendar_lang"; ?></font></td> <td align="right" valign="top" width="1%" class="sideback"></td> </tr> <tr> @@ -97,7 +97,7 @@ </tr> <tr> <td align="center" valign="top"> - <table width="100%" border="0" cellspacing="1" cellpadding="0" class="G10B" bgcolor="#A1A5A9"> + <table width="100%" border="0" cellspacing="1" cellpadding="0" class="monthback"> <tr> <?php $sunday = strtotime("$start_month_day"); @@ -109,21 +109,21 @@ $daylink = date ("Ymd", $sunday); $check_month = date ("m", $sunday); if ($check_month != $this_month) { - $day= "<font color=\"#666666\">$day"; - $bgcolor="#F2F2F2"; + $day= "<font class=\"G10G\">$day</font>"; + $bgclass="class=\"monthoff\""; } else { if ($getdate == $daylink) { - $bgcolor="#F2F9FF"; + $bgclass="class=\"monthon\""; } else { - $bgcolor="#FFFFFF"; + $bgclass="class=\"monthreg\""; } } if ($i == 0) echo "<tr height=\"105\">\n"; if (isset($master_array[("$daylink")]) && ($check_month == $this_month)) { - echo "<td align=\"center\" valign=\"top\" bgcolor=\"$bgcolor\" width=\"105\" height=\"105\">\n"; + echo "<td align=\"center\" valign=\"top\" $bgclass width=\"105\" height=\"105\">\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"; echo "<tr>\n"; - echo "<td align=\"right\" valign=\"top\">\n"; + echo "<td align=\"right\" valign=\"top\" class=\"G10B\">\n"; echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; echo "</tr>\n"; @@ -148,7 +148,7 @@ echo "<td>\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"; echo "<tr>\n"; - echo "<td>\n"; + echo "<td class=\"G10B\">\n"; if (!isset($val["event_start"])) { $event_start = 'All'; $event_end = 'Day'; @@ -169,10 +169,10 @@ echo "</table>\n"; echo "</td>\n"; } else { - echo "<td align=\"center\" valign=\"top\" bgcolor=\"$bgcolor\" width=\"105\" height=\"105\">\n"; + echo "<td align=\"center\" valign=\"top\" $bgclass width=\"105\" height=\"105\">\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"; echo "<tr>\n"; - echo "<td align=\"right\" valign=\"top\">\n"; + echo "<td align=\"right\" valign=\"top\" class=\"G10B\">\n"; echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n"; echo "</td>\n"; echo "</tr>\n"; @@ -196,7 +196,7 @@ <?php include "./month_bottom.php"; ?> <br> -<?php echo "<font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/\">PHP iCalendar $version_lang</a></font>"; ?></center></td> +<?php echo '<font class="V9"><br>'.$powered_by_lang.' <a class="psf" href="http://phpicalendar.sourceforge.net/">PHP iCalendar '.$version_lang.'</a></font>'; ?> </center> </body> </html> 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 @@ <table width="160" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></b></td> + <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></font></td> <td align="right" valign="top" width="1"></td> </tr> <tr> @@ -46,7 +46,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n"; + print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\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= "<font class=\"G10B\">$day</font>"; + if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>"; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; @@ -112,28 +112,28 @@ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%"> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><b><?php echo "$jump_lang"; ?></b></td> + <td colspan="6"><font class="G10BOLD"><?php echo "$jump_lang"; ?></font></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="3"></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_icals.php'); ?></td> + <td colspan="6"><?php include('./functions/list_icals.php'); ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_months.php'); ?></td> + <td colspan="6"><?php include('./functions/list_months.php'); ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_weeks.php'); ?></td> + <td colspan="6"><?php include('./functions/list_weeks.php'); ?></td> </tr> <?php if ($display_custom_goto == "yes") { @@ -173,7 +173,7 @@ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%"> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><b><?php echo "$cal_displayname2"; ?></b></td> + <td colspan="6"><font class="G10BOLD"><?php echo "$cal_displayname2"; ?></font></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="3"></td> @@ -201,13 +201,13 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$subscribe_path\"><img src=\"styles/$style_sheet/smallicon.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td> + <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$subscribe_path\"><img src=\"styles/$style_sheet/smallicon.gif\" alt=\"\" border=\"0\" align=\"middle\"></a>"; ?></td> <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td> <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a>"; ?></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$filename\"><img src=\"styles/$style_sheet/download_arrow.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td> + <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$filename\"><img src=\"styles/$style_sheet/download_arrow.gif\" alt=\"\" border=\"0\" align=\"middle\"></a>"; ?></td> <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td> <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> </tr> @@ -232,7 +232,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></b></td> + <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></font></td> <td align="right" valign="top" width="1"></td> </tr> <tr> @@ -253,7 +253,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n"; + print "<td align=\"center\"><font class=\"G10BOLD\">$day</font></td>\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= "<font class=\"G10B\">$day</font>"; + if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>"; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; diff --git a/sidebar.php b/sidebar.php index c231a9f..b12628d 100644 --- a/sidebar.php +++ b/sidebar.php @@ -14,7 +14,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td> - <td align="center" width="112" class="sideback"><font class="G10B"><b><?php echo "$thisday2"; ?></b></font></td> + <td align="center" width="112" class="sideback"><font class="G10BOLD"><?php echo "$thisday2"; ?></font></td> <td align="right" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td> </tr> <tr> @@ -25,7 +25,7 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><b><?php echo "$cal_displayname2"; ?></b></td> + <td colspan="6"><font class="G10BOLD"><?php echo "$cal_displayname2"; ?></font></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="3"></td> @@ -53,13 +53,13 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$subscribe_path\"><img src=\"styles/$style_sheet/smallicon.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td> + <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$subscribe_path\"><img src=\"styles/$style_sheet/smallicon.gif\" alt=\"\" border=\"0\" align=\"middle\"></a>"; ?></td> <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td> <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a>"; ?></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$filename\"><img src=\"styles/$style_sheet/download_arrow.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td> + <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$filename\"><img src=\"styles/$style_sheet/download_arrow.gif\" alt=\"\" border=\"0\" align=\"middle\"></a>"; ?></td> <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td> <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> </tr> @@ -80,7 +80,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" width="98%" class="sideback"><font class="G10B"><b><?php echo "$jump_lang"; ?></b></font></td> + <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$jump_lang"; ?></font></td> <td align="right" valign="top" width="1%" class="sideback"></td> </tr> <tr> @@ -91,21 +91,21 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_icals.php'); ?></td> + <td colspan="6"><?php include('./functions/list_icals.php'); ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_months.php'); ?></td> + <td colspan="6"><?php include('./functions/list_months.php'); ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php include('./functions/list_weeks.php'); ?></td> + <td colspan="6"><?php include('./functions/list_weeks.php'); ?></td> </tr> <?php if ($display_custom_goto == "yes") { @@ -141,7 +141,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="1%" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" width="98%" class="sideback"><font class="G10B"><b><?php echo "$tomorrows_lang"; ?></b></font></td> + <td align="center" width="98%" class="sideback"><font class="G10BOLD"><?php echo "$tomorrows_lang"; ?></font></td> <td align="right" valign="top" width="1%" class="sideback"></td> </tr> <tr> @@ -205,7 +205,7 @@ <tr> <td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" class="sideback"><b><font class="G10B"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></b></font></td> + <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></font></td> <td align="right" valign="top" width="1" class="sideback"></td> </tr> <tr> @@ -226,7 +226,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n"; + print "<td align=\"center\" class=\"G10BOLD\">$day</td>\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= "<font class=\"G10B\">$day</font>"; + if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>"; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; @@ -285,7 +285,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime($getdate))); ?></b></font></td> + <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime($getdate))); ?></font></td> <td align="right" valign="top" width="1" class="sideback"></td> </tr> <tr> @@ -306,7 +306,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n"; + print "<td align=\"center\" class=\"G10BOLD\">$day</td>\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= "<font class=\"G10B\">$day</font>"; + if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>"; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\n"; @@ -365,7 +365,7 @@ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> <td align="left" valign="top" width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20"></td> - <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></b></font></td> + <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></font></td> <td align="right" valign="top" width="1" class="sideback"></td> </tr> <tr> @@ -386,7 +386,7 @@ for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $day = $daysofweekreallyshort_lang[$day_num]; - print "<td align=\"center\" class=\"G10B\"><b>$day</b></td>\n"; + print "<td align=\"center\" class=\"G10BOLD\">$day</td>\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= "<font class=\"G10B\">$day</font>"; + if ($check_month != $minical_month) $day= "<font class=\"G10G\">$day</font>"; if ($i == 0) echo "<tr>\n"; if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { echo "<td align=\"center\" class=\"G10B\">\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; }
@@ -78,18 +78,18 @@ for ($i=0;$i<7;$i++) { <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> - <td align="right" width="40%" class="navback"><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$prev_week\"><img src=\"styles/$style_sheet/left_day.gif\" alt=\"\" width=\"28\" height=\"28\" border=\"0\" align=\"right\"></a>"; ?></td> + <td align="right" width="40%" class="navback"><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$prev_week\"><img src=\"styles/$style_sheet/left_day.gif\" alt=\"\" border=\"0\" align=\"right\"></a>"; ?></td> <td align="center" width="20%" class="navback" nowrap valign="middle"><font class="H20"><?php echo $display_date; ?></font></td> - <td align="left" width="40%" class="navback"><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$next_week\"><img src=\"styles/$style_sheet/right_day.gif\" alt=\"\" width=\"28\" height=\"28\" border=\"0\" align=\"left\"></a>"; ?></td> + <td align="left" width="40%" class="navback"><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$next_week\"><img src=\"styles/$style_sheet/right_day.gif\" alt=\"\" border=\"0\" align=\"left\"></a>"; ?></td> </tr> </table> </td> <td align="right" width="90" class="navback"> <table width="90" border="0" cellpadding="0" cellspacing="0"> <tr> - <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/day_on.gif" width="30" height="24" alt=""></td>'; ?> - <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/week_on.gif" width="30" height="24" alt=""></td>'; ?> - <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/month_on.gif" width="30" height="24" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="day.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/day_on.gif" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="week.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/week_on.gif" alt=""></td>'; ?> + <td><?php echo '<a class="psf" href="month.php?cal='.$cal.'&getdate='.$getdate.'"><img src="styles/'.$style_sheet.'/month_on.gif" alt=""></td>'; ?> </tr> </table> </td> @@ -328,7 +328,7 @@ for ($i=0;$i<7;$i++) { </td> <td width="20"><img src="images/spacer.gif" width="20" height="1" alt=""></td> <td width="160" valign="top"><?php include('./sidebar.php'); ?><center> - <?php echo "<font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/\">PHP iCalendar $version_lang</a></font>"; ?></center></td> + <?php echo '<font class="V9"><br>'.$powered_by_lang.' <a class="psf" href="http://phpicalendar.sourceforge.net/">PHP iCalendar '.$version_lang.'</a></font>'; ?></center></td> </tr> </table> </center> |