3 #my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
4 my ($curmon,$curyear) = (localtime(time))[4,5];
7 my $syear = 1899+$curyear;
8 my $smonth = $curmon+1;
10 #want 12 month by default, not 13
12 if ( $smonth > 12 ) { $smonth-=12; $syear++ }
15 my $eyear = 1900+$curyear;
16 my $emonth = $curmon+1;
19 'show_month_abbr' => 1,
20 'start_year' => '1999',
21 'end_year' => '2012', #haha, well...
28 <TD ALIGN="right">From: </TD>
30 <%= include('/elements/select-month_year.html',
32 'selected_mon' => $smonth,
33 'selected_year' => $syear,
41 <TD ALIGN="right">To: </TD>
43 <%= include('/elements/select-month_year.html',
45 'selected_mon' => $emonth,
46 'selected_year' => $eyear,