summaryrefslogtreecommitdiffstats
path: root/template-popup.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-07-08 15:17:38 +0000
committerMika Havela <mika.havela@gmail.com>2009-07-08 15:17:38 +0000
commit5e061276793706d52240c0700d950c7486cd865a (patch)
treeec34293c9b78949149bff0400342b24aecd986e2 /template-popup.lsp
parent0b06a9d18889bf7fcca47379a5c0ec986e29ca3d (diff)
downloadacf-rrdtool-5e061276793706d52240c0700d950c7486cd865a.tar.bz2
acf-rrdtool-5e061276793706d52240c0700d950c7486cd865a.tar.xz
Created templates that goes into the popupwindow
Diffstat (limited to 'template-popup.lsp')
-rw-r--r--template-popup.lsp33
1 files changed, 33 insertions, 0 deletions
diff --git a/template-popup.lsp b/template-popup.lsp
new file mode 100644
index 0000000..7787c5a
--- /dev/null
+++ b/template-popup.lsp
@@ -0,0 +1,33 @@
+<% local viewtable, viewlibrary, pageinfo, session = ...
+ html=require("html") %>
+Status: 200 OK
+Content-Type: text/html
+<% if (session.id) then
+ io.write( html.cookie.set("sessionid", session.id) )
+ else
+ io.write (html.cookie.unset("sessionid"))
+ end
+%>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<%
+local hostname = ""
+if viewlibrary and viewlibrary.dispatch_component then
+ local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true)
+ if result and result.value then
+ hostname = result.value
+ end
+end
+%>
+<title><%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %></title>
+</head>
+<body>
+
+ <% local func = haserl.loadfile(pageinfo.viewfile) %>
+ <% func (viewtable, viewlibrary, pageinfo, session) %>
+
+</body>
+</html>