blob: 00a419a4e55f4fd3e7e6a8402ee8adaa84599131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<? local view = ... ?>
<? --[[ Notes
conflistfiles = Filename on config-files
test
]]-- ?>
<html>
<body>
<h1>Welcome</h1>
<h2>Available configs</h2>
<TABLE BORDER=0 WIDTH="100%">
<TR style="background:#eee;font-weight:bold;vertical-align:top;">
<TD WIDTH=100>Config</TD>
<TD WIDTH=70>Type</TD>
<TD WIDTH=70>Status</TD>
<TD>Connected Clients</TD>
</TR>
<? for i = 1, table.maxn(view.conflistfiles) do ?>
<TR >
<TD><?= html.link{value = view.url .. "/" .. view.conflistfiles[i].type .. "_config?config=" .. view.conflistfiles[i].value , label=view.conflistfiles[i].value } ?></TD>
<TD><?= view.conflistfiles[i].type ?></TD>
<TD><? if view.conflistfiles[i].init then ?><?= view.conflistfiles[i].init ?><? end ?></TD>
<TD>xxx</TD>
</TR>
<? end ?>
</TABLE>
<h2>System info</h2>
<dt>Program version</dt>
<dd><?= view.version ?></dd>
</body>
</html>
|