root/trunk/wifidog-auth/wifidog/templates/sites/hotspot_status.tpl @ 1072

Revision 1072, 6.8 KB (checked in by benoitg, 7 years ago)

Didn't save all files in last commit...

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
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 * Hotspot status 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$
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 $GMapsEnabled && !$userIsAtHotspot}
56                <li><a href="{$base_non_ssl_path}hotspots_map.php">{"Deployed HotSpots map"|_}</a></li>
57            {/if}
58            <li><a href="{$base_non_ssl_path}node_list.php">{"Full node technical status (includes non-deployed nodes)"|_}</a></li>
59        </ul>
60    </div>
61{*
62    END section TOOLCONTENT
63*}
64{/if}
65
66{if $sectionMAINCONTENT}
67{*
68    BEGIN section MAINCONTENT
69*}
70    <div id="hotspot_status">
71        <table>
72            <thead>
73                <tr>
74                    <th colspan=6>{"Status of the"|_} {$num_deployed_nodes} {"open"|_} {$hotspot_network_name} {"Hotspots (Get this list as a <a href='?format=RSS'>RSS feed</a>)"|_}</th>
75                </tr>
76                <tr>
77                    <th>{"Hotspot / Status"|_}</th>
78                    <th>{"Description"|_}</th>
79                    <th>{"Location"|_}</th>
80                </tr>
81            </thead>
82
83            {section name=node loop=$nodes}
84                <tr class="{cycle values="odd,even"}">
85                    <td>
86                        {if $nodes[node].node_deployment_status == 'NON_WIFIDOG_NODE'}
87                            ?
88                        {else}
89                            {if $nodes[node].is_up == 't'}
90                                <img src='{$common_images_url}HotspotStatus/up.gif'>
91                            {else}
92                                <img src='{$common_images_url}HotspotStatus/down.gif'>
93                            {/if}
94                        {/if}
95
96                        {if !$nodes[node].home_page_url}
97                            {$nodes[node].name}
98                        {else}
99                            <a href='{$nodes[node].home_page_url}' target='_new'>{$nodes[node].name}</a>
100                        {/if}
101
102                        {if $nodes[node].node_deployment_status == 'IN_TESTING'}
103                            <br />
104                            {"Hotspot in testing phase"|_}
105                        {/if}
106
107                        {if $nodes[node].node_deployment_status == 'NON_WIFIDOG_NODE' && $nodes[node].is_up != 't'}
108                            <br />
109                            {"Hotspot not monitored"|_}
110                        {/if}
111                    </td>
112
113                    <td>
114                        {if $nodes[node].description}
115                            {$nodes[node].description}
116                            <br />
117                        {/if}
118
119                        {"Opened on"|_} {$nodes[node].creation_date}
120                    </td>
121
122                    <td>
123                        {if $nodes[node].civic_number}
124                            {$nodes[node].civic_number},
125                        {/if}
126                        {if $nodes[node].street_name}
127                            {$nodes[node].street_name}
128                        {/if}
129                        <br/>
130                        {if $nodes[node].city}
131                            {$nodes[node].city},
132                        {/if}
133                        {if $nodes[node].province}
134                            {$nodes[node].province},
135                        {/if}
136                        {if $nodes[node].postal_code}
137                            {$nodes[node].postal_code},
138                        {/if}
139                        {if $nodes[node].country}
140                            {$nodes[node].country}
141                        {/if}
142                        {if $nodes[node].map_url}
143                            - <a href='{$nodes[node].map_url}' target='_new'>{"Map"|_}</a>
144                        {/if}
145                        {if $nodes[node].mass_transit_info}
146                            <br />
147                            {$nodes[node].mass_transit_info}
148                        {/if}
149                        {if $nodes[node].public_phone_number}
150                            <br />
151                            {$nodes[node].public_phone_number}
152                        {/if}
153                        {if $nodes[node].public_email}
154                            <br />
155                            {$nodes[node].public_email}
156                        {/if}
157                    </td>
158                </tr>
159            {/section}
160        </table>
161    </div>
162{*
163    END section MAINCONTENT
164*}
165{/if}
Note: See TracBrowser for help on using the browser.