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>&nbsp;</td>\n";
            }
       echo "</tr>\n";
      }
  } //end else




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to