summaryrefslogtreecommitdiffstats
path: root/iptables-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-11-07 15:01:13 +0000
committerTed Trask <ttrask01@yahoo.com>2008-11-07 15:01:13 +0000
commitd37e751caf7d9bf9e33a2837d38e2263c4f370f4 (patch)
tree72481f92e5444f4e4d3964e6906500c1201b789c /iptables-html.lsp
parentfc670b19af9f6dd4027dcec0fc6cc0035860f9e2 (diff)
downloadacf-iptables-d37e751caf7d9bf9e33a2837d38e2263c4f370f4.tar.bz2
acf-iptables-d37e751caf7d9bf9e33a2837d38e2263c4f370f4.tar.xz
Implemented iptables edit/create/delete rule. Doesn't support all parameters yet. Modified list rules to include more info.
git-svn-id: svn://svn.alpinelinux.org/acf/iptables/trunk@1581 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'iptables-html.lsp')
-rw-r--r--iptables-html.lsp12
1 files changed, 9 insertions, 3 deletions
diff --git a/iptables-html.lsp b/iptables-html.lsp
index d9600e1..b27216b 100644
--- a/iptables-html.lsp
+++ b/iptables-html.lsp
@@ -19,16 +19,22 @@
<% if chain.references then io.write(" ("..chain.references.." references)\n") end %>
</TD></TR>
<% for j,line in ipairs(chain) do %>
- <TR><TD STYLE='padding-left:40px'>
+ <TABLE>
+ <TR><TD WIDTH='80px' STYLE='padding-left:40px'>
<a href="<%= page_info.script..page_info.prefix..page_info.controller.."/createrule?table="..tab.."&chain="..chain.name.."&position="..j.."&redir="..page_info.orig_action %>"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Insert Rule"></a>
<a href="<%= page_info.script..page_info.prefix..page_info.controller.."/deleterule?table="..tab.."&chain="..chain.name.."&position="..j.."&redir="..page_info.orig_action %>"><IMG SRC='/skins/static/tango/16x16/actions/list-remove.png' width='16' height='16' title="Delete Rule"></a>
<a href="<%= page_info.script..page_info.prefix..page_info.controller.."/editrule?table="..tab.."&chain="..chain.name.."&position="..j.."&redir="..page_info.orig_action %>"><IMG SRC='/skins/static/tango/16x16/actions/document-properties.png' width='16' height='16' title="Edit Rule"></a>
- </TD><TD><%= line %></TD>
+ </TD>
+ <TD WIDTH='50px'><%= line.packets %></TD><TD WIDTH='50px'><%= line.bytes %></TD>
+ <TD><%= line.rule %></TD>
</TR>
+ </TABLE>
<% end %>
- <TR><TD STYLE='padding-left:40px'>
+ <TABLE>
+ <TR><TD WIDTH='80px' STYLE='padding-left:40px'>
<a href="<%= page_info.script..page_info.prefix..page_info.controller.."/createrule?table="..tab.."&chain="..chain.name.."&redir="..page_info.orig_action %>"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Append Rule"></a>
</TD></TR>
+ </TABLE>
<% end %>
<TR><TD><a href="<%= page_info.script..page_info.prefix..page_info.controller.."/createchain?table="..tab.."&redir="..page_info.orig_action %>"><IMG SRC='/skins/static/tango/16x16/actions/list-add.png' width='16' height='16' title="Create Chain"></a></TD></TR>
</TABLE>