% #my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); my ($curmon,$curyear) = (localtime(time))[4,5]; #find first month my $syear = 1899+$curyear; my $smonth = $curmon+1; #want 12 month by default, not 13 $smonth++; if ( $smonth > 12 ) { $smonth-=12; $syear++ } #find last month my $eyear = 1900+$curyear; my $emonth = $curmon+1; my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); %> <%= include('/elements/header.html', 'Sales, Credits and Receipts Summary' ) %>
<%= include('/elements/footer.html') %>