diff options
Diffstat (limited to 'tinydns-config-html.lsp')
-rwxr-xr-x | tinydns-config-html.lsp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp index eea9f6e..b3f9053 100755 --- a/tinydns-config-html.lsp +++ b/tinydns-config-html.lsp @@ -47,6 +47,48 @@ local tags = { "listen", } displayinfo(myform,tags) ?> +<H2>Locations</H2> +<? +local v = "locations" +--displayinfo(myform,tags) +io.write("<DL>") +--for k,v in pairs(tags) do +if (myform[v]) and (myform[v]["value"]) then + local val = myform[v] + io.write("\t<DT") + if (#val.errtxt > 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "</DT>\n") + + + io.write("\t\t<DD>\n") + for k,v in pairs(myform[v]["value"]) do + io.write("<IMG SRC='/static/tango/16x16/places/start-here.png' width='16' height='16' alt> <B>" .. tostring(k) .. "</B>") + for kk,vv in pairs(v) do + io.write(tostring("<BR>" ..vv.option[3]).. "\n") + end + io.write("<BR>") + end + + if (val.descr) and (#val.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(val.descr, "\n", "<BR>") .. "</P>\n") end + if (#val.errtxt > 0) then io.write("\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>\n") end + io.write("\t\t</DD>\n") +end +--end +io.write("</DL>") +?> + + + + + + + + + + <? ---[[ ?> <H1>DEGUGGING</H1> <? |