<% local viewtable, viewlibrary, pageinfo, session = ... html=require("acf.html") posix = require("posix") %> Status: 200 OK Content-Type: text/html <% if (session.id) then io.write( html.cookie.set("sessionid", session.id) ) else io.write (html.cookie.unset("sessionid")) end %> <% local hostname = "" if viewlibrary and viewlibrary.dispatch_component then local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) if result and result.value then hostname = result.value end end local class local tabs for x,cat in ipairs(session.menu.cats) do 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 curcat = html.html_escape(cat.name) curgroup = html.html_escape(group.name) end end end %> <%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %> themes/jquery.mobile.icons.min.css" /> themes/jqmobile-skin.min.css" /> jqmobile.css"/>
<% if session.userinfo and session.userinfo.userid then %>

<%= curcat %> > <%= curgroup %>

<% else %>

Session expired, please login...

<% end %>
<% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %>
<% if pageinfo.viewfile then fs=require("acf.fs") local sf = posix.dirname(pageinfo.viewfile) .. '/' .. pageinfo.controller .. '-' .. pageinfo.action ..'-popups-html.lsp' if fs.is_file(sf) then %> <% local func = haserl.loadfile(sf) func (viewtable, viewlibrary, pageinfo, session) %> <% end %> <% end %>

Information

Close  Home