From 37b4a15a9a0e07504188b96567d500085b035b4d Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 1 Feb 2008 18:14:36 +0000 Subject: Changed shorewall so that it reports/uses cfe's instead! git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@682 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-edit-html.lsp | 159 +++++++++++++++++++++++++++++++----------------- 1 file changed, 104 insertions(+), 55 deletions(-) (limited to 'shorewall-edit-html.lsp') diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp index 3e7a472..bc9b409 100644 --- a/shorewall-edit-html.lsp +++ b/shorewall-edit-html.lsp @@ -1,73 +1,122 @@ - - -

SYSTEM INFO

- -
-
Program status
-
-
- -
-
Program version
-
-
- -

CONFIGURATION

+ +DEBUGGING

DEBUG INFO: CFE

") +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 +?> +") + 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 +?> -

Expert config

-

File details

+

SYSTEM INFO

+ -
-
File name
-
-
+

CONFIGURATION

+ +
" method="POST"> -
-
File size
-
-
+

EXPERT CONFIGURATION

+

FILE DETAILS

+ -
-
Last modified
-
-
+ -

File content

+ - - - +

FILE CONTENT

+ + -

Save and apply above settings

-
-
Apply settings
-
-
+

SAVE AND APPLY ABOVE SETTINGS

+
-

MANAGEMENT

+ -
-
Program controll-panel
-
- - - -
-
+ +
+

MANAGEMENT

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

DEBUG INFO: CFE

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