summaryrefslogtreecommitdiffstats
path: root/shorewall-html.lsp
blob: a875a1634ecff345d1fb7e3b9ebc6805f5e36d76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<? 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>")
--]]
?>

<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST">
<H1>EDIT PROPERTIES</H1>
<DL>
<? 
local myform = form.edit 
local tags = {}
for i=1,#myform do
	table.insert(tags,i)
end
displayinfo(myform,tags)
?>

<?
local tags = {"cmdsave", "cmddelete", }
local myform = form
displayinfo(myform,tags)
?>

<? -- Add the field that holds the filename
local myform = form.edit.filename
if (type(myform) == "table") then
	io.write(html.form[myform.type](myform))
end
local myform = form.edit.orgrecord
if (type(myform) == "table") then
	io.write(html.form[myform.type](myform))
end
local myform = form.edit.actiontype
if (type(myform) == "table") then
	io.write(html.form[myform.type](myform))
end
?>

</DL>

</form>