aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-14 02:46:52 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-14 02:46:52 +0000
commita45e43f17e1441f51436019760941896f4f34525 (patch)
tree962d8186083d1e9a6d3d24057f3c43628fcfdd9c
parent1b2060a4ce1ccdd4436e53d429d23392550927fc (diff)
downloadphpicalendar-a45e43f17e1441f51436019760941896f4f34525.tar.gz
phpicalendar-a45e43f17e1441f51436019760941896f4f34525.tar.bz2
phpicalendar-a45e43f17e1441f51436019760941896f4f34525.zip
Tweeks to day template and layout.
-rw-r--r--functions/template.php9
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">&nbsp;';
}
- $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;

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