From 7737dbd5def8fe3f38553e6e5c91bfc389fcae64 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 8 Jan 2011 19:54:34 +0000 Subject: Added actions for listing and editing database tables. Relys on kamctlrc. --- kamailio-listtables-html.lsp | 14 ++++++++++++++ 1 file changed, 14 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..6a117e4 --- /dev/null +++ b/kamailio-listtables-html.lsp @@ -0,0 +1,14 @@ +<% local form, viewlibrary, page_info, session = ... %> +<% require("viewfunctions") %> + +

<%= 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 %> +
  • -- cgit v1.2.3