aboutsummaryrefslogtreecommitdiff
path: root/views/default/usersettings/statistics_opt/numentities.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 17:43:23 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-23 17:43:23 +0000
commitee25c76e0bab45893a9d52a3820a16be2d481010 (patch)
tree63792d4a58d56953ede040831e18b176107d23a1 /views/default/usersettings/statistics_opt/numentities.php
parent317d14bba5d58975446ecd9ab1b37a89c647fc1b (diff)
downloadelgg-ee25c76e0bab45893a9d52a3820a16be2d481010.tar.gz
elgg-ee25c76e0bab45893a9d52a3820a16be2d481010.tar.bz2
Refs #76: User settings page (to Elgg Classic standard). Committing some work before shutting down for the day.
git-svn-id: https://code.elgg.org/elgg/trunk@1078 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/usersettings/statistics_opt/numentities.php')
-rw-r--r--views/default/usersettings/statistics_opt/numentities.php45
1 files changed, 45 insertions, 0 deletions
diff --git a/views/default/usersettings/statistics_opt/numentities.php b/views/default/usersettings/statistics_opt/numentities.php
new file mode 100644
index 000000000..4fe218048
--- /dev/null
+++ b/views/default/usersettings/statistics_opt/numentities.php
@@ -0,0 +1,45 @@
+<?php
+ /**
+ * Elgg statistics screen
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+
+ // Get entity statistics
+ $entity_stats = get_entity_statistics($_SESSION['user']->guid);
+
+ if ($entity_stats)
+ {
+?>
+<div>
+ <h2><?php echo elgg_echo('usersettings:statistics:label:numentities'); ?></h2>
+ <table>
+ <?php
+ foreach ($entity_stats as $k => $entry)
+ {
+ echo "<table>";
+ foreach ($entry as $a => $b)
+ {
+ if ($a == "__base__")
+ $a=$k;
+ else
+ $a = "$k $a";
+ echo <<< END
+ <tr>
+ <td><b>$a :</b></td>
+ <td>$b</td>
+ </tr>
+END;
+ }
+ echo "</table>";
+ }
+ ?>
+ </table>
+</div>
+<?php } ?> \ No newline at end of file