Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How do I generate an HTML event calendar

by weihe (Initiate)
on Oct 13, 2006 at 05:20 UTC ( [id://578051]=perlquestion: print w/replies, xml ) Need Help??

weihe has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: How do I generate an HTML event calendar
by prasadbabu (Prior) on Oct 13, 2006 at 05:31 UTC

    Try this module, HTML::CalendarMonthSimple

    use HTML::CalendarMonthSimple; $cal = new HTML::CalendarMonthSimple('year'=>2006,'month'=>10); $cal->width('50%'); $cal->border(10); $cal->header('Event Calendar'); $cal->setcontent(24,"UNO Day"); $cal->setdatehref(24, 'http://localhost/'); print $cal->as_HTML;
    updated: Added html module

    Prasad

Re: How do I generate an HTML event calendar
by Samy_rio (Vicar) on Oct 13, 2006 at 05:36 UTC

    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';

Re: How do I generate an HTML event calendar
by grep (Monsignor) on Oct 13, 2006 at 05:38 UTC
Re: How do I generate an HTML event calendar
by jkva (Chaplain) on Oct 13, 2006 at 05:30 UTC

    Hello,

    Firstly, your question is somewhat oddly phrased.

    Secondly, if you want to build this using Perl, I suggest you read up on CGI basics and perhaps look into Templating engines. See the Tutorials section.

    Good luck,

    -- jkva

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-03-19 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found