diff options
-rw-r--r-- | interfaces-config-html.lsp | 6 | ||||
-rw-r--r-- | interfaces-read-html.lsp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/interfaces-config-html.lsp b/interfaces-config-html.lsp index f0cc8ef..8800577 100644 --- a/interfaces-config-html.lsp +++ b/interfaces-config-html.lsp @@ -22,11 +22,11 @@ for k,v in pairs(myform) do 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;'>" .. myform[v1]['label'] .. "</TD>") + 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>[ <A HREF='update?iface=" .. myform.name.value .. "'>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</A> ]</TD></TR>") + 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>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>") + io.write("<TD STYLE='border:none;'>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>") end end end diff --git a/interfaces-read-html.lsp b/interfaces-read-html.lsp index 1884e3d..b2b0485 100644 --- a/interfaces-read-html.lsp +++ b/interfaces-read-html.lsp @@ -27,13 +27,13 @@ for k,v in pairs(myform) do if (myform.name.value ~= "") then io.write("<DT><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</DT><DD>") io.write("<TABLE STYLE='margin-bottom:10px'>") --- io.write("<TR><TD COLSPAN=2 STYLE='font-weight:bold;'><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</TD></TR>") +-- io.write("<TR><TD COLSPAN=2 STYLE='font-weight:bold;border:none;'><IMG SRC='/static/tango/16x16/devices/network-wired.png' width='16' height='16'> " .. (myform.name.value or '') .. "</TD></TR>") local tags = {"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;'>" .. myform[v1]['label'] .. "</TD>") - io.write("<TD>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>") + io.write("<TR><TD WIDTH='120px' STYLE='font-weight:bold;border:none;'>" .. myform[v1]['label'] .. "</TD>") + io.write("<TD STYLE='border:none;'>" .. string.gsub(myform[v1]['value'], "\n", "<BR>") .. "</TD></TR>") end end io.write("</TABLE>") |