% local form, viewlibrary, page_info = ... %>
<% require("viewfunctions") %>
Logfile
File Details
<%
displayitem(form.value.filename)
displayitem(form.value.filesize)
displayitem(form.value.mtime)
--if form.value.grep.value ~= "" then
-- displayitem(form.value.grep)
--end
%>
File Content
<% if form.type == "form" then %>
<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>
<% displayformstart(form) %>
<% end %>
<% if form.value.filecontent.errtxt then %><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "
") %>
<% end %>
<% if form.value.filecontent.descr then %><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "
") %>
<% end %>
<% if form.type == "form" then %>
<% displayformend(form) %>
<% end %>
<%
--[[
print("Debug info for page '"..tostring(page_info.action).."'
")
--form["value"]["filecontent"]["value"]=nil
print("form
")
print(cfe_unpack(form))
print("viewlibrary
")
print(cfe_unpack(viewlibrary))
print("page_info
")
print(cfe_unpack(page_info))
print("session
")
print(cfe_unpack(session))
--]]
%>