piler/webui/view/theme/default/templates/stat/online.tpl

31 lines
1.0 KiB
Smarty
Raw Normal View History

2013-07-24 22:14:05 +02:00
2013-07-25 14:38:44 +02:00
<h4><?php print $text_online_users; ?>, <?php print $text_refresh_period; ?>: <?php print HEALTH_REFRESH; ?> sec</h4>
2013-07-24 22:14:05 +02:00
<div class="listarea">
<?php if(isset($users)){ ?>
<table id="ss1" class="table table-striped table-condensed">
<tr>
<th class="domaincell"><?php print $text_username; ?></th>
<th class="domaincell"><?php print $text_ipaddr; ?></th>
<th class="domaincell"><?php print $text_logged_in; ?></th>
<th class="domaincell"><?php print $text_last_activity; ?></th>
</tr>
<?php foreach($users as $user) { ?>
<tr>
<td class="domaincell"><?php print $user['username']; ?></td>
<td class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></td>
2013-08-18 13:59:55 +02:00
<td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['ts']); ?></td>
<td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></td>
2013-07-24 22:14:05 +02:00
</tr>
<?php } ?>
</table>
<?php } ?>
</div>