diff --git a/db-listdatabases-html.lsp b/db-listdatabases-html.lsp index 4fd936266f3f9fdc6f0ebf3bb8efdacd2402e790..b4c6694ed2f5c1d28dab7ad3ccaa5c54991c6eb9 100644 --- a/db-listdatabases-html.lsp +++ b/db-listdatabases-html.lsp @@ -1,19 +1,50 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> -
<%= string.gsub(html.html_escape(form.errtxt), "\n", "
") %>
Action | +Database | +
---|---|
+ <% if viewlibrary.check_permission("listtables") then %> + <% htmlviewfunctions.displayitem(cfe({type="link", value={database=database}, label="", option="View", action="listtables"}), page_info, -1) %> + <% end %> + | +<%= html.html_escape(dbase) %> | +
No databases found
<% end %> - +<% htmlviewfunctions.displaysectionend(header_level) %> diff --git a/db-listtables-html.lsp b/db-listtables-html.lsp index fec3ac42902cdb70ec8745b0f9e7af9b69660d9c..23ecfc4c2d9c7fc9c5fb81e9a95e15f25106ee57 100644 --- a/db-listtables-html.lsp +++ b/db-listtables-html.lsp @@ -1,24 +1,54 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> +<% if #form.value>0 then %> + + + + + +<% end %> + <% htmlviewfunctions.displaycommandresults({"createdatabase"}, session) %> -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) %> | +
No tables found
<% end %> - +<% htmlviewfunctions.displaysectionend(header_level) %> diff --git a/db-viewtable-html.lsp b/db-viewtable-html.lsp index e1531d00c5fcca81a2a116763db6ce16ba3fe871..1d64eced6f8dbd55bcb5cc64954e8e0ef802569b 100644 --- a/db-viewtable-html.lsp +++ b/db-viewtable-html.lsp @@ -1,54 +1,68 @@ <% local form, viewlibrary, page_info, session = ... %> -<% require("htmlviewfunctions") %> +<% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> + + + + + + <% htmlviewfunctions.displaycommandresults({"deletetableentry", "updatetableentry"}, session) %> <% htmlviewfunctions.displaycommandresults({"createtableentry"}, session, true) %> -Action | +Action | <% end %> <% for i,f in ipairs(form.value.fields.value) do %> -<%= html.html_escape(f) %> | +<%= html.html_escape(f) %> | <% end %> -
---|---|---|---|
+ <% id.value = tableentry.id %> + | <% if viewlibrary.check_permission("updatetableentry") then %> - + <% htmlviewfunctions.displayitem(cfe({type="link", value={table=table, id=id, redir=redir}, label="", option="Update", action="updatetableentry"}), page_info, -1) %> <% end %> <% if viewlibrary.check_permission("deletetableentry") then %> - + <% htmlviewfunctions.displayitem(cfe({type="form", value={table=table, id=id}, label="", option="Delete", action="deletetableentry", class="deletetableentry"}), page_info, -1) %> <% end %> - | + <% end %> <% for i,f in ipairs(form.value.fields.value) do %> -<%= html.html_escape(tableentry[f]) %> | +<%= html.html_escape(tableentry[f]) %> | <% end %> -
<%= html.html_escape(form.errtxt) %>
+No entries found
<% end %> -