From 63e8c6b82c980876ddc522174970e5b1b9014b06 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Tue, 8 Apr 2008 12:35:04 +0000 Subject: Cleaning up the code. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@954 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-status-html.lsp | 48 +++--------------------------------------------- 1 file changed, 3 insertions(+), 45 deletions(-) (limited to 'tinydns-status-html.lsp') diff --git a/tinydns-status-html.lsp b/tinydns-status-html.lsp index 06b5339..17a1b60 100644 --- a/tinydns-status-html.lsp +++ b/tinydns-status-html.lsp @@ -1,4 +1,6 @@ - + DEBUGGING

DEBUG INFO: CFE

") @@ -6,31 +8,6 @@ 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

PROGRAM SPECIFIC OPTIONS/INFORMATION

Locations

") ---for k,v in pairs(tags) do if (myform) and (myform.value) then local val = myform io.write("\n\t" .. val.label .. "") - io.write("\n\t\t
") for k,v in pairs(myform.value) do io.write(" " .. tostring(k) .. "") @@ -77,7 +45,6 @@ end io.write("") ?> - ") ?> - -DEBUGGING

DEBUG INFO: CFE

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