function mkMonthRow($bothMonths=true) { $colspanLeft = min($this->getDaysThisMonth() - $this->actday + 1, 7); $colspanRight = 7 - $colspanLeft; $out = '<tr class="newMonthRow">'; if ($this->weekNum) $out.='<td class="'.$this->cssWeekNum.'"></td>'; $out .= '<td class="' . $this->cssMonthWeek . '" colspan="' . $colspanLeft . '">'; if ($bothMonths) $out .= parent::getMonthName($this->actmonth).$this->monthYearDivider.$this->actyear; $out .= '</td>'; if ($colspanRight>0) { if ($this->actmonth+1>12) { $calmonth=1; $calyear=$this->actyear+1; } else { $calmonth=$this->actmonth+1; $calyear=$this->actyear; } $out .= '<td class="' . $this->cssMonthWeek . '" colspan="' . $colspanRight . '">'.parent::getMonthName($calmonth).$this->monthYearDivider.$calyear.'</td>'; } return $out; }