From d476c52adca9c1a2550b60cc49c4670cf3e800bd Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 30 Jun 2014 18:43:17 +0000 Subject: Removed acf-db references and directly included functionality The acf-db module is not complete and was not meant to be released yet --- kamailio-listtables-html.lsp | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 kamailio-listtables-html.lsp (limited to 'kamailio-listtables-html.lsp') diff --git a/kamailio-listtables-html.lsp b/kamailio-listtables-html.lsp new file mode 100644 index 0000000..23ecfc4 --- /dev/null +++ b/kamailio-listtables-html.lsp @@ -0,0 +1,54 @@ +<% 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 %> +
ActionTable
+ <% 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) %> -- cgit v1.2.3