diff options
author | Mika Havela <mika.havela@gmail.com> | 2009-07-08 15:17:38 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2009-07-08 15:17:38 +0000 |
commit | 5e061276793706d52240c0700d950c7486cd865a (patch) | |
tree | ec34293c9b78949149bff0400342b24aecd986e2 | |
parent | 0b06a9d18889bf7fcca47379a5c0ec986e29ca3d (diff) | |
download | acf-rrdtool-5e061276793706d52240c0700d950c7486cd865a.tar.bz2 acf-rrdtool-5e061276793706d52240c0700d950c7486cd865a.tar.xz |
Created templates that goes into the popupwindow
-rw-r--r-- | rrdtool-viewgraph-popup.lsp (renamed from rrdtool-viewgraph-html.lsp) | 0 | ||||
-rw-r--r-- | template-popup.lsp | 33 |
2 files changed, 33 insertions, 0 deletions
diff --git a/rrdtool-viewgraph-html.lsp b/rrdtool-viewgraph-popup.lsp index ecc2702..ecc2702 100644 --- a/rrdtool-viewgraph-html.lsp +++ b/rrdtool-viewgraph-popup.lsp 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> |