From 3a4d086ec1d1b6a89d0b0f8ed6018d2080ca9f82 Mon Sep 17 00:00:00 2001 From: Jason Oster Date: Thu, 14 May 2009 21:45:44 +0000 Subject: Fix table column spanning and HTML errors in week view --- functions/template.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'functions') diff --git a/functions/template.php b/functions/template.php index 42cf1f5..a7f183c 100644 --- a/functions/template.php +++ b/functions/template.php @@ -348,7 +348,7 @@ class Page { $weekreplace .= $replace; } */ - $this->page = preg_replace('!<\!-- loop alldaysofweek on -->.*<\!-- loop alldaysofweek off -->!Uis', $weekreplace, $this->page); + $this->page = preg_replace('!<\!-- loop allday row on -->.*<\!-- loop allday row off -->!Uis', $weekreplace, $this->page); // Replaces the daysofweek preg_match("!<\!-- loop daysofweek on -->(.*)<\!-- loop daysofweek off -->!Uis", $this->page, $match1); @@ -461,8 +461,7 @@ class Page { $dayborder = 0; } $drawWidth = 1; - $colspan_width = round((80 / $nbrGridCols[$thisday]) * $drawWidth); - $weekdisplay .= ' '."\n"; + $weekdisplay .= ' '."\n"; } else { # have events $emptyWidth = $nbrGridCols[$thisday]; @@ -490,10 +489,9 @@ class Page { if ($event_status != '') { $confirmed .= ' '; } - $colspan_width = round((80 / $nbrGridCols[$thisday]) * $drawWidth); $event_temp = $loop_event; $event = openevent($thisday, $cal_time, $uid, $this_time_arr[$uid], $phpiCal_config->week_events_lines, 25, 'ps'); - $weekdisplay .= ''."\n"; + $weekdisplay .= ''."\n"; // Start drawing the event $event_temp = str_replace('{EVENT}', $event, $event_temp); @@ -704,8 +702,7 @@ class Page { $confirmed = ''; if (is_array($event_recur)) $confirmed .= ' '; if ($event_status != '') $confirmed .= ' '; - $colspan_width = round((460 / $nbrGridCols) * $drawWidth); - $daydisplay .= ''."\n"; + $daydisplay .= ''."\n"; // Start drawing the event $event_temp = $loop_event; -- cgit v1.2.3