root/trunk/wifidog-auth/wifidog/templates/classes/UIUserList_getUserUI.tpl @ 1234

Revision 1234, 3.8 KB (checked in by dana, 6 years ago)

Added display of list of recent and active users to the user list UI

Line 
1{*
2
3/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
4
5// +-------------------------------------------------------------------+
6// | WiFiDog Authentication Server                                     |
7// | =============================                                     |
8// |                                                                   |
9// | The WiFiDog Authentication Server is part of the WiFiDog captive  |
10// | portal suite.                                                     |
11// +-------------------------------------------------------------------+
12// | PHP version 5 required.                                           |
13// +-------------------------------------------------------------------+
14// | Homepage:     http://www.wifidog.org/                             |
15// | Source Forge: http://sourceforge.net/projects/wifidog/            |
16// +-------------------------------------------------------------------+
17// | This program is free software; you can redistribute it and/or     |
18// | modify it under the terms of the GNU General Public License as    |
19// | published by the Free Software Foundation; either version 2 of    |
20// | the License, or (at your option) any later version.               |
21// |                                                                   |
22// | This program is distributed in the hope that it will be useful,   |
23// | but WITHOUT ANY WARRANTY; without even the implied warranty of    |
24// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     |
25// | GNU General Public License for more details.                      |
26// |                                                                   |
27// | You should have received a copy of the GNU General Public License |
28// | along with this program; if not, contact:                         |
29// |                                                                   |
30// | Free Software Foundation           Voice:  +1-617-542-5942        |
31// | 59 Temple Place - Suite 330        Fax:    +1-617-542-2652        |
32// | Boston, MA  02111-1307,  USA       gnu@gnu.org                    |
33// |                                                                   |
34// +-------------------------------------------------------------------+
35
36/**
37 * Login page
38 *
39 * @package    WiFiDogAuthServer
40 * @subpackage Templates
41 * @author     Max Horváth <max.horvath@freenet.de>
42 * @copyright 2006 Max Horváth, Horvath Web Consulting
43 * @author Benoit Grégoire <bock @step.polymtl.ca>
44 * @copyright 2007 Benoit Grégoire, Technologies Coeus inc.
45 * @version Subversion $Id: $
46 * @link http://www.wifidog.org/ */
47  *}
48        {if $nodeId != null}
49            <div id="online_users">
50            {if ($nodeNumOnlineUsers > 0)}
51                {if ($nodeNumOnlineUsers == 1)}
52                    <label>1 {"user is online at this hotspot"|_}</label>
53                {else}
54                    <label>{$nodeNumOnlineUsers} {"users are online at this hotspot"|_}</label>
55                {/if}
56
57                <ul>
58                    {section name=onlineUser loop=$onlineUsers}
59                        <li>{$onlineUsers[onlineUser]}</li>
60                    {/section}
61                </ul>
62            {else}
63                 {"Nobody is online at this hotspot"|_} ...
64            {/if}
65            </div>
66
67            <div id="recent_users">
68                  <label>Recent Users:</label>
69                  <ul>
70                  {section name=recentUser loop=$recentUsers}
71                      <li>{$recentUsers[recentUser]}</li>
72                  {/section}
73                  </ul>
74             </div>
75
76              <div id="active_users">
77                  <label>Most Active Users:</label>
78                  <ul>
79                  {section name=activeUser loop=$activeUsers}
80                      <li>{$activeUsers[activeUser]}</li>
81                  {/section}
82                  </ul>
83             </div>
84         {/if}
Note: See TracBrowser for help on using the browser.