integrate RTx::Statistics package, part of merging spiritone RT changes (#1661)
[freeside.git] / rt / html / Reports / Activity / index.html
1 <&| Elements/Wrapper, %ARGS, title => loc("Activity reports"), show_print_link => 0 &>
2
3
4 </&>
5
6 <%args>
7 $type  => undef
8 $start => undef
9 $end   => undef
10 $query => "Status = 'resolved'"
11 </%args>
12 <%init>
13
14 unless ($start) {
15     my $then = RT::Date->new($session{'CurrentUser'});
16     $then->Set(Format => 'Unix', Value => time - (86400*7));
17     $ARGS{start} = substr($then->ISO,0,10);
18 }
19
20 unless ($end) {
21     my $now = RT::Date->new($session{'CurrentUser'});
22     $now->SetToNow();
23     $ARGS{end} = substr($now->ISO,0,10);
24 }
25
26 if ($type) {
27     $m->redirect($type . ".html?" . $m->comp('/Elements/QueryString', query => $query, start => $start, end => $end));
28 }
29 </%init>