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 | 971b54fe719ed70704fb3bcac4ef1d5f093cb454 (patch) | |
tree | 26e090c444b1e34881bc088a9cd6f3223e26047a /mod/graphstats/views/default/graphs/data/timestats.php | |
parent | 711dab09b5146e74dbeda56679c65e3b6bec71f3 (diff) | |
parent | 36102a094de700ee339f6eaeffb8ab16ba4f2f3b (diff) | |
download | elgg-971b54fe719ed70704fb3bcac4ef1d5f093cb454.tar.gz elgg-971b54fe719ed70704fb3bcac4ef1d5f093cb454.tar.bz2 |
Merge commit '36102a094de700ee339f6eaeffb8ab16ba4f2f3b' as 'mod/graphstats'
Diffstat (limited to 'mod/graphstats/views/default/graphs/data/timestats.php')
-rw-r--r-- | mod/graphstats/views/default/graphs/data/timestats.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mod/graphstats/views/default/graphs/data/timestats.php b/mod/graphstats/views/default/graphs/data/timestats.php new file mode 100644 index 000000000..6179301a9 --- /dev/null +++ b/mod/graphstats/views/default/graphs/data/timestats.php @@ -0,0 +1,33 @@ +<?php + +$type = $vars['type']; +$subtype = $vars['subtype']; +$relative = $vars['relative']; + +elgg_load_library('elgg:graphs:timestats'); + +$timestats = timestats($type, $subtype, $relative); + +?> + +<table style="position: absolute; left: -9999em; top: -9999em;" id="data"> + <tfoot> + <tr> + <?php + foreach ($timestats as $time => $stat) { + $date = date(elgg_echo('friendlytime:date_format'), $time); + echo "<th>$date</th>\n"; + } + ?> + </tr> + </tfoot> + <tbody> + <tr> + <?php + foreach ($timestats as $time => $stat) { + echo "<td>$stat</td>\n"; + } + ?> + </tr> + </tbody> +</table> |