From 56c9aed5a81e7227b6493389101d447e3ae425ad Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 15 Feb 2008 17:18:51 +0000 Subject: Forgot the view-file. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@726 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-config-html.lsp | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 tinydns-config-html.lsp (limited to 'tinydns-config-html.lsp') diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp new file mode 100755 index 0000000..eea9f6e --- /dev/null +++ b/tinydns-config-html.lsp @@ -0,0 +1,70 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +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") + if (viewonly) then + io.write("\t\t
" .. val.value .. "\n") + else + io.write("\t\t
" .. html.form[val.type](val) .. "\n") + 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("") +end +?> + +

SYSTEM INFO

+ + +

CONFIG

+

General settings

+ + + +

DEGUGGING

+ + + + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + -- cgit v1.2.3