diff options
Diffstat (limited to 'kamailio-listtables-html.lsp')
-rw-r--r-- | kamailio-listtables-html.lsp | 14 |
1 files changed, 14 insertions, 0 deletions
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") %> + +<H1><%= html.html_escape(form.label) %></H1> +<DL> +<% for i,table in ipairs(form.value) do %> + <li> + <% if viewlibrary.check_permission("viewtable") then %> + <%= html.link{value = "viewtable?table=" .. table, label=table} %> + <% else %> + <%= html.html_escape(table) %> + <% end %> +<% end %> +</DL> |