From 335d503c6f8c54ab66a02fc8454525b628bb9255 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Sat, 16 Feb 2008 11:13:56 +0000 Subject: Added a sampleconfig that shows some output. Still a long way to go git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@728 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-status-html.lsp | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'tinydns-status-html.lsp') diff --git a/tinydns-status-html.lsp b/tinydns-status-html.lsp index b8ac060..27fe91a 100644 --- a/tinydns-status-html.lsp +++ b/tinydns-status-html.lsp @@ -39,6 +39,70 @@ local tags = { "status", "version", } displayinfo(myform,tags,"viewonly") ?> +

PROGRAM SPECIFIC OPTIONS/INFORMATION

+") +--for k,v in pairs(tags) do +if (myform[v]) and (myform[v]["value"]) then + local val = myform[v] + io.write("\t 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "\n") + + + io.write("\t\t
\n") + for k,v in pairs(myform[v]["value"]) do + io.write(" " .. tostring(k) .. "") + for kk,vv in pairs(v) do + io.write(tostring("
" ..vv.option[3]).. "\n") + end + io.write("
") + end + + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") +end +--end +io.write("") +?> + +") +--for k,v in pairs(tags) do +if (myform[v]) and (myform[v]["value"]) then + local val = myform[v] + io.write("\t 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "\n") + + + io.write("\t\t
\n") + for k,v in pairs(myform[v]["value"]) do + io.write(" " .. tostring(k) .. "") + for kk,vv in pairs(v) do + io.write(tostring("
" ..vv.option[3]).. "\n") + end + io.write("
") + end + + if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end + if (#val.errtxt > 0) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end + io.write("\t\t
\n") +end +--end +io.write("") +?> DEBUGGING

DEBUG INFO: CFE

") -- cgit v1.2.3