in reply to HTML::CalendarMonth - printing a consistent (6) rows for days of the week
This produces the calendar on the right below:my $c = HTML::CalendarMonth->new( year => 2003, month => 1, bgcolor => 'white', ); $c->maxrow($c->maxrow + 1); print $c->as_HTML;
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You can compare $c->maxrow (or $c->last_row) for each calendar in question to decide whether to add the extra row or not. Note that once you add the extra row, $c->maxrow() and $c->last_row() will yield different results -- the former pertains to the HTML table, the latter pertains to the calendar data itself.
Cheers,
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML::CalendarMonth - printing a consistent (6) rows for days of the week
by jonnyfolk (Vicar) on Dec 12, 2003 at 07:48 UTC |