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

Revision 1082, 7.0 KB (checked in by max-horvath, 7 years ago)

"2006-08-28 Max Horvath <max.horvath@…>

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