From 63f7071f40482ce89b22ceed21129684dd892973 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 5 Mar 2008 12:20:30 +0000 Subject: Added some more functionallity to the config-page git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@817 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-html.lsp | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 shorewall-html.lsp (limited to 'shorewall-html.lsp') diff --git a/shorewall-html.lsp b/shorewall-html.lsp new file mode 100644 index 0000000..878e7ac --- /dev/null +++ b/shorewall-html.lsp @@ -0,0 +1,88 @@ + +DEBUGGING

DEBUG INFO: CFE

") +io.write(html.cfe_unpack(form)) +io.write("
") +--]] +?> + + 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "") + io.write("\n\t\t
") + if (viewtype == "viewonly") then + io.write(val.value) + elseif (val.type == "radio") and (type(val.option) == "table") and (#val.option > 0) then + io.write("") + for k1,v1 in pairs(val.option) do + io.write(tostring(v1.label) .. ":") + io.write("") + end + io.write("") + else + io.write(html.form[val.type](val)) + end + if (val.descr) and (#val.descr > 0) then io.write("\n\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

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

" .. string.gsub(val.errtxt, "\n", "
") .. "

") end + io.write("\n\t\t
\n") + end + end +end +?> + + 0) then + v.class = "error" + io.write(" class='error'") + end + io.write(">" .. v.label .. "") + io.write("\n\t\t
") + io.write(html.form[v.type](v)) + if (v.descr) and (#v.descr > 0) then io.write("\n\t\t

" .. string.gsub(v.descr, "\n", "
") .. "

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

" .. string.gsub(v.errtxt, "\n", "
") .. "

") end + io.write("\n\t\t
\n") + end + end +end +?> + + +

EDIT PROPERTIES

+
+ + + + +
+ +DEBUGGING

DEBUG INFO: CFE

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