<% local view, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"deleterequest"}, session) %>

Requests

<% for k,v in ipairs( view.value ) do %> <% end %>
Action Timestamp MAC Address IP Address User Agent
<% if viewlibrary.check_permission("deleterequest") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleterequest?mac="..v.mac, label="Delete ", class="deleterequest"} %> <% end %> <% if v.device_id then %> <% if viewlibrary.check_permission("searchdevices") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/searchdevices?id=device_id&value="..v.device_id.."&redir=searchdevices&Search=Search", label="Search "} %> <% end %> <% else %> <% if viewlibrary.check_permission("createdevicefromrequest") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/createdevicefromrequest?mac="..v.mac.."&Create=Create", label="Create "} %> <% end %> <% end %> <% local date = {} date.year, date.month, date.day, date.hour, date.min, date.sec, remainder = string.match(v.date, "(%d+)%-(%d+)%-(%d+) (%d+):(%d+):(%d+)") local rem = string.match(v.date, "%.%d+$") io.write((os.time(date) - 1318000000)..(rem or "")) %> <%= html.html_escape(v.date) %> <%= html.html_escape(v.mac) %> <%= html.html_escape(v.ip) %> <%= html.html_escape(v.agent) %>