From f14ce45bcdcbbe99cb5693966019d0deb39371e5 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 3 Mar 2008 14:55:02 +0000 Subject: Some changes to get 'save' button to work in expert-tab git-svn-id: svn://svn.alpinelinux.org/acf/snort/trunk@785 ab2d0c66-481e-0410-8bed-d214d4d58bed --- snort-expert-html.lsp | 120 +++++++++++++++++++++++++++++--------------------- 1 file changed, 71 insertions(+), 49 deletions(-) (limited to 'snort-expert-html.lsp') diff --git a/snort-expert-html.lsp b/snort-expert-html.lsp index ab2ee56..2217089 100644 --- a/snort-expert-html.lsp +++ b/snort-expert-html.lsp @@ -6,69 +6,91 @@ io.write(html.cfe_unpack(view)) io.write("") --]] ?> -

SYSTEM INFO

- -
-
Program status -
-
+ 0) then + val.class = "error" + io.write(" class='error'") + end + io.write(">" .. val.label .. "\n") + if (viewonly) then + io.write("\t\t
" .. val.value .. "\n") + else + io.write("\t\t
" .. html.form[val.type](val) .. "\n") + end + 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 +end +?> -
-
Program version
-
-
+

SYSTEM INFO

+
+ +
+

CONFIGURATION

-

Expert config

-

File details

-
-
File name
-
+
-
-
File size
-
-
+

FILE CONTENT

+ +

SAVE AND APPLY ABOVE SETTINGS

-
Last modified
-
+
-

File content

- - - - - -

Save and apply above settings

-
-
Apply settings
-
-
-

MANAGEMENT

- -
-
Program controll-panel
-
- - - -
-
- - -
-
Previous action result
-
-
- +') + 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 ?>