<% local view, viewlibrary, page_info, session = ... htmlviewfunctions = require("htmlviewfunctions") html = require("acf.html") %> <% local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Passwd Configuration"}), page_info) %> <% htmlviewfunctions.displayinfo(view) %> <% if #view.value>0 then %> <% local filename = cfe({ type="hidden", value="" }) %> <% local redir = cfe({ type="hidden", value=page_info.orig_action }) %> <% for i,file in ipairs( view.value ) do %> <% end %>
Action File Size Last Modified
<% filename.value = file.filename %> <% if viewlibrary.check_permission("viewpasswdfile") then %> <% htmlviewfunctions.displayitem(cfe({type="link", value={filename=filename, redir=redir}, label="", option="View", action="viewpasswdfile"}), page_info, -1) %> <% end %> <%= html.html_escape(file.filename) %> <%= html.html_escape(file.size or 0) %>b<%= format.formatfilesize(file.size) %> <%= format.formattime(file.mtime) %>
<% else %>

No files found

<% end %> <% htmlviewfunctions.displaysectionend(header_level) %>