Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How do I generate an HTML event calendar

by Samy_rio (Vicar)
on Oct 13, 2006 at 05:36 UTC ( [id://578057]=note: print w/replies, xml ) Need Help??


in reply to How do I generate an HTML event calendar

Hi weihe, Try like this,

use strict; use warnings; use HTML::CalendarMonthDB; my $cal = new HTML::CalendarMonthDB(); $cal->width('50%'); $cal->border(10); print $cal->as_HTML;

And also see How do I post a question effectively? and How (Not) To Ask A Question

Try below, it will give you date with hyperlink.

use strict; use warnings; use HTML::CalendarMonth; use HTML::AsSubs; my $month = 10; my $year = 2006; my $cal = HTML::CalendarMonth->new( month => $month, year => $yea +r ); $cal->item($cal->year, $cal->month)->attr(bgcolor => 'wheat'); $cal->item($cal->year, $cal->month)->wrap_content(font({size => ' ++2'})); my @days = $cal->days; for (@days){ $cal->item($_)->wrap_content(a({href => 'http://mysite/cal/index' +.$year.$month. $_ .".html"})); } print $cal->as_HTML;

Updated

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://578057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-25 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found