diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-10-27 03:37:19 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-10-27 03:37:19 +0000 |
commit | 82aca39c0a2b98f52a19ca49ab322cfb53fa5155 (patch) | |
tree | 444be8e8f29d8aa613499430b14a106c0f202cb7 | |
parent | 56a3b982a8ff3557bd908235672f36067a0d4d21 (diff) | |
download | phpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.tar.gz phpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.tar.bz2 phpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.zip |
Day and Month printer view now work.
-rw-r--r-- | month_bottom.php | 2 | ||||
-rw-r--r-- | print.php | 4 | ||||
-rw-r--r-- | sidebar.php | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/month_bottom.php b/month_bottom.php index 4f1647a..24a9801 100644 --- a/month_bottom.php +++ b/month_bottom.php @@ -216,7 +216,7 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$today_today&printview=$current_view\">$goprint_lang</a>"; ?></td> + <td colspan="6" class="G10B"><?php echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a>"; ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> @@ -13,7 +13,7 @@ $end_week_time = $start_week_time + (6 * 25 * 60 * 60); $start_week = localizeDate($dateFormat_week, $start_week_time); $end_week = localizeDate($dateFormat_week, $end_week_time); $parse_month = date ("Ym", strtotime($getdate)); -$rssview = $HTTP_GET_VARS['rssview']; +$printview = $HTTP_GET_VARS['printview']; $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; @@ -51,7 +51,7 @@ $events_week = 0; // Pull out only this months ereg ("([0-9]{6})([0-9]{2})", $key, $regs); - if ($regs[1] == $parse_month) { + if ((($regs[1] == $parse_month) && ($printview == "month")) || (($key == $getdate) && ($printview == "day"))) { $dayofmonth = strtotime ($key); $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); echo "<tr><td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\"></td>\n"; diff --git a/sidebar.php b/sidebar.php index 75ae58d..b4ef667 100644 --- a/sidebar.php +++ b/sidebar.php @@ -60,7 +60,7 @@ </tr> <tr> <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td> - <td colspan="6" class="G10B"><?php echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$today_today&printview=$current_view\">$goprint_lang</a>"; ?></td> + <td colspan="6" class="G10B"><?php echo "<a class=\"psf\" href=\"print.php?cal=$cal&getdate=$getdate&printview=$current_view\">$goprint_lang</a>"; ?></td> </tr> <tr> <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td> |