summaryrefslogtreecommitdiff
path: root/rt/html/Reports/Activity/index.html
diff options
context:
space:
mode:
authorivan <ivan>2007-06-20 22:29:41 +0000
committerivan <ivan>2007-06-20 22:29:41 +0000
commitd94b8139112b9e1bbfaf83a99ea802e6c6e8d611 (patch)
tree55cb8fca58b751d5f52b20401acd43e41b683f86 /rt/html/Reports/Activity/index.html
parent2ee1226990c77afd794a562d9b4a9e22a6587d70 (diff)
integrate RTx::Statistics, RT::Extension::ActivityReports package, and RTx::WebCronTool packages, as part of merging spiritone RT changes (#1661)
Diffstat (limited to 'rt/html/Reports/Activity/index.html')
-rw-r--r--rt/html/Reports/Activity/index.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/rt/html/Reports/Activity/index.html b/rt/html/Reports/Activity/index.html
new file mode 100644
index 000000000..1f6ddb0d5
--- /dev/null
+++ b/rt/html/Reports/Activity/index.html
@@ -0,0 +1,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>