summaryrefslogtreecommitdiffstats
path: root/shorewall-edit-html.lsp
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
committerNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
commitee7b3354f03abc865abe51a5ccea07b376d932ce (patch)
tree763f1dbbc436dd37e2bdcce8f9696a0204aa64e0 /shorewall-edit-html.lsp
parent273d7e350c05aaa70f2481969a63d8230d6dab61 (diff)
downloadacf-shorewall-ee7b3354f03abc865abe51a5ccea07b376d932ce.tar.bz2
acf-shorewall-ee7b3354f03abc865abe51a5ccea07b376d932ce.tar.xz
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'shorewall-edit-html.lsp')
-rw-r--r--shorewall-edit-html.lsp36
1 files changed, 18 insertions, 18 deletions
diff --git a/shorewall-edit-html.lsp b/shorewall-edit-html.lsp
index e6231b0..f808a72 100644
--- a/shorewall-edit-html.lsp
+++ b/shorewall-edit-html.lsp
@@ -1,44 +1,44 @@
-<? local form, viewlibrary = ...
+<% local form, viewlibrary = ...
require("viewfunctions")
-?>
+%>
-<? if viewlibrary and viewlibrary.dispatch_component then
+<% if viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("statusbasic")
-end ?>
+end %>
<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>
-<? if (form.config.filecontent) then ?>
+<% if (form.config.filecontent) then %>
<H3>FILE CONTENT</H3>
-<input type="hidden" value="<?= myform.filename.value ?>" name="<?= myform.filename.name ?>">
-<?
+<input type="hidden" value="<%= myform.filename.value %>" name="<%= myform.filename.name %>">
+<%
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>
-<? end ?>
+<% end %>
-<?
+<%
-- Management buttons
local myform = form.management
local tags = { "start", "stop", "restart" }
@@ -47,6 +47,6 @@ if (myform) then
displaymanagement(myform,tags)
io.write("</DL>")
end
-?>
+%>
</form>