diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-23 23:54:41 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-23 23:54:41 +0000 |
commit | e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa (patch) | |
tree | 4e51bc071b4c2e2de016df452153c9fc2d2da2fa /functions | |
parent | d2e66ee8e1ba370d561db9fd58de5f2dc4715674 (diff) | |
download | phpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.tar.gz phpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.tar.bz2 phpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.zip |
Month view works in print.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/template.php b/functions/template.php index 85d87ed..81615d5 100644 --- a/functions/template.php +++ b/functions/template.php @@ -18,8 +18,9 @@ class Page { global $template, $getdate, $cal, $master_array, $daysofweek_lang, $week_start_day, $printview, $dateFormat_day, $timeFormat, $week_start, $week_end, $lang; preg_match("!<\!-- loop events on -->(.*)<\!-- loop events off -->!is", $this->page, $match1); preg_match("!<\!-- switch some_events on -->(.*)<\!-- loop events on -->!is", $this->page, $match3); - $loop_event = trim($match1[1]); - $loop_day = trim($match3[1]); + $loop_event = trim($match1[1]); + $loop_day = trim($match3[1]); + $parse_month = date ("Ym", strtotime($getdate)); foreach($master_array as $key => $val) { preg_match ('/([0-9]{6})([0-9]{2})/', $key, $regs); @@ -29,7 +30,6 @@ class Page { $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); $events_tmp = $loop_event; $day_tmp = $loop_day; - //echo $dayofmonth; // Pull out each day foreach ($val as $new_val) { |