From 290d71b1b8bba45be46087a78bdcbdd516199985 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 29 May 2009 11:47:59 +0200 Subject: initial commit based on weblog.tar.gz ncopa got by email. --- weblog-viewblocklog-html.lsp | 90 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 weblog-viewblocklog-html.lsp (limited to 'weblog-viewblocklog-html.lsp') diff --git a/weblog-viewblocklog-html.lsp b/weblog-viewblocklog-html.lsp new file mode 100644 index 0000000..1bbeda2 --- /dev/null +++ b/weblog-viewblocklog-html.lsp @@ -0,0 +1,90 @@ +<% local data, viewlibrary, page_info, session = ... %> + +<% if data.value.focus.value ~= "" then %> + + +<% end %> + +

Search Parameters

+
" method="POST"> +
+
Start Time
+
<%= html.html_escape(data.value.starttime.value) %> + +
+
User ID
+
<%= html.html_escape(data.value.clientuserid.value) %> + +
+
Client IP
+
<%= html.html_escape(data.value.clientip.value) %> + +
+
End Time
+
<%= html.html_escape(data.value.endtime.value) %> + +
+
+
+
+ +

<%= 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 %> + + + + + + + <% if watch.reason and watch.reason ~= "" then %> + + <% end %> +<% end %> +
TimestampClient IPUser IDSize
<%= html.link{value = "viewweblog?clientuserid="..watch.clientuserid.. + "&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) %>
<%= html.link{value = watch.uri, label=watch.uri} %>
<%= html.html_escape(watch.reason) %>
+ +<% 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 %> -- cgit v1.2.3