diff options
Diffstat (limited to 'dnscache-status-html.lsp')
-rw-r--r-- | dnscache-status-html.lsp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dnscache-status-html.lsp b/dnscache-status-html.lsp index b23ad5a..a57a3c6 100644 --- a/dnscache-status-html.lsp +++ b/dnscache-status-html.lsp @@ -25,5 +25,25 @@ local myform = form.status local tags = { "ip", "cachesize", } displayinfo(myform,tags,"viewonly") ?> + +<? +local myform = form.status.servers +io.write("\t<DT") +if (myform.errtxt) then io.write(" class='error'") end +io.write(">" .. myform.label .. "</DT>\n") +io.write("\t\t<DD>\n") +for k,v in pairs(myform.value or {}) do + io.write("\t\t\t<TABLE STYLE='margin-bottom:10px;'>") + io.write("\n\t\t\t<TR><TD STYLE='font-weight:bold;'><IMG SRC='/static/tango/16x16/status/network-idle.png' width='16' height='16' alt> " .. v .. "</TD><TD></TD></TR>\n") + for k1,v1 in pairs(myform.option[v]) do + io.write("\n\t\t\t<TR STYLE='padding-bottom:10px;'><TD WIDTH='150px' STYLE='padding-left:30px;'>"..v1) + end + + io.write("\t\t\t</TABLE>") +end +io.write("\t\t</DD>\n") +?> + + </DL> |