diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-08-20 19:02:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-08-20 19:02:16 +0000 |
commit | 8730ef0997957b46d392b981913d8934373e980a (patch) | |
tree | b9cd2e28088756e1441e76790242a5890c14b945 /tcpproxy-listsmtpfiles-html.lsp | |
parent | 4f7c42c67f5e22295d178b924861f150c35132c0 (diff) | |
download | acf-tcpproxy-8730ef0997957b46d392b981913d8934373e980a.tar.bz2 acf-tcpproxy-8730ef0997957b46d392b981913d8934373e980a.tar.xz |
Modified tcpproxy to add in SMTP proxy support. Entries are directly edited, this still has to be improved.
git-svn-id: svn://svn.alpinelinux.org/acf/tcpproxy/trunk@1388 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tcpproxy-listsmtpfiles-html.lsp')
-rw-r--r-- | tcpproxy-listsmtpfiles-html.lsp | 32 |
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 %> |