<%
local class
local tabs
if (#session.menu.cats > 0) then
print("
- ")
for x,cat in ipairs(session.menu.cats) do
print("
- "..html.html_escape(cat.name))
print("
- ")
for y,group in ipairs(cat.groups) do
class=""
if not tabs and group.controllers[pageinfo.prefix .. pageinfo.controller] then
class="class='selected'"
tabs = group.tabs
end
print("
- "..html.html_escape(group.name).." ") end print("
")
end
print("
<%
local class=""
if (tabs and #tabs > 0) then
print("
- ")
for x,tab in pairs(tabs or {}) do
if tab.prefix == pageinfo.prefix and tab.controller == pageinfo.controller and tab.action == pageinfo.action then
class="class='selected'"
else
class=""
end
print("
- "..html.html_escape(tab.name).." ") end print("
<% end --pageinfo.skinned %>
<% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %>
<% if pageinfo.skinned ~= "false" then %>