% local form, viewlibrary, page_info, session = ... %>
<% require("viewfunctions") %>
<% displaycommandresults({"createdatabase"}, session) %>
<%= html.html_escape(form.label) %>
<% for i,table in ipairs(form.value) do %>
<% if viewlibrary.check_permission("viewtable") then %>
<%= html.link{value = "viewtable?table=" .. table, label=table} %>
<% else %>
<%= html.html_escape(table) %>
<% end %>
<% end %>
<% if #form.value == 0 and viewlibrary.check_permission("createdatabase") then %>
Create Database
<% end %>