741ef7c4668d9803e35a09bcfa3a1b2a2fc0cb7c
[project/luci.git] / modules / admin-mini / luasrc / view / mini / index2.htm
1 <%#
2 LuCI - Lua Configuration Interface
3 Copyright 2008 Steven Barth <steven@midlink.org>
4 Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 -%>
15 <%
16 local iwconfig = luci.sys.wifi.getiwconfig()
17 if next(iwconfig) then 
18 %> 
19 <h2><%:wifi%></h2>
20 <br />
21 <table cellspacing="0" cellpadding="6" class="smalltext">
22 <tr>
23 <th><%:name%></th>
24 <th><%:protocol%></th>
25 <th><%:frequency%></th>
26 <th><%:power%></th>
27 <th><%:bitrate%></th>
28 <th><%:rts%></th>
29 <th><%:frag%></th>
30 <th><%:link%></th>
31 <th><%:signal%></th>
32 <th><%:noise%></th>
33 </tr>
34 <%for k, v in pairs(iwconfig) do
35 %>
36 <tr>
37 <td rowspan="2"><%=k%></td>
38 <td><%=v[1]%></td>
39 <td><%=v.Frequency%></td>
40 <td><%=v["Tx-Power"]%></td>
41 <td><%=v["Bit Rate"]%></td>
42 <td><%=v["RTS thr"]%></td>
43 <td><%=v["Fragment thr"]%></td>
44 <td><%=v["Link Quality"]%></td>
45 <td><%=v["Signal level"]%></td>
46 <td><%=v["Noise level"]%></td>
47 </tr>
48 <tr>
49 <td colspan="4"><strong>ESSID: </strong><%=v.ESSID%></td>
50 <td colspan="5"><strong>BSSID: </strong><%=(v.Cell or v["Access Point"])%></td>
51 </tr>
52 <%end%>
53 </table>
54 <%-end%>