summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r--shorewall-edit-html.lsp10
1 files changed, 6 insertions, 4 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
index bc9b409..c5f9e6e 100644
--- a/shorewall-edit-html.lsp
+++ b/shorewall-edit-html.lsp
@@ -8,7 +8,6 @@ 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]
@@ -22,12 +21,10 @@ function informationform(myform,tags)
io.write("\t\t</DD>\n")
end
end
- io.write("</DL>")
end
?>
<?
function configform(myform,tags)
- io.write("<DL>")
for k,v in pairs(tags) do
if (myform[v]) then
local val = myform[v]
@@ -41,17 +38,18 @@ function configform(myform,tags)
io.write("\t\t</DD>\n")
end
end
- io.write("</DL>")
end
?>
<H1>SYSTEM INFO</H1>
+<DL>
<?
local myform = form.status
local tags = { "status", "version", }
informationform(myform,tags)
?>
+</DL>
<H1>CONFIGURATION</H1>
<? local myform = form.config ?>
@@ -60,6 +58,7 @@ informationform(myform,tags)
<H2>EXPERT CONFIGURATION</H2>
<H3>FILE DETAILS</H3>
+<DL>
<?
local tags = { "filename", }
informationform(myform,tags)
@@ -71,6 +70,7 @@ informationform(myform,tags)
local tags = { "filesize", "mtime", "sumerrors" }
informationform(myform,tags)
?>
+</DL>
<H3>FILE CONTENT</H3>
<input type="hidden" value="<?= myform.filename.value ?>" name="<?= myform.filename.name ?>">
@@ -79,10 +79,12 @@ io.write(html.form[form.config.filecontent.type](form.config.filecontent))
?>
<H2>SAVE AND APPLY ABOVE SETTINGS</H2>
+<DL>
<?
local tags = { "cmdsave", }
configform(myform,tags)
?>
+</DL>
</form>
<? end ?>