|
From: <cl...@us...> - 2003-03-10 06:50:36
|
Update of /cvsroot/phpicalendar/phpicalendar
In directory sc8-pr-cvs1:/tmp/cvs-serv29889
Modified Files:
day.php
Log Message:
Removed tr line heights, better validation.
Index: day.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** day.php 30 Nov 2002 21:05:38 -0000 1.85
--- day.php 10 Mar 2003 06:50:33 -0000 1.86
***************
*** 209,222 ****
}
if (ereg('([0-9]{1,2}):00', $key)) {
! echo '<tr height="' . $gridLength . '">'."\n";
echo '<td rowspan="' . (60 / $gridLength) . '" align="center" valign="top" width="60" class="timeborder">'.$key.'</td>'."\n";
echo '<td width="1" height="' . $gridLength . '"></td>'."\n";
} elseif("$cal_time" == "$day_start") {
$size_tmp = 60 - (int)substr($cal_time,2,2);
! echo "<tr height=\"" . $gridLength . "\">\n";
echo "<td rowspan=\"" . ($size_tmp / $gridLength) . "\" align=\"center\" valign=\"top\" width=\"60\" class=\"timeborder\">$key</td>\n";
echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n";
} else {
! echo '<tr height="' . $gridLength . '">'."\n";
echo '<td width="1" height="' . $gridLength . '"></td>'."\n";
}
--- 209,222 ----
}
if (ereg('([0-9]{1,2}):00', $key)) {
! echo '<tr>'."\n";
echo '<td rowspan="' . (60 / $gridLength) . '" align="center" valign="top" width="60" class="timeborder">'.$key.'</td>'."\n";
echo '<td width="1" height="' . $gridLength . '"></td>'."\n";
} elseif("$cal_time" == "$day_start") {
$size_tmp = 60 - (int)substr($cal_time,2,2);
! echo "<tr>\n";
echo "<td rowspan=\"" . ($size_tmp / $gridLength) . "\" align=\"center\" valign=\"top\" width=\"60\" class=\"timeborder\">$key</td>\n";
echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n";
} else {
! echo '<tr>'."\n";
echo '<td width="1" height="' . $gridLength . '"></td>'."\n";
}
|