ePortal::HTML::CalendarePortal::HTML::Calendar is a calendar dialog box. | |
Download |
ePortal::HTML::Calendar Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sergey Rusakov
- Publisher web site:
- http://search.cpan.org/~rusakov/ePortal-4.5/lib/ePortal/HTML/Calendar.pm
ePortal::HTML::Calendar Tags
ePortal::HTML::Calendar Description
ePortal::HTML::Calendar is a calendar dialog box. ePortal::HTML::Calendar is a calendar dialog box.SYNOPSISThis module is used to make a dialog with a monthly calendar. % $Calendar = new ePortal::HTML::Calendar( m => $m ); % $Calendar->url_all('self'); ... < % $Calendar->draw % >METHODSnew(date)Object contructor. date is passed to set_date. Calendar's date may be initialized from URL. The actual date source may be checked with date_source() member function.self_url(cal_param, value)Constructs self referencing URL removing all myself specific parameters. New parameters should be passed to this function to make them added to URL.Returns URL with parameters.url($day_number,$url)Sets an URL for particular day in the current month view. If $url eq 'self' than self-refence URL will be contructed without parameters loss.url_all($url)Sets an url for each day in calendar. $url parameter is passed to url() method. See it for detailsdate_source()Returns a sting which points to a source of the dateself - self initialized date (today)set_date - set_date() was calledurl - adjusted from URLdraw()Draws the calendar. Returns an HTML in array context and outputs HTML via $m in scalar context.date()Returns a date selected. It returns an array (YYYY,MM,DD) in array context and nicely formatted date 'DD.MM.YYYY' in scalar context.set_date(date)Adjust the calendar to the date. Parameter may be:'now' or 'today' - set the date to today'cal_nmon','next' or 'cal_pmon','prev' - adjust to next or prev month - array ref to (YYYY,MM,DD)(YYYY,MM,DD) - array of (YYYY,MM,DD)'DD.MM.YYYY' - date as string Requirements: · Perl
ePortal::HTML::Calendar Related Software