X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fgraph%2Fmoney_time.cgi;h=de8f6ee0cd5ab50feda64dd5d218c4d9f1b01610;hp=d6c35434bd1b3575175a8ecfdec918698d04e171;hb=33979d5fd9923e2378bc2239f6c4e6857834fa3f;hpb=dfaabf0c82291f2839922065aa80b2590bab25b0 diff --git a/httemplate/graph/money_time.cgi b/httemplate/graph/money_time.cgi index d6c35434b..de8f6ee0c 100644 --- a/httemplate/graph/money_time.cgi +++ b/httemplate/graph/money_time.cgi @@ -1,9 +1,25 @@ + +<% + +#my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); +my ($curmon,$curyear) = (localtime(time))[4,5]; + +#find first month +my $syear = $cgi->param('syear') || 1899+$curyear; +my $smonth = $cgi->param('smonth') || $curmon+1; + +#find last month +my $eyear = $cgi->param('eyear') || 1900+$curyear; +my $emonth = $cgi->param('emonth') || $curmon+1; + +%> + Graphing monetary values over time - +
@@ -16,24 +32,24 @@ Cashflow (payments - refunds)

From to