From 1889fca8b509381c749d7e418e92cf809ec8d5ce Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 13:41:30 +0000 Subject: Many changes (mostly to use cfe's when sending/receiving things from model/controller/view). git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@676 ab2d0c66-481e-0410-8bed-d214d4d58bed --- syslog-status-html.lsp | 54 +++++++++++++++++++++----------------------------- 1 file changed, 23 insertions(+), 31 deletions(-) (limited to 'syslog-status-html.lsp') diff --git a/syslog-status-html.lsp b/syslog-status-html.lsp index d6f5ced..50889f8 100644 --- a/syslog-status-html.lsp +++ b/syslog-status-html.lsp @@ -6,47 +6,39 @@ io.write(html.cfe_unpack(form)) io.write("") --]] ?> +") + for k,v in pairs(tags) do + if (myform[v]) then + local val = myform[v] + io.write("\t 0) then io.write(" class='error'") end + io.write(">" .. val.label .. "\n") + + io.write("\t\t
" .. val.value .. "\n") + 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

-
0) then io.write(" class='error'") end - io.write(">" .. val.label .. "\n") - - io.write("\t\t
" .. val.value .. "\n") - if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. val.descr .. "

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

" .. val.errtxt .. "

\n") end - io.write("\t\t
\n") - -end ?> -
+informationform(myform,tags) +?>

PROGRAM SPECIFIC OPTIONS/INFORMATION

-
0) then io.write(" class='error'") end - io.write(">" .. val.label .. "\n") - - io.write("\t\t
" .. val.value .. "\n") - if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. val.descr .. "

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

" .. val.errtxt .. "

\n") end - io.write("\t\t
\n") - end -end ?> -
+informationform(myform,tags) +?> -- cgit v1.2.3