From a2a4702e3003cafbfb41b6e1961eb38004405d72 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 2 Apr 2008 07:16:08 +0000 Subject: Added a expert-tab and updated Makefile git-svn-id: svn://svn.alpinelinux.org/acf/opennhrp/trunk@876 ab2d0c66-481e-0410-8bed-d214d4d58bed --- opennhrp-expert-html.lsp | 113 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 opennhrp-expert-html.lsp (limited to 'opennhrp-expert-html.lsp') diff --git a/opennhrp-expert-html.lsp b/opennhrp-expert-html.lsp new file mode 100644 index 0000000..cf70091 --- /dev/null +++ b/opennhrp-expert-html.lsp @@ -0,0 +1,113 @@ + +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 +?> + +

SYSTEM INFO

+
+ +
+ + +
+

CONFIGURATION

+

Expert config

+

File details

+
+ +
+ +

FILE CONTENT

+ + +

SAVE AND APPLY ABOVE SETTINGS

+
+ +
+ +
+ +') + io.write('

MANAGEMENT

') + io.write('
') + io.write('
' .. cmdform[tags[1]]["label"] .. '
') + io.write('
') + for k,v in pairs(tags) do + if (cmdform[v]) then + io.write(html.form[cmdform[v].type](cmdform[v])) + end + end + io.write('
') + + if (cmdresult) and (cmdresult.action) and (#cmdresult.action.descr > 0) then + io.write('
' .. cmdresult.label .. '
') + io.write('
' .. cmdresult.action.descr .. '
') + end + io.write('
') +end ?> + +DEBUGGING

DEBUG INFO: CFE

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