From ee7b3354f03abc865abe51a5ccea07b376d932ce Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Jul 2008 06:48:16 +0000 Subject: use <% %> instead of git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed --- shorewall-config-html.lsp | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) (limited to 'shorewall-config-html.lsp') diff --git a/shorewall-config-html.lsp b/shorewall-config-html.lsp index ab830f0..5704df8 100644 --- a/shorewall-config-html.lsp +++ b/shorewall-config-html.lsp @@ -1,4 +1,4 @@ -DEBUGGING

DEBUG INFO: CFE

") @@ -28,162 +28,162 @@ local descr = { ['width'] = { "100", "70", "70", "70", "100", } }, } -?> +%> - +end %> - +<% local myform = form.config %>

GUIDED CONFIGURATION

Defince zones

- +<% local myform = "zones" %> - - - +<% for i=1,#descr[myform]['labels'] do %> + +<% end %> - +%> - - - + <% for ii=1,#descr[myform]['labels'] do %> + + <% end %> - +%>
">"><% io.write(descr[myform]['labels'][i] or "") %>
<% io.write(form.config[myform]['option'][i][ii] or "") %>

Interfaces

- +<% local myform = "interfaces" %> - - - +<% for i=1,#descr[myform]['labels'] do %> + +<% end %> - +%> - - - + <% for ii=1,#descr[myform]['labels'] do %> + + <% end %> - +%>
">"><% io.write(descr[myform]['labels'][i] or "") %>
<% io.write(form.config[myform]['option'][i][ii] or "") %>

Default policy

- +<% local myform = "policy" %> - - - +<% for i=1,#descr[myform]['labels'] do %> + +<% end %> - +%> - - - + <% for ii=1,#descr[myform]['labels'] do %> + + <% end %> - +%>
">"><% io.write(descr[myform]['labels'][i] or "") %>
<% io.write(form.config[myform]['option'][i][ii] or "") %>

Rules

- +%> - - - +<% for k,i in pairs(val) do %> + +<% end %> - +%> - - - + <% for ii,vv in pairs(val) do %> + + <% end %> - +%>
">"><% io.write(descr[myform]['labels'][i] or "") %>
<% io.write(form.config[myform]['option'][i][ii] or "") %>

Masq

- +<% local myform = "masq" %> - - - +<% for i=1,#descr[myform]['labels'] do %> + +<% end %> - +%> - - - + <% for ii=1,#descr[myform]['labels'] do %> + + <% end %> - +%>
">"><% io.write(descr[myform]['labels'][i] or "") %>
<% io.write(form.config[myform]['option'][i][ii] or "") %>
-- cgit v1.2.3