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