diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-14 02:46:52 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-14 02:46:52 +0000 |
commit | a45e43f17e1441f51436019760941896f4f34525 (patch) | |
tree | 962d8186083d1e9a6d3d24057f3c43628fcfdd9c /functions | |
parent | 1b2060a4ce1ccdd4436e53d429d23392550927fc (diff) | |
download | phpicalendar-a45e43f17e1441f51436019760941896f4f34525.tar.gz phpicalendar-a45e43f17e1441f51436019760941896f4f34525.tar.bz2 phpicalendar-a45e43f17e1441f51436019760941896f4f34525.zip |
Tweeks to day template and layout.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/functions/template.php b/functions/template.php index 313a78a..451a22f 100644 --- a/functions/template.php +++ b/functions/template.php @@ -248,15 +248,15 @@ class Page { if (ereg('([0-9]{1,2}):00', $key)) { $daydisplay .= '<tr>'."\n"; $daydisplay .= '<td rowspan="' . (60 / $gridLength) . '" align="center" valign="top" width="60" class="timeborder">'.$key.'</td>'."\n"; - $daydisplay .= '<td width="1" height="' . $gridLength . '"></td>'."\n"; + $daydisplay .= '<td bgcolor="#a1a5a9" width="1" height="' . $gridLength . '"></td>'."\n"; } elseif("$cal_time" == "$day_start") { $size_tmp = 60 - (int)substr($cal_time,2,2); $daydisplay .= '<tr>'."\n"; $daydisplay .= "<td rowspan=\"" . ($size_tmp / $gridLength) . "\" align=\"center\" valign=\"top\" width=\"60\" class=\"timeborder\">$key</td>\n"; - $daydisplay .= '<td width="1" height="' . $gridLength . '"></td>'."\n"; + $daydisplay .= '<td bgcolor="#a1a5a9" width="1" height="' . $gridLength . '"></td>'."\n"; } else { $daydisplay .= '<tr>'."\n"; - $daydisplay .= '<td width="1" height="' . $gridLength . '"></td>'."\n"; + $daydisplay .= '<td bgcolor="#a1a5a9" width="1" height="' . $gridLength . '"></td>'."\n"; } if ($dayborder == 0) { $class = ' class="dayborder"'; @@ -289,7 +289,8 @@ class Page { $confirmed = '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0"> '; } - $daydisplay .= '<td rowspan="' . $event_length[$i]['length'] . '" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2_'.$event_calno.'">'."\n"; + $colspan_width = round((460 / $nbrGridCols) * $drawWidth); + $daydisplay .= '<td rowspan="' . $event_length[$i]['length'] . '" width="'.$colspan_width.'" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2_'.$event_calno.'">'."\n"; // Start drawing the event $event_temp = $loop_event; |