HTML-Menu-DateTime

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME
    HTML::Menu::DateTime - Easily create popup menus for use with templates.

SYNOPSIS
      use HTML::Menu::DateTime;
  
      my $menu = HTML::Menu::DateTime->new (
        date         => '2004-02-26',
        no_select    => 1,
        empty_first  => '');
  
      $menu->start_year (2000);
      $menu->end_year (2010);
  
      $menu->less_years (1);
      $menu->plus_years (5);
  
      $menu->month_format ('short');
      $menu->locale ('en_GB');
      $menu->second_increment (15);
      $menu->minute_increment (5);
  
      $menu->html ('menu');
  
      $menu->second_menu;
      $menu->minute_menu;
      $menu->hour_menu;
      $menu->day_menu;
      $menu->month_menu;
      $menu->year_menu;

DESCRIPTION
    Creates data structures suitable for populating HTML::Template, Template
    Toolkit or Template::Magic templates with dropdown date and time menus.

    Allows any number of dropdown menus to be displayed on a single page,
    each independantly configurable.

    Distribution includes ready-to-use template include files.

    Can output valid HTML, allowing quick prototyping of pages, with the
    freedom to easily switch to using templates later.

MOTIVATION
    To keep the creation of HTML completely seperate from the program, to
    easily allow a non-programmer to add css styles, javascript, etc. to
    individual menus.

    To make the creation of menus as simple as possible, with extra options
    if needed. HTML Menus can be created as easily as:

      my $template = HTML::Template->new (filename => $filename);
  
      my $menu = HTML::Menu::DateTime->new;
  
      $template->param (day   => $menu->day_menu,
                        month => $menu->month_menu,
                        year  => $menu->year_menu);
  
      print $template->output;

INSTALLATION



( run in 0.893 second using v1.01-cache-2.11-cpan-364913b4093 )