From 82aca39c0a2b98f52a19ca49ab322cfb53fa5155 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 27 Oct 2002 03:37:19 +0000 Subject: Day and Month printer view now work. --- month_bottom.php | 2 +- print.php | 4 ++-- 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 @@ - $goprint_lang"; ?> + $goprint_lang"; ?> 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 "\n"; diff --git a/sidebar.php b/sidebar.php index 75ae58d..b4ef667 100644 --- a/sidebar.php +++ b/sidebar.php @@ -60,7 +60,7 @@ - $goprint_lang"; ?> + $goprint_lang"; ?> -- cgit v1.2.3