Elgg  Version 3.0
user.php
Go to the documentation of this file.
1 <?php
2 // Work out number of users
5 
6 $active_title = elgg_echo('active');
8 
9 $body = <<<__HTML
10 <table class="elgg-table-alt">
11  <tr>
12  <td><b>{$active_title} :</b></td>
13  <td>{$users_stats}</td>
14  </tr>
15  <tr>
16  <td><b>{$total_title} :</b></td>
17  <td>{$total_users}</td>
18  </tr>
19 </table>
20 __HTML;
21 
22 echo elgg_view_module('info', elgg_echo('admin:statistics:label:user'), $body);
$active_title
Definition: user.php:6
$body
Definition: user.php:9
$users_stats
Definition: user.php:3
$total_title
Definition: user.php:7
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:1198
elgg echo
Translates a string.
Definition: languages.js:43
get_number_users($show_deactivated=false)
Return the number of users registered in the system.
Definition: statistics.php:59
$total_users
Definition: user.php:4