Calendar
| From: | jtjohnston | Date: | Sun, 26 May 2002 19:07:46 +0000 |
| Subject: | Calendar | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99314@lists.php.net to get a copy of this message | ||
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing </tr><tr> somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.phps
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/BaseCalendar.inc
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/BaseCalendar.inc.phps
The problem should be in here, but I can't see it:
// Plancing day i on calendar
if ($shift==0 && $today_ts==$day_i_ts) {
echo "<td
bgcolor=".($this->calBGCellToday)."><strong><center>".$link_i."</center></strong></td>";
}
else {
echo "<td
bgcolor=".($this->calBGCellColor)."><center>".$link_i."</center></td>\n";
if ($day_i==7 && $i<$daysInMonth) {
echo "</tr><tr>\n";
}
else if ($day_i==7 && $i==$daysInMonth) {
echo "</tr>\n";
}
else if ($i==$daysInMonth) {
for ($h=$dayMonth_end; $h<7; $h++) {
echo "<td> </td>\n";
}
echo "</tr>\n";
}
} //end else