diff options
Diffstat (limited to 'fetchmail-expert-html.lsp')
-rw-r--r-- | fetchmail-expert-html.lsp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/fetchmail-expert-html.lsp b/fetchmail-expert-html.lsp index ca6e6da..533c32f 100644 --- a/fetchmail-expert-html.lsp +++ b/fetchmail-expert-html.lsp @@ -1,51 +1,51 @@ -<? local form = ... +<% local form = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(form)) io.write("</span>") --]] -?> +%> <H1>SYSTEM INFO</H1> <DL> -<? +<% local myform = form.status local tags = { "status", "version", "autostart", } displayinfo(myform,tags,"viewonly") -?> +%> </DL> <H1>CONFIGURATION</H1> -<? local myform = form.config ?> -<form action="<?= form.option.script .. "/" .. form.option.prefix .. - form.option.controller .. "/" .. form.option.action ?>" method="POST"> +<% local myform = form.config %> +<form action="<%= form.option.script .. "/" .. form.option.prefix .. + form.option.controller .. "/" .. form.option.action %>" method="POST"> <H2>EXPERT CONFIGURATION</H2> <H3>FILE DETAILS</H3> <DL> -<? +<% local tags = { "filename", "filesize", "mtime", "sumerrors" } displayinfo(myform,tags,"viewonly") -?> +%> </DL> <H3>FILE CONTENT</H3> -<? +<% io.write(html.form[form.config.filecontent.type](form.config.filecontent)) -?> +%> <H2>SAVE AND APPLY ABOVE SETTINGS</H2> <DL> -<? +<% local tags = { "cmdsave", } displayinfo(myform,tags) -?> +%> </DL> -<? +<% -- Management buttons local myform = form.management local tags = { "start", "stop", "restart" } @@ -54,5 +54,5 @@ if (myform) then displaymanagement(myform,tags) io.write("</DL>") end -?> +%> </form> |