<% local form, viewlibrary, page_info, session = ... %> <% require("viewfunctions") %> <% displaycommandresults({"createdatabase"}, session) %>

<%= html.html_escape(form.label) %>

<% for i,v in ipairs(form.value) do %>
  • <% if viewlibrary.check_permission("viewtable") then %> <% if v.schema ~= "public" then %> <%= html.link{value = "viewtable?table=" .. v.table .. "&schema=" .. v.schema, label="("..v.schema..") "..v.table} %> <% else %> <%= html.link{value = "viewtable?table=" .. v.table, label=v.table} %> <% end %> <% else %> <%= html.html_escape("("..v.schema..") "..v.table) %> <% end %> <% end %> <% if #form.value == 0 and viewlibrary.check_permission("createdatabase") then %>
    Create Database
    ">
    <% end %>