blob: 7cfa651a539dfb0eeb51268df10ac2d5dca7b4d9 (
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
|
<% local view, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
<% displaycommandresults({"delsmtpentry"}, session) %>
<H1>Interface Entries</H1>
<DL>
<TABLE>
<TR style="background:#eee;font-weight:bold;">
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Action</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Interface</TD>
<TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">IP Address</TD>
<TD style="white-space:nowrap;text-align:left;" class="header">Command Entry</TD>
</TR>
<% for i,interface in ipairs(view.value) do %>
<TR>
<TD style="padding-right:20px;white-space:nowrap;">
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Edit "} %>
<%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpentry?ipaddr="..(interface.ipaddr or interface.interface), label="Delete "} %>
</TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= interface.interface or "" %></TD>
<TD style="padding-right:20px;white-space:nowrap;"><%= interface.ipaddr or "" %></TD>
<TD style="white-space:nowrap;"><%= interface.cmd or "" %></TD>
</TR>
<% end %>
</TABLE>
</DL>
|