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-status-html.lsp | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) (limited to 'snort-status-html.lsp') diff --git a/snort-status-html.lsp b/snort-status-html.lsp index 5c35e30..c7c8cef 100644 --- a/snort-status-html.lsp +++ b/snort-status-html.lsp @@ -1,17 +1,37 @@ -

SYSTEM INFO

- -
-
Program status
-
-
- -
-
Program version
-
-
+ 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 +?> +

SYSTEM INFO

+
+ +

PROGRAM SPECIFIC OPTIONS/INFORMATION

-- cgit v1.2.3