diff options
Diffstat (limited to 'syslog-status-html.lsp')
-rw-r--r-- | syslog-status-html.lsp | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/syslog-status-html.lsp b/syslog-status-html.lsp index 5b5a8f7..f68147d 100644 --- a/syslog-status-html.lsp +++ b/syslog-status-html.lsp @@ -1,4 +1,5 @@ -<? local form = ... ?> +<? local form, viewlibrary = ... ?> +<? require("viewfunctions") ?> <? --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") @@ -6,39 +7,17 @@ io.write(html.cfe_unpack(form)) io.write("</span>") --]] ?> -<? -function informationform(myform,tags) - io.write("<DL>") - for k,v in pairs(tags) do - if (myform[v]) then - local val = myform[v] - io.write("\t<DT") - if (val.errtxt) then io.write(" class='error'") end - io.write(">" .. val.label .. "</DT>\n") - - io.write("\t\t<DD>" .. val.value .. "\n") - if (val.descr) and (#val.descr > 0) then io.write("\t\t<P CLASS='descr'>" .. string.gsub(val.descr, "\n", "<BR>") .. "</P>\n") end - if (val.errtxt) then io.write("\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>\n") end - io.write("\t\t</DD>\n") - end - end - io.write("</DL>") -end -?> -<H1>SYSTEM INFO</H1> -<? -local myform = form.status -local tags = { "status", "version", } -informationform(myform,tags) -?> +<? ---[[ ?> +<? if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("basicstatus") +end ?> +<? --]] ?> <H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2> +<DL> <? -local myform = form.status -local tags = { "logfile", "remotelogging", } -informationform(myform,tags) +displayitem(form.value.logfile) +displayitem(form.value.remote) ?> - - - +</DL> |