root/trunk/wifidog-auth/wifidog/templates/sites/index.tpl @ 1079

Revision 1079, 4.5 KB (checked in by fproulx, 7 years ago)

2006-08-27 François Proulx <francois.proulx@…>

  • Updated French translations
  • Now using Sprintf formatted strings in some Smarty templates (see example in templates/sites/index.tpl).
  • Integrated back the SQL profiling functions
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 * WiFiDog Authentication Server home page
38 *
39 * @package    WiFiDogAuthServer
40 * @subpackage Templates
41 * @author     Max Horvath <max.horvath@maxspot.de>
42 * @copyright  2006 Max Horvath, maxspot GmbH
43 * @version    Subversion $Id: change_password.php 914 2006-01-23 05:25:43Z max-horvath $
44 * @link       http://www.wifidog.org/
45 */
46
47*}
48
49{if $sectionTOOLCONTENT}
50{*
51    BEGIN section TOOLCONTENT
52*}
53    <div id="login_form">
54        <ul>
55                        {if $isValidUser}
56            <li><a href="{$base_ssl_path}change_password.php">{"Change password"|_}</a></li>
57                        {else}
58            <li><a href="{$base_url_path}faq.php">{"I have trouble connecting and I would like some help"|_}</a></li>
59                        {/if}
60        </ul>
61    </div>
62{*
63    END section TOOLCONTENT
64*}
65{/if}
66
67{if $sectionMAINCONTENT}
68{*
69    BEGIN section MAINCONTENT
70*}
71        <p>
72                {if $networkNumOnlineUsers == 1}
73                        {"The %s network currently has one valid user."|_|sprintf:$networkName}
74                {else}
75                        {"The %s network currently has %d valid users."|_|sprintf:$networkName:$networkNumValidUsers}
76                {/if}
77
78                {if $networkNumOnlineUsers == 1}
79                        {"One user is currently online."|_|sprintf:$networkNumOnlineUsers}
80                {else}
81                        {"%d users are currently online."|_|sprintf:$networkNumOnlineUsers}
82                {/if}
83                <br/>
84                {if $networkNumDeployedNodes == 1}
85                        {"This network currently has 1 deployed hotspot."|_}
86        {else}
87                        {"This network currently has %d deployed hotspots."|_|sprintf:$networkNumDeployedNodes}
88        {/if}
89
90        {if $networkNumOnlineNodes == 1}
91            {"One hotspot is currently operationnal."|_}
92        {else}
93            {"%d hotspots are currently operationnal."|_|sprintf:$networkNumOnlineNodes}
94        {/if}
95    </p>
96
97    <ul>
98        {if $googleMapsEnabled} {* This needs to be imporved before being deployed  {if $googleMapsEnabled && !$userIsAtHotspot}*}
99            <li><a href="{$base_non_ssl_path}hotspots_map.php">{"Deployed HotSpots map"|_}</a></li>
100        {/if}
101        <li><a href="{$base_url_path}hotspot_status.php">{"Deployed HotSpots status with coordinates"|_}</a></li>
102        <li><a href="{$base_url_path}node_list.php">{"Full node technical status (includes non-deployed nodes)"|_}</a></li>
103        <li><a href="{$base_url_path}admin/index.php">{"Administration"|_}</a></li>
104    </ul>
105{*
106    END section MAINCONTENT
107*}
108{/if}
Note: See TracBrowser for help on using the browser.