aboutsummaryrefslogtreecommitdiffstats
path: root/print.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-27 03:37:19 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-27 03:37:19 +0000
commit82aca39c0a2b98f52a19ca49ab322cfb53fa5155 (patch)
tree444be8e8f29d8aa613499430b14a106c0f202cb7 /print.php
parent56a3b982a8ff3557bd908235672f36067a0d4d21 (diff)
downloadphpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.tar.gz
phpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.tar.bz2
phpicalendar-82aca39c0a2b98f52a19ca49ab322cfb53fa5155.zip
Day and Month printer view now work.
Diffstat (limited to 'print.php')
-rw-r--r--print.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/print.php b/print.php
index 9d34ed2..74832f0 100644
--- a/print.php
+++ b/print.php
@@ -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";

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