[Main menu]
- \n\t\t\t\t
- \t
- \n")
local cat, group
local class
for k,v in ipairs(mainmenu) do
if v.cat ~= cat then
cat = v.cat
if (cat ~= "") then -- Filter out empty categories
io.write (string.format("\t\t\t\t\t
\n\t\t\t\t - %s\n\t\t\t\t\t
- \n", cat)) --start row
end
group = ""
end
if v.group ~= group then
group = v.group
if pageinfo.prefix == v.prefix .. "/" and
pageinfo.controller == v.controller and pageinfo.action == v.action then
class="class='selected'"
else
class=""
end
io.write (string.format("\t\t\t\t\t\t
- %s \n", class,ENV.SCRIPT_NAME,v.prefix, v.controller, v.action, v.group )) end end ?>
= pageinfo.controller ?> : = pageinfo.action ?>
[ welcome ] > [ login ] > [ bgp ] > [ firewall ] > [ content filter ] > [ interfaces ]