From 2eb595dbab74f76c42f44193945eba48144873ba Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 4 Feb 2008 13:57:48 +0000 Subject: Status-info: Works and shows some information (not sure enabled/disabled should be there). Config-tab: Only graphical layout is taking shape. No real data is shown. Data can't be changed. Expert-tab: Works as it should (probably all done). git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@687 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchmail-expert-html.lsp | 113 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 fetchmail-expert-html.lsp (limited to 'fetchmail-expert-html.lsp') diff --git a/fetchmail-expert-html.lsp b/fetchmail-expert-html.lsp new file mode 100644 index 0000000..0a36abb --- /dev/null +++ b/fetchmail-expert-html.lsp @@ -0,0 +1,113 @@ + +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 +?> + + +

SYSTEM INFO

+ + +

CONFIGURATION

+ +
" method="POST"> + +

EXPERT CONFIGURATION

+

FILE DETAILS

+ + +

FILE CONTENT

+ + +

SAVE AND APPLY ABOVE SETTINGS

+ +
+ + + +
+

MANAGEMENT

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

DEBUG INFO: CFE

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