diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:50 -0300 |
commit | 36102a094de700ee339f6eaeffb8ab16ba4f2f3b (patch) | |
tree | 57676a64905ae0e112cc5d698a5f61b36a88c5b3 /pages/graphstats/timestats.php | |
download | elgg-36102a094de700ee339f6eaeffb8ab16ba4f2f3b.tar.gz elgg-36102a094de700ee339f6eaeffb8ab16ba4f2f3b.tar.bz2 |
Squashed 'mod/graphstats/' content from commit b5d0461
git-subtree-dir: mod/graphstats
git-subtree-split: b5d046138c5841d55b4497618d5678cb8027c245
Diffstat (limited to 'pages/graphstats/timestats.php')
-rw-r--r-- | pages/graphstats/timestats.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pages/graphstats/timestats.php b/pages/graphstats/timestats.php new file mode 100644 index 000000000..6516e145d --- /dev/null +++ b/pages/graphstats/timestats.php @@ -0,0 +1,37 @@ +<?php +/** + * Site time stats. + * + * @package ElggGraphStats + */ + +elgg_load_library('elgg:graphs:timestats'); + +$title = elgg_echo('graphstats:timestats'); + +elgg_push_breadcrumb($title); + +$type = get_input('type', 'user'); +$subtype = get_input('subtype', ''); +$filter = get_input('filter', 'absolute'); +$type_subtype = $type . ($subtype?":$subtype":""); + +$table = elgg_view('graphs/data/timestats', array( + 'type' => $type, + 'subtype' => $subtype, + 'relative' => ($filter == 'relative'), +)); + +$content = elgg_view('graphs/timestats', array('table' => $table)); + +$filter = elgg_view('graphstats/timestats_filter_menu', array('selected' => $relative)); + +timestats_setup_sidebar_menu(); + +$body = elgg_view_layout('content', array( + 'content' => $content, + 'title' => $title, + 'filter' => $filter, +)); + +echo elgg_view_page($title, $body); |