aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-18 21:11:52 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-18 21:11:52 +0000
commit6aa513f5cd80c9d04d9c242b8b86f0966e5656c8 (patch)
treef41d8713fd1dc0f1b8aa85df8c4825c93e9d10f0
parenta34c8777a5c7f2112f7d03a86a1dc68e5b756143 (diff)
downloadphpicalendar-6aa513f5cd80c9d04d9c242b8b86f0966e5656c8.tar.gz
phpicalendar-6aa513f5cd80c9d04d9c242b8b86f0966e5656c8.tar.bz2
phpicalendar-6aa513f5cd80c9d04d9c242b8b86f0966e5656c8.zip
Added links to months in year view via a new style class. Update styles.
-rw-r--r--styles/green/default.css7
-rw-r--r--styles/grey/default.css7
-rw-r--r--styles/orange/default.css7
-rw-r--r--styles/red/default.css7
-rw-r--r--styles/silver/default.css7
-rw-r--r--year.php7
6 files changed, 40 insertions, 2 deletions
diff --git a/styles/green/default.css b/styles/green/default.css
index 0fc11ee..a7fc92d 100644
--- a/styles/green/default.css
+++ b/styles/green/default.css
@@ -36,6 +36,13 @@ a.ps2:link { color: #009900; background-color: transparent; }
a.ps2:visited { color: #009900; background-color: transparent; }
a.ps2:active { color: #009900; background-color: transparent; }
a.ps2:hover { color: #003300; background-color: transparent; }
+
+/* This is the link style for year months */
+a.ps3 { text-decoration: none; }
+a.ps3:link { color: #000000; background-color: transparent; }
+a.ps3:visited { color: #000000; background-color: transparent; }
+a.ps3:active { color: #000000; background-color: transparent; }
+a.ps3:hover { color: #000000; background-color: transparent; text-decoration: underline;}
/* Body attributes */
diff --git a/styles/grey/default.css b/styles/grey/default.css
index 48644b9..03189ef 100644
--- a/styles/grey/default.css
+++ b/styles/grey/default.css
@@ -36,6 +36,13 @@ 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; }
+
+/* This is the link style for year months */
+a.ps3 { text-decoration: none; }
+a.ps3:link { color: #000000; background-color: transparent; }
+a.ps3:visited { color: #000000; background-color: transparent; }
+a.ps3:active { color: #000000; background-color: transparent; }
+a.ps3:hover { color: #000000; background-color: transparent; text-decoration: underline;}
/* Body attributes */
diff --git a/styles/orange/default.css b/styles/orange/default.css
index 0b1608b..fd6a09a 100644
--- a/styles/orange/default.css
+++ b/styles/orange/default.css
@@ -36,6 +36,13 @@ 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; }
+
+/* This is the link style for year months */
+a.ps3 { text-decoration: none; }
+a.ps3:link { color: #000000; background-color: transparent; }
+a.ps3:visited { color: #000000; background-color: transparent; }
+a.ps3:active { color: #000000; background-color: transparent; }
+a.ps3:hover { color: #000000; background-color: transparent; text-decoration: underline;}
/* Body attributes */
diff --git a/styles/red/default.css b/styles/red/default.css
index 01040dc..cb403df 100644
--- a/styles/red/default.css
+++ b/styles/red/default.css
@@ -35,6 +35,13 @@ 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; }
+
+/* This is the link style for year months */
+a.ps3 { text-decoration: none; }
+a.ps3:link { color: #000000; background-color: transparent; }
+a.ps3:visited { color: #000000; background-color: transparent; }
+a.ps3:active { color: #000000; background-color: transparent; }
+a.ps3:hover { color: #000000; background-color: transparent; text-decoration: underline;}
/* Body attributes */
diff --git a/styles/silver/default.css b/styles/silver/default.css
index 2fa1299..42f9128 100644
--- a/styles/silver/default.css
+++ b/styles/silver/default.css
@@ -36,6 +36,13 @@ 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; }
+
+/* This is the link style for year months */
+a.ps3 { text-decoration: none; }
+a.ps3:link { color: #000000; background-color: transparent; }
+a.ps3:visited { color: #000000; background-color: transparent; }
+a.ps3:active { color: #000000; background-color: transparent; }
+a.ps3:hover { color: #000000; background-color: transparent; text-decoration: underline;}
/* Body attributes */
diff --git a/year.php b/year.php
index b53b681..2b514cd 100644
--- a/year.php
+++ b/year.php
@@ -77,8 +77,11 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time);
<table border="0" width="210" cellspacing="0" cellpadding="0">
<tr>
<td width="1" class="sideback"><img src="images/spacer.gif" width="1" height="20" alt=""></td>
- <?php $monthlink = date("Ymd", $startYear); ?>
- <td align="center" class="sideback" <?php echo 'onclick="window.location.href=\'month.php?cal=' . $cal . '&getdate=' . $monthlink . '\'">'; ?><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, $startYear)); ?></font></td>
+ <?php
+ $monthlink = date("Ym", $startYear);
+ $monthlink = $monthlink . $this_day;
+ ?>
+ <td align="center" class="sideback"><?php echo '<a class="ps3" "href="month.php?cal=' . $cal . '&getdate=' . $monthlink . '">'; ?><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, $startYear)); ?></font></a></td>
<td width="1" class="sideback"></td>
</tr>
</table>

© 2014-2024 Faster IT GmbH | imprint | privacy policy