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 /print.php | |
parent | 56a3b982a8ff3557bd908235672f36067a0d4d21 (diff) | |
download | phpicalendar-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"; |