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-expert-html.lsp | 137 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 94 insertions(+), 43 deletions(-) (limited to 'syslog-expert-html.lsp') diff --git a/syslog-expert-html.lsp b/syslog-expert-html.lsp index 527ce22..5907a7a 100644 --- a/syslog-expert-html.lsp +++ b/syslog-expert-html.lsp @@ -1,62 +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") -

SYSTEM INFO

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

- -

CONFIGURATION

-

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

+ + -
- - -

Save and apply above settings

-
-
Apply settings
-
-
+ + +

MANAGEMENT

+
+
+
+ + + + + +
-

MANAGEMENT

+ 0) then ?> +
Previous action result
+
+ +
+
-
-
Program controll-panel
-
- - - -
-
- -
Previous action result
-
- -
+ DEBUGGING

DEBUG INFO: CFE

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