aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 12:12:02 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-07 12:12:02 +0000
commitf773edef59a8f835663e03595c79e90d2be74d62 (patch)
tree9ca9c75a0c990c724e35e10d941d23cbc4bfa730 /views/default
parent5639b47844cccc8a53258d29d1c51dbde9bfbdfe (diff)
downloadelgg-f773edef59a8f835663e03595c79e90d2be74d62.tar.gz
elgg-f773edef59a8f835663e03595c79e90d2be74d62.tar.bz2
Updated admin statistics
git-svn-id: https://code.elgg.org/elgg/trunk@1752 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/admin/statistics_opt/basic.php6
-rw-r--r--views/default/admin/statistics_opt/numentities.php27
2 files changed, 22 insertions, 11 deletions
diff --git a/views/default/admin/statistics_opt/basic.php b/views/default/admin/statistics_opt/basic.php
index b249db830..212ef5728 100644
--- a/views/default/admin/statistics_opt/basic.php
+++ b/views/default/admin/statistics_opt/basic.php
@@ -18,15 +18,15 @@
include_once($CONFIG->path . "version.php");
?>
-<div>
+<div class="admin_statistics">
<h2><?php echo elgg_echo('admin:statistics:label:basic'); ?></h2>
<table>
<tr>
- <td><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td>
+ <td style="width: 250px"><b><?php echo elgg_echo('admin:statistics:label:version'); ?> :</b></td>
<td><?php echo elgg_echo('admin:statistics:label:version:release'); ?> - <?php echo $release; ?>, <?php echo elgg_echo('admin:statistics:label:version:version'); ?> - <?php echo $version; ?></td>
</tr>
<tr>
- <td><b><?php echo elgg_echo('admin:statistics:label:numusers'); ?> :</b></td>
+ <td style="width: 250px"><b><?php echo elgg_echo('admin:statistics:label:numusers'); ?> :</b></td>
<td><?php echo $users_stats; ?></td>
</tr>
diff --git a/views/default/admin/statistics_opt/numentities.php b/views/default/admin/statistics_opt/numentities.php
index a424b78cf..20a2168fb 100644
--- a/views/default/admin/statistics_opt/numentities.php
+++ b/views/default/admin/statistics_opt/numentities.php
@@ -14,22 +14,33 @@
// Get entity statistics
$entity_stats = get_entity_statistics();
?>
-<div>
+<div class="admin_statistics">
<h2><?php echo elgg_echo('admin:statistics:label:numentities'); ?></h2>
<table>
<?php
foreach ($entity_stats as $k => $entry)
- {
+ {
+ arsort($entry);
foreach ($entry as $a => $b)
{
- if ($a == "__base__")
- $a=$k;
- else
- $a = "$k $a";
+ if ($a == "__base__") {
+ $a = elgg_echo("item:{$k}");
+ if (empty($a))
+ $a = $k;
+ }
+ else {
+ if (empty($a))
+ $a = elgg_echo("item:{$k}");
+ else
+ $a = elgg_echo("item:{$k}:{$a}");
+ if (empty($a)) {
+ $a = "$k $a";
+ }
+ }
echo <<< END
<tr>
- <td><b>$a :</b></td>
- <td>$b</td>
+ <td style="width: 250px">{$a}:</td>
+ <td>{$b}</td>
</tr>
END;
}