summaryrefslogtreecommitdiffstats
path: root/tcpproxy-listsmtpentries-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'tcpproxy-listsmtpentries-html.lsp')
-rw-r--r--tcpproxy-listsmtpentries-html.lsp29
1 files changed, 29 insertions, 0 deletions
diff --git a/tcpproxy-listsmtpentries-html.lsp b/tcpproxy-listsmtpentries-html.lsp
new file mode 100644
index 0000000..7cfa651
--- /dev/null
+++ b/tcpproxy-listsmtpentries-html.lsp
@@ -0,0 +1,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>