blob: 9881f27f39c9715c527a6f45a5adaa9186278107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<% local data, viewlibrary, page_info, session = ... %>
<H1><%= html.html_escape(data.label) %></H1>
<DL><TABLE>
<TR style="background:#eee;font-weight:bold;">
<TD style="padding-right:20px;white-space:nowrap;" class="header">Date</TD>
<TD style="padding-right:20px;white-space:nowrap;" class="header">Message</TD>
<TD style="white-space:nowrap;" WIDTH="90%" class="header">UserID</TD>
</TR>
<% for i,log in ipairs(data.value) do %>
<TR>
<TD><%= html.html_escape(log.logdatetime) %></TD>
<TD><%= string.gsub(html.html_escape(log.msgtext), "\n", "<BR>") %></TD>
<TD><%= html.html_escape(log.userid) %></TD>
</TR>
<% end %>
</TABLE>
<% if data.errtxt then %>
<p class='error'><%= html.html_escape(data.errtxt) %></p>
<% end %>
<% if #data.value == 0 then %>
<p>No history found</p>
<% end %>
</DL>
|