From 7dad3b2d66bfdc5d653961e8b4f87870106aaeee Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 3 Feb 2014 21:59:49 +0000 Subject: Cleanup HTML including removing DL/DT/DD, use tablesorter where possible, and use lowercase tags --- weblog-viewweblog-html.lsp | 86 ++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 45 deletions(-) (limited to 'weblog-viewweblog-html.lsp') diff --git a/weblog-viewweblog-html.lsp b/weblog-viewweblog-html.lsp index c3b64f8..8841bde 100644 --- a/weblog-viewweblog-html.lsp +++ b/weblog-viewweblog-html.lsp @@ -117,8 +117,7 @@ end } -

Search Parameters

-
+

Search Parameters

<% -- Display the form, but skip log, window, and focus fields local log = data.value.log data.value.log = nil @@ -131,7 +130,6 @@ data.value.log = log data.value.window = window data.value.focus = focus %> -
<% local clientinfo = "submit=true&badyesno=false&deniedyesno=false&bypassyesno=false&selected=false&" @@ -144,11 +142,10 @@ end %> <% htmlviewfunctions.displaypagination(pagedata, page_info) %> -

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

-
- - - +

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

+
+ + <% local checkhead = true for i,watch in ipairs(subdata) do if watch.selected ~= "t" then @@ -156,22 +153,22 @@ for i,watch in ipairs(subdata) do break end end %> - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + <% for i,watch in ipairs(subdata) do local a,b = math.modf((i/2)) local mark = '' @@ -180,29 +177,29 @@ end %> 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) %> -> - - + - - - - - - - - - title="<%= html.html_escape(watch.reason) %>"<% end %>> + label=watch.logdatetime} %> + + + + + + + + + title="<%= html.html_escape(watch.reason) %>"<% end %>> <% if (watch.shortreason and watch.shortreason ~= "") then %> <%= html.html_escape(watch.shortreason) %> <% elseif (watch.reason and watch.reason ~= "") then %> <%= html.html_escape(watch.reason) %> <% end %> - - + - - + <%= highlight_uri %> + + <% end %> - -
checked<% end %>>TimestampSourceClient IPUser IDSizeSusDenBypScoreReasonURLBad Words
checked<% end %>>TimestampSourceClient IPUser IDSizeSusDenBypScoreReasonURLBad Words
checked <% end %>> style="font-weight:bold;" id="focus" <% end %> ><%= html.link{value = "viewweblog?"..clientinfo.. +> + checked <% end %>> style="font-weight:bold;" id="focus" <% end %> ><%= 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.sourcename) %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientip) %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientuserid) %><%= html.html_escape(watch.bytes) %><% if watch.badyesno ~= "0" then %><% end %><% if watch.deniedyesno ~= "0" then %> <% end %><% if watch.bypassyesno ~= "0" then %> <% end %><%= html.html_escape(watch.score) %> <%= html.html_escape(watch.sourcename) %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientip) %> style="font-weight:bold;" <% end %> ><%= html.html_escape(watch.clientuserid) %><%= html.html_escape(watch.bytes) %><% if watch.badyesno ~= "0" then %><% end %><% if watch.deniedyesno ~= "0" then %> <% end %><% if watch.bypassyesno ~= "0" then %> <% end %><%= html.html_escape(watch.score) %><% highlight_uri=html.html_escape(watch.shorturi or watch.uri) + <% highlight_uri=html.html_escape(watch.shorturi or watch.uri) if watch.wordloc ~= nil then if string.find(watch.wordloc, "|") then badwords = format.string_to_table(watch.wordloc, "|") @@ -213,12 +210,12 @@ end %> highlight_uri = string_highlight(highlight_uri, watch.wordloc, "yellow", "red") end end %> - <%= highlight_uri %><%= watch.wordloc %>
<%= watch.wordloc %>
+ + <% htmlviewfunctions.displaypagination(pagedata, page_info) %> <% if data.errtxt then %> @@ -241,4 +238,3 @@ for n,v in pairs(data.value) do end htmlviewfunctions.displayform(data, nil, nil, page_info, 2) end %> -
-- cgit v1.2.3