From be8a05d0e4ae337d2cee99c3197f6ef5bf5c5779 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Tue, 8 Apr 2008 15:13:38 +0000 Subject: Cleaning up code. git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@961 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-check-html.lsp | 91 +++++++++++------------------------------------- 1 file changed, 20 insertions(+), 71 deletions(-) (limited to 'shorewall-check-html.lsp') diff --git a/shorewall-check-html.lsp b/shorewall-check-html.lsp index 3bd8831..7cfe4bf 100644 --- a/shorewall-check-html.lsp +++ b/shorewall-check-html.lsp @@ -1,51 +1,22 @@ - - -") - 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 + ") - 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
" .. html.form[val.type](val) .. "\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 +--[[ DEBUG INFORMATION +io.write("

DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(view)) +io.write("
") +--]] ?> -

SYSTEM INFO

+
+

CONFIGURATION

@@ -55,37 +26,15 @@ informationform(myform,tags) io.write(html.form[form.config.checkresult.type](form.config.checkresult)) ?> - - -
-

MANAGEMENT

-
-
-
- - - - - -
- - 0) then ?> -
Previous action result
-
- -
-
- - - +
DEBUGGING

DEBUG INFO: CFE

") -io.write(html.cfe_unpack(form)) -io.write("
") ---]] +-- Management buttons +local myform = form.management +local tags = { "restart" } +if (myform) then + io.write("

MANAGEMENT

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