summaryrefslogtreecommitdiffstats
path: root/provisioning-getclassvalues-html.lsp
blob: cf39cfa4c4c11626eef3bf3575690324fee9d452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<% local form, viewlibrary, page_info = ... 
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>

<% if form.value.values then %>
<H1>Class</H1>
	<DL>
<% if form.errtxt then io.write("<P CLASS='error'>" .. string.gsub(html.html_escape(form.errtxt), "\n", "<BR>") .. "</P>\n") end %>
	<% htmlviewfunctions.displayitem(form.value.class_id) %>
	<% htmlviewfunctions.displayitem(form.value.label) %>
<H2>Parameter Values</H2>
<%
	session = require("session")
	val = session.serialize("values", form.value.values.value)
	val = string.gsub(val, "[^\n]*%{%}\n", "")
	print("<pre>"..val.."</pre>")
	form.value.values = nil
%>
	</DL>
<% end %>

<H1><%= html.html_escape(form.label) %></H1>
<%
	form.value.values = nil
	form.value.label = nil
	htmlviewfunctions.displayform(form, nil, nil, page_info, 2)
%>