From a084d26cb2a9226faa39750e32c3fbacf217c16c Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 4 Apr 2008 15:16:09 +0000 Subject: Creating a expert tab so you can edit the config-files. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@945 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-expert-html.lsp | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tinydns-expert-html.lsp (limited to 'tinydns-expert-html.lsp') diff --git a/tinydns-expert-html.lsp b/tinydns-expert-html.lsp new file mode 100644 index 0000000..1437ad8 --- /dev/null +++ b/tinydns-expert-html.lsp @@ -0,0 +1,69 @@ + +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

+ + +

CONFIGURATION

+ +

Expert config

+

List of configfiles

+ + + + + + +--]]?> + + + + + + +
File
+ +DEBUGGING

DEBUG INFO: CFE

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