<% local form, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% if #form.value>0 then %> <% end %> <% htmlviewfunctions.displaycommandresults({"createdatabase"}, session) %> <% local header_level = htmlviewfunctions.displaysectionstart(form, page_info) %> <% htmlviewfunctions.displayinfo(form) %> <% if #form.value>0 then %> <% local table = cfe({ type="hidden" }) %> <% for i,tab in ipairs(form.value) do %> <% table.value = tab %> <% end %>
Action Table
<% if viewlibrary.check_permission("viewtable") then %> <% htmlviewfunctions.displayitem(cfe({type="link", value={table=table}, label="", option="View", action="viewtable"}), page_info, -1) %> <% end %> <%= html.html_escape(tab) %>
<% elseif viewlibrary.check_permission("createdatabase") then %> <% htmlviewfunctions.displayitem(cfe({type="form", value={}, label="Create Database", option="Create", action="createdatabase" }), page_info, 0) %> <% else %>

No tables found

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