summaryrefslogtreecommitdiffstats
path: root/tcpproxy-listsmtpfiles-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'tcpproxy-listsmtpfiles-html.lsp')
-rw-r--r--tcpproxy-listsmtpfiles-html.lsp32
1 files changed, 32 insertions, 0 deletions
diff --git a/tcpproxy-listsmtpfiles-html.lsp b/tcpproxy-listsmtpfiles-html.lsp
new file mode 100644
index 0000000..753857b
--- /dev/null
+++ b/tcpproxy-listsmtpfiles-html.lsp
@@ -0,0 +1,32 @@
+<% local view, viewlibrary, page_info, session = ...
+require("viewfunctions")
+%>
+
+<% displaycommandresults({"delsmtpfile"}, session) %>
+
+<H1>Files</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="white-space:nowrap;text-align:left;" class="header">File</TD>
+ </TR>
+<% for i,file 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.."/editsmtpfile?filename="..file, label="Edit "} %>
+ <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/delsmtpfile?filename="..file, label="Delete "} %>
+ </TD>
+ <TD style="white-space:nowrap;"><%= file %></TD>
+ </TR>
+<% end %>
+</TABLE>
+</DL>
+
+<% if viewlibrary and viewlibrary.dispatch_component then
+ local createform = viewlibrary.dispatch_component("createsmtpfile", nil, true) %>
+<H2><%= createform.label %></H2>
+<%
+ createform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createsmtpfile"
+ displayform(createform)
+end %>