<% local data, viewlibrary, page_info, session = ... %> <% if data.value.focus.value ~= "" then %> <% end %>

Search Parameters

<% if data.errtxt then %>

<%= html.html_escape(data.errtxt) %>

<% end %>
" method="POST">
Start Time
<%= html.html_escape(data.value.starttime.value) %> <% if data.value.starttime.errtxt then %>

<%= html.html_escape(data.value.starttime.errtxt) %>

<% end %>
User ID
<%= html.html_escape(data.value.clientuserid.value) %> <% if data.value.clientuserid.errtxt then %>

<%= html.html_escape(data.value.clientuserid.errtxt) %>

<% end %>
Client IP
<%= html.html_escape(data.value.clientip.value) %> <% if data.value.clientip.errtxt then %>

<%= html.html_escape(data.value.clientip.errtxt) %>

<% end %>
End Time
<%= html.html_escape(data.value.endtime .value) %> <% if data.value.endtime.errtxt then %>

<%= html.html_escape(data.value.endtime.errtxt) %>

<% end %>
<% local clientinfo = "" if data.value.clientuserid.value ~= "" then clientinfo = clientinfo .. "clientuserid="..data.value.clientuserid.value.."&" end if data.value.clientip.value ~= "" then clientinfo = clientinfo .. "clientip="..data.value.clientip.value.."&" end %>

<%= html.html_escape(data.label) %>

<% for i,watch in ipairs(data.value.log.value) do %> <% local time = {} time.year, time.month, time.day, time.hour, time.min, time.sec = string.match(watch.logdatetime, "(%d+)%-(%d+)-(%d+)%s+(%d+):(%d+):(%d+)") time = os.time(time) %> <% if data.value.focus and data.value.focus.value == watch.logdatetime then %> <% else %> <% end %> <% end %>
Timestamp Client IP User ID Size
<%= html.link{value = "viewweblog?"..clientinfo.. "starttime="..os.date("%Y-%m-%d %H:%M:%S", time - 60*(tonumber(data.value.window.value))).. "&endtime="..os.date("%Y-%m-%d %H:%M:%S", time + 60*(tonumber(data.value.window.value))).. "&focus="..watch.logdatetime, label=watch.logdatetime} %> <%= html.html_escape(watch.clientip) %> <%= html.html_escape(watch.clientuserid) %> <%= html.html_escape(watch.bytes) %>
style="background:#f33; color:#fff" title="<%= html.html_escape(watch.reason) %>"<% end %> colspan=3> <% if watch.score and watch.score ~= "0" then %><%= html.html_escape(watch.score) %> - <% end %> <% if (watch.shortreason and watch.shortreason ~= "") then %> <%= html.html_escape(watch.shortreason) %> <% elseif (watch.reason and watch.reason ~= "") then %> <%= html.html_escape(string.gsub(watch.reason, "%(.*", "")) %> <% end %> title="<%= html.html_escape(watch.uri) %>" > <%= html.link{value = watch.uri, label=string.gsub(watch.uri, "[;?].*", "...")} %>
<% if data.errtxt then %>

<%= html.html_escape(data.errtxt) %>

<% end %> <% if #data.value.log.value == 0 then %>

No results, try adjusting search parameters

<% end %> <% if page_info.action == "viewweblog" then %>
" method="POST">
Download log
<% end %>