diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-03-01 16:10:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-03-01 16:10:16 +0000 |
commit | cd761a32e4afafd6104a95867d3770f23229fde2 (patch) | |
tree | 068369f1c52725031ef636a6be2887486fdd7c83 /provisioning-searchbyextension-html.lsp | |
parent | 10db00827279e3cc3d8a6c2f4c89db325ae62ef4 (diff) | |
download | acf-provisioning-cd761a32e4afafd6104a95867d3770f23229fde2.tar.bz2 acf-provisioning-cd761a32e4afafd6104a95867d3770f23229fde2.tar.xz |
Made getdevicevalues and searchdevices into proper forms and added searchbyextension and searchbymac actions.
Diffstat (limited to 'provisioning-searchbyextension-html.lsp')
-rw-r--r-- | provisioning-searchbyextension-html.lsp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/provisioning-searchbyextension-html.lsp b/provisioning-searchbyextension-html.lsp new file mode 100644 index 0000000..b1ac206 --- /dev/null +++ b/provisioning-searchbyextension-html.lsp @@ -0,0 +1,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> |