Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

calendar
Hi,

Can you recommend a good module for creating calendars with links for each
day in html format?

I have searched with CPAN after "calendar" and I found more modules, but I
don't know which one would be the best.

Have you used one that's good?

Thanks.

Teddy


Report this thread to moderator Post Follow-up to this message
Old Post
Octavian Rasnita
03-26-05 01:56 PM


Re: calendar
On Sat, 26 Mar 2005 13:07:50 +0200, orasnita@fcc.ro (Octavian Rasnita)
wrote:

>Hi,
>
>Can you recommend a good module for creating calendars with links for each
>day in html format?
>
>I have searched with CPAN after "calendar" and I found more modules, but I
>don't know which one would be the best.
>
>Have you used one that's good?

#!/usr/bin/perl
use CGI qw(header);
use HTML::CalendarMonthSimple;
use strict;

my %cal;

while (<DATA> ) {
chomp;
my ($file,$yyyy,$mm,$dd) = /([^.]+)\.(\d{4})(\d\d)(\d\d)/;
push @{$cal{$yyyy}->{$mm}},{day => $dd, targ => $file};
}

print header;

for my $year (sort keys %cal) {
for my $mon (sort keys %{$cal{$year}}) {
my $cal = HTML::CalendarMonthSimple->new(
month => $mon,
year  => $year,
);
for (sort @{$cal{$year}->{$mon}}) {
$cal->setdatehref(int($_->{day}), $_->{targ});
}
print $cal->as_HTML();
}
}

__DATA__
file5.20030227
file2.20020802
file1.20020801
file4.20021015
file3.20020803
__END__

--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html

Report this thread to moderator Post Follow-up to this message
Old Post
Zentara
03-26-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:53 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.