From 290d71b1b8bba45be46087a78bdcbdd516199985 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 29 May 2009 11:47:59 +0200 Subject: initial commit based on weblog.tar.gz ncopa got by email. --- weblog-listsources-html.lsp | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 weblog-listsources-html.lsp (limited to 'weblog-listsources-html.lsp') diff --git a/weblog-listsources-html.lsp b/weblog-listsources-html.lsp new file mode 100644 index 0000000..53a571f --- /dev/null +++ b/weblog-listsources-html.lsp @@ -0,0 +1,54 @@ +<% local data, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"deletesource", "editsource", "testsource", "createsource", "importlogs"}, session) %> + +

<%= html.html_escape(data.label) %>

+ + + + + + + + + + + +<% for i,source in ipairs(data.value) do %> + + + + + + + +<% end %> +
ActionNameEnabledSourceMethod
+ <%= html.link{value = "editsource?sourcename=" .. source.sourcename.."&redir="..page_info.orig_action, label="Edit "} %> + <%= html.link{value = "deletesource?sourcename=" .. source.sourcename, label="Delete "} %> + <%= html.link{value = "testsource?sourcename=" .. source.sourcename, label="Test "} %> + <%= html.html_escape(source.sourcename) %><%= html.html_escape(tostring(source.enabled)) %><%= html.html_escape(source.source) %><%= html.html_escape(source.method) %>
+ +<% if data.errtxt then %> +

<%= html.html_escape(data.errtxt) %>

+<% end %> +<% if #data.value == 0 then %> +

No sources found

+<% end %> + +
+
"> +
Create New Source
+ +
+
+
+ +
+
"> +
Import Logs
+
+
+
-- cgit v1.2.3