summaryrefslogtreecommitdiffstats
path: root/provisioning-searchbyextension-html.lsp
blob: b1ac2068939d581bbee87ec2e985253a2112e7fe (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
<% local form, viewlibrary, page_info, session = ... 
require("viewfunctions")
%>

<%
if session.searchdevicesresult then
	local data = session.searchdevicesresult
	session.searchdevicesresult = nil

	if data.value and data.value.result then
		local func = haserl.loadfile(page_info.viewfile:gsub("searchbyextension", "listdevices"))
		func(data.value.result, viewlibrary, page_info, session)
	end
end
%>

<H1>Search by Extension</H1>
<DL>
<form action="/cgi-bin/acf/provisioning/provisioning/searchdevices" method="POST">
<input type="hidden" name="id" value=".extension">
<input type="hidden" name="comparison" value="~">
<DT>Extension</DT>
<DD><input class="text" type="text"  name="value"  value="" ></DD>
<DT></DT><DD><input class="submit" type="submit" name="Search" value="Search"></DD>
</FORM></DL>