summaryrefslogtreecommitdiff
path: root/apps/wman/search.tpl
diff options
context:
space:
mode:
authorglenda <glenda@9front.local>2020-11-15 15:13:27 +0000
committerglenda <glenda@9front.local>2020-11-15 15:13:27 +0000
commit39318169e0b50551db511851829f9337c5fa6313 (patch)
tree65a0ef5c1da9677532fa8105293d017919473057 /apps/wman/search.tpl
Import site to git
Diffstat (limited to 'apps/wman/search.tpl')
-rwxr-xr-xapps/wman/search.tpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/wman/search.tpl b/apps/wman/search.tpl
new file mode 100755
index 0000000..a6c59e4
--- /dev/null
+++ b/apps/wman/search.tpl
@@ -0,0 +1,20 @@
+<form action="" method="POST">
+<fieldset>
+ <input type="text" name="wman_search" value="%($"s%)" />
+ <input type="submit" name="go" value="Feel Lucky" />
+ <input type="submit" value="Search" />
+
+% if(! ~ $"post_arg_wman_search '') {
+% if(~ $"wman_search_results '') {
+ No matches found for <i>'%($post_arg_wman_search%)'</i>.
+% }
+% if not {
+ <ul>
+% echo $wman_search_results|awk -F/ '$(NF-1) ~ "^[0-9]+$" {printf "<li><a href=\"'$wman_base_uri'%s/%s\" />%s(%s)</a></li>", $(NF-1),$NF, $NF, $(NF-1)}'
+ </ul>
+% }
+% }
+
+</fieldset>
+</form>
+