<% local path = luci.dispatcher.context.requestpath local sn = path[3] local cl = path[1] local title = logtype.." - "..sn -%> <%+header%>

<%=title:upper()%>

<%local number = 25%>
<% if logtype == "sessions" then %> <% else %> <% end %> <% if #logs > 0 then -%> <% for i = 1, #logs do local s = logs[#logs+1-i] -%> <% if s and s.connector then%> <% if #s.connector == 12 then -%> <%else -%> <%end -%> <% if logtype == "sessions" then %> <% else %> <% end %> <%end%> <%-end %> <%- else %> <% if logtype == "sessions" then %> <% end %> <%- end %>
<%:Serial Number%> <%:Connector%><%:Start Date%> <%:End Date%> <%:Energy%> <%:User ID%><%:Date%> <%:Code%> <%:State%>
<%=s.connector:match("%w+")%><%=""%><%=translate(s.connector:match("%.(%w+)") or "" )%><%=s.start_date%> <%=s.end_date%> <%=s.energy%> <%=s.user_id%><%=s.date%> <%=s.code%> <%=s.state%>
- - - - --
<% if #logs > 0 then -%> <% end %>
<%+footer%>