Added missing value escaping
[project/luci.git] / modules / admin-mini / luasrc / view / mini / iwscan.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 <%+header%>
16 <h1><%:iwscan%></h1>
17 <p><%:iwscan1%></p>
18
19 <br />
20 <table cellspacing="0" cellpadding="6" class="smalltext">
21 <tr>
22 <th><%:interface%></th>
23 <th>ESSID</th>
24 <th>BSSID</th>
25 <th><%:mode%></th>
26 <th><%:channel%></th>
27 <th><%:iwscan_encr%></th>
28 <th><%:iwscan_link%></th>
29 <th><%:iwscan_signal%></th>
30 <th><%:iwscan_noise%></th>
31 </tr>
32 <%for iface, cells in pairs(luci.sys.wifi.iwscan()) do
33 for i, cell in ipairs(cells) do
34 %>
35 <tr>
36 <td><%=iface%></td>
37 <td><%=luci.util.pcdata(cell.ESSID)%></td>
38 <td><%=cell.Address%></td>
39 <td><%=cell.Mode%></td>
40 <td><%=(cell.Channel or cell.Frequency or "")%></td>
41 <td><%=cell["Encryption key"]%></td>
42 <td><%=cell.Quality%></td>
43 <td><%=cell["Signal level"]%></td>
44 <td><%=cell["Noise level"]%></td>
45 </tr>
46 <%
47 end
48 end
49 %>
50 </table>
51 <br />
52 <%+footer%>