summaryrefslogtreecommitdiffstats
path: root/interfaces-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces-config-html.lsp')
-rw-r--r--interfaces-config-html.lsp39
1 files changed, 0 insertions, 39 deletions
diff --git a/interfaces-config-html.lsp b/interfaces-config-html.lsp
deleted file mode 100644
index 8f61b4b..0000000
--- a/interfaces-config-html.lsp
+++ /dev/null
@@ -1,39 +0,0 @@
-<? local form = ...
-require("viewfunctions")
-?>
-<?
---[[ DEBUG INFORMATION
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
-?>
-
-<H1>INTERFACES</H1>
-<H2>Edit interfaces</H2>
-<DL>
-<?
-local myform = form.iface
-for k,v in pairs(myform) do
- local myform=v
- if (myform.name.value ~= "") then
- io.write("<DT><IMG SRC='/skins/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</DT><DD>")
- io.write("<TABLE STYLE='margin-bottom:10px'>")
- local tags = { "edit", "method", "address", "netmask", "gateway", "provider", "hostname", "pre-up", "up", "down", "post-down", "comment", }
- for k1,v1 in pairs(tags) do
- if (myform[v1]['value'] ~= "") then
- io.write("<TR><TD WIDTH='120px' STYLE='font-weight:bold;border:none;'>" .. myform[v1]['label'] .. "</TD>")
- if (myform[v1]['type'] == "link") then
- io.write("<TD STYLE='border:none;'>[ <A HREF='update?iface=" .. myform.name.value .. "'>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</A> ]</TD></TR>")
- else
- io.write("<TD STYLE='border:none;'>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>")
- end
- end
- end
- io.write("</TABLE>")
- end
-
-end
-io.write("</DD>")
-?>
-</DL>