root/trunk/wifidog-auth/wifidog/templates/node_list.html @ 1058

Revision 1058, 2.1 KB (checked in by fproulx, 7 years ago)

2006-05-22 François Proulx <francois.proulx@…>

  • Added generateFromArray parameter (max_length)
  • Restricts select content ui combo box to 40 chars
  • Added Smarty plugin modifier.fsize_format.php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<div id="node_list">
2        <h3>{"Status of all nodes of the"|_} {$hotspot_network_name} {"network"|_}</h3>
3        <table>
4                <thead>
5                <tr>
6                        <th>
7                                <a href="?sort_by=last_heartbeat_user_agent">{"Status"|_}</a>
8                                {if $sort_by_param == "last_heartbeat_user_agent"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
9                        </th>
10                        <th>
11                                <a href="?sort_by=node_id">{"Id"|_}</a>
12                                {if $sort_by_param == "node_id"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
13                        </th>
14                        <th>
15                                <a href="?sort_by=name">{"Name"|_}</a>
16                                {if $sort_by_param == "name"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
17                        </th>
18                        <th>{"Local content demo"|_}</th>
19                        <th>
20                                <a href="?sort_by=creation_date">{"Opened on"|_}</a>
21                                {if $sort_by_param == "creation_date"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
22                        </th>
23                        <th>
24                                <a href="?sort_by=num_online_users">{"Online users"|_}</a>
25                                {if $sort_by_param == "num_online_users"}<img src="{$common_images_url}sort_by_asc.gif">{/if}
26                        </th>
27                </tr>
28                </thead>
29        {section name=node loop=$nodes}
30                <tr class="{cycle values="odd,even"}">
31                    <td class="status">
32                    {if $nodes[node].online == 't'}
33                    <img src='{$smarty.const.COMMON_IMAGES_URL}HotspotStatus/up.gif'>
34                    {else}
35                    <img src='{$smarty.const.COMMON_IMAGES_URL}HotspotStatus/down.gif'>
36                    {$nodes[node].duration.days} {"days"|_} {$nodes[node].duration.hours}{"h"|_} {$nodes[node].duration.minutes}{"min"|_}<br />
37                    {/if}
38                    {$nodes[node].last_heartbeat_user_agent}
39                    </td>
40                    <td>{$nodes[node].node_id}</td>
41                    <td>{$nodes[node].name}</td>
42                    <td>
43                    <a href='{$smarty.const.BASE_SSL_PATH}login/index.php?gw_id={$nodes[node].node_id}&gw_address=127.0.0.1&gw_port=80'>{"Login page"|_}</a><br />
44                    <a href='{$smarty.const.BASE_URL_PATH}portal/index.php?gw_id={$nodes[node].node_id}'>{"Portal page"|_}</a>
45                    </td>
46                    <td style="font-size: 8pt;">{$nodes[node].creation_date}<br>
47                    {$nodes[node].node_deployment_status}
48                    </td>
49                    <td>
50                    {if $nodes[node].num_online_users != 0}
51                    {$nodes[node].num_online_users}
52                    {/if}
53                    </td>
54                </tr>
55        {/section}
56        </table>
57</div>
Note: See TracBrowser for help on using the browser.