# $Id: DateSelect.pm,v 1.9 1999/11/23 15:56:27 tom Exp $ ################################################################ package HNS::DateSelect; =head1 NAME HNS::DateSelect - 日付選択クラス =cut ################################################################ use strict; use ObjectTemplate; @HNS::DateSelect::ISA = qw(ObjectTemplate); @HNS::DateSelect::EXPORT = qw(attributes); use HNS; use HNS::Template; use HNS::System; use DateTime::Date; =head1 MEMBER VARIABLES month_all start_year =cut attributes qw(month_all start_year); ################################################################ # configuration static variabes # =head1 MEMBER VARIABLES $YearTemplate $MonthTemplate $DayTemplate $AllLabel =cut use vars qw($YearTemplate $MonthTemplate $DayTemplate $AllLabel); $YearTemplate = "%year"; $MonthTemplate = "%month"; $DayTemplate = "%start_day 〜 %end_day"; $AllLabel = "ALL"; ################################################################ =head2 $d->AsHTML($year, $month, $day, $SubmitLabel); HTML 変換する =cut sub AsHTML ($;$$$) { my ($self, $year, $month, $day, $SubmitLabel) = @_; my $templ = new HNS::Template; my $html; # year $html .= qq(\n\n); # month $html .= qq(\n); # day $html .= qq(\n); # submit $html .= qq(\n); # $html .= qq(
); return $html; } 1;