summaryrefslogtreecommitdiffstats
path: root/kamailio-listtables-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-01-08 19:54:34 +0000
committerTed Trask <ttrask01@yahoo.com>2011-01-08 19:54:34 +0000
commit7737dbd5def8fe3f38553e6e5c91bfc389fcae64 (patch)
tree6b8f4a5d052e80a113a3700a57f18b5fae34d9c9 /kamailio-listtables-html.lsp
parent0b38e3b87b7dad7b6f76ac8857b85120ae256a7a (diff)
downloadacf-kamailio-7737dbd5def8fe3f38553e6e5c91bfc389fcae64.tar.bz2
acf-kamailio-7737dbd5def8fe3f38553e6e5c91bfc389fcae64.tar.xz
Added actions for listing and editing database tables. Relys on kamctlrc.
Diffstat (limited to 'kamailio-listtables-html.lsp')
-rw-r--r--kamailio-listtables-html.lsp14
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>