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;
18 my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
21 <%= include('/elements/header.html', 'Sales, Credits and Receipts Summary' ) %>
23 <FORM ACTION="money_time.cgi" METHOD="GET">
26 <INPUT TYPE="checkbox" NAME="ar">
27 Accounts receivable (invoices - applied credits)<BR>
28 <INPUT TYPE="checkbox" NAME="charged">
30 <INPUT TYPE="checkbox" NAME="defer">
31 Accounts receivable, with deferred revenue (invoices - applied credits, with charges for annual/semi-annual/quarterly/etc. services deferred over applicable time period) (there has got to be a shorter description for this)<BR>
32 <INPUT TYPE="checkbox" NAME="cash">
33 Cashflow (payments - refunds)<BR>
37 From: <SELECT NAME="smonth">
38 <% foreach my $mon ( 1..12 ) { %>
39 <OPTION VALUE="<%= $mon %>"<%= $mon == $smonth ? ' SELECTED' : '' %>><%= $mon[$mon-1] %>
43 <% foreach my $y ( 1999 .. 2010 ) { %>
44 <OPTION VALUE="<%= $y %>"<%= $y == $syear ? ' SELECTED' : '' %>><%= $y %>
49 To: <SELECT NAME="emonth">
50 <% foreach my $mon ( 1..12 ) { %>
51 <OPTION VALUE="<%= $mon %>"<%= $mon == $emonth ? ' SELECTED' : '' %>><%= $mon[$mon-1] %>
55 <% foreach my $y ( 1999 .. 2010 ) { %>
56 <OPTION VALUE="<%= $y %>"<%= $y == $eyear ? ' SELECTED' : '' %>><%= $y %>
61 For agent: <%= include('/elements/select-agent.html' ) %>
64 <INPUT TYPE="checkbox" NAME="12mo" VALUE="1"> Show 12 month totals instead of monthly values.
67 <INPUT TYPE="submit" VALUE="Display">
70 <%= include('/elements/footer.html') %>