aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-23 23:54:41 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-23 23:54:41 +0000
commite08fe020bc4643c7ea3b50b89e9c1717ec0a13aa (patch)
tree4e51bc071b4c2e2de016df452153c9fc2d2da2fa
parentd2e66ee8e1ba370d561db9fd58de5f2dc4715674 (diff)
downloadphpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.tar.gz
phpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.tar.bz2
phpicalendar-e08fe020bc4643c7ea3b50b89e9c1717ec0a13aa.zip
Month view works in print.
-rw-r--r--functions/template.php6
-rw-r--r--print.php1
-rw-r--r--templates/default/print.tpl2
3 files changed, 5 insertions, 4 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) {
diff --git a/print.php b/print.php
index 7892444..e899222 100644
--- a/print.php
+++ b/print.php
@@ -82,6 +82,7 @@ $page->replace_tags(array(
'style_select' => $style_select,
'l_time' => $lang['l_time'],
'l_summary' => $lang['l_summary'],
+ 'l_description' => $lang['l_description'],
'l_calendar' => $lang['l_calendar'],
'l_day' => $lang['l_day'],
'l_week' => $lang['l_week'],
diff --git a/templates/default/print.tpl b/templates/default/print.tpl
index c490b24..cb34c00 100644
--- a/templates/default/print.tpl
+++ b/templates/default/print.tpl
@@ -5,7 +5,7 @@
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
- <td align="left" width="400" class="navback"><div style="padding: 5px;"><h1>{DISPLAY_DATE}</h1><br /><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></div></td>
+ <td align="left" width="400" class="title"><h1>{DISPLAY_DATE}</h1><span class="V9G">{CALENDAR_NAME} {L_CALENDAR}</span></td>
<td valign="top" align="right" width="120" class="navback">
<div style="padding-top: 3px;">
<table width="90" border="0" cellpadding="0" cellspacing="0">

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