From f773edef59a8f835663e03595c79e90d2be74d62 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 7 Aug 2008 12:12:02 +0000 Subject: Updated admin statistics git-svn-id: https://code.elgg.org/elgg/trunk@1752 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/statistics_opt/basic.php | 6 ++--- views/default/admin/statistics_opt/numentities.php | 27 +++++++++++++++------- 2 files changed, 22 insertions(+), 11 deletions(-) (limited to 'views') 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"); ?> -
+

- + - + 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(); ?> -
+

: : - , -
: :
$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 - - + + END; } -- cgit v1.2.3
$a :$b{$a}:{$b}