pg 8.1 fix from Chris Cappuccio
[freeside.git] / httemplate / graph / report_money_time.html
1 <%
2
3 #my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
4 my ($curmon,$curyear) = (localtime(time))[4,5];
5
6 #find first month
7 my $syear = 1899+$curyear;
8 my $smonth = $curmon+1;
9
10 #want 12 month by default, not 13
11 $smonth++;
12 if ( $smonth > 12 ) { $smonth-=12; $syear++ }
13
14 #find last month
15 my $eyear = 1900+$curyear;
16 my $emonth = $curmon+1;
17
18 my @mon = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
19
20 %>
21 <%= include('/elements/header.html', 'Sales, Credits and Receipts Summary' ) %>
22
23 <FORM ACTION="money_time.cgi" METHOD="GET">
24
25 <!--
26 <INPUT TYPE="checkbox" NAME="ar">
27   Accounts receivable (invoices - applied credits)<BR>
28 <INPUT TYPE="checkbox" NAME="charged">
29   Just Invoices<BR>
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>
34 <BR>
35 -->
36
37 From: <SELECT NAME="smonth">
38 <% foreach my $mon ( 1..12 ) { %>
39 <OPTION VALUE="<%= $mon %>"<%= $mon == $smonth ? ' SELECTED' : '' %>><%= $mon[$mon-1] %>
40 <% } %>
41 </SELECT>
42 <SELECT NAME="syear">
43 <% foreach my $y ( 1999 .. 2010 ) { %>
44 <OPTION VALUE="<%= $y %>"<%= $y == $syear ? ' SELECTED' : '' %>><%= $y %>
45 <% } %>
46 </SELECT>
47 <BR>
48
49 To: <SELECT NAME="emonth">
50 <% foreach my $mon ( 1..12 ) { %>
51 <OPTION VALUE="<%= $mon %>"<%= $mon == $emonth ? ' SELECTED' : '' %>><%= $mon[$mon-1] %>
52 <% } %>
53 </SELECT>
54 <SELECT NAME="eyear">
55 <% foreach my $y ( 1999 .. 2010 ) { %>
56 <OPTION VALUE="<%= $y %>"<%= $y == $eyear ? ' SELECTED' : '' %>><%= $y %>
57 <% } %>
58 </SELECT>
59 <BR>
60
61 For agent: <%= include('/elements/select-agent.html' ) %>
62 <BR>
63
64 <INPUT TYPE="checkbox" NAME="12mo" VALUE="1"> Show 12 month totals instead of monthly values.
65 <BR>
66
67 <INPUT TYPE="submit" VALUE="Display">
68 </FORM>
69
70 <%= include('/elements/footer.html') %>
71