diff options
Diffstat (limited to 'dansguardian-category-html.lsp')
-rw-r--r-- | dansguardian-category-html.lsp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dansguardian-category-html.lsp b/dansguardian-category-html.lsp index 475e750..6d6115c 100644 --- a/dansguardian-category-html.lsp +++ b/dansguardian-category-html.lsp @@ -1,4 +1,4 @@ -<? +<% require("viewfunctions") local form = ... local data = form.option @@ -18,23 +18,23 @@ require("viewfunctions") end end -?> +%> -<? +<% --[[ 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.info local tags = { "status", "version", "autostart", } displayinfo(myform,tags,"viewonly") -?> +%> </DL> <h1>Modify Categories</h1> @@ -42,7 +42,7 @@ displayinfo(myform,tags,"viewonly") <h2>Category list</h2> <form action="" method="POST"> <dl> -<? +<% local myform = form["service"]["config"]["categories"] for k,v in ipairs( myform ) do io.write("<DT ") @@ -68,7 +68,7 @@ for k,v in ipairs( myform ) do io.write("</TABLE></DD>") --io.write( "<BR><input type=\"checkbox\" name=\"cats\" value=\"" .. v .. "\"> " .. v .. "\n" ) end -?> +%> </dl> </form> @@ -76,9 +76,9 @@ end <h1>MANAGEMENT</h1> <form action="" method="POST"> <dl> -<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <? io.write( srv1fill ) ?>> -<input class="submit" type="submit" name="srvcmd" value="stop" <? io.write( srv2fill ) ?>> -<input class="submit" type="submit" name="srvcmd" value="restart" <? io.write( srv2fill ) ?>> -<? if (service.message) and (service.message.descr) and (#service.message.descr > 0) then ?><pre><? io.write( service.message.descr ) ?></pre><? end ?></dd> +<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <% io.write( srv1fill ) %>> +<input class="submit" type="submit" name="srvcmd" value="stop" <% io.write( srv2fill ) %>> +<input class="submit" type="submit" name="srvcmd" value="restart" <% io.write( srv2fill ) %>> +<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %><pre><% io.write( service.message.descr ) %></pre><% end %></dd> </dl> </form> |