search: input form and extended results
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 11 Jan 2021 19:08:59 +0000 (20:08 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 11 Jan 2021 19:51:00 +0000 (20:51 +0100)
Already referenced from 404 page as ui for additional queries.

search/index.html [new file with mode: 0644]
search/index.php [new file with mode: 0644]

diff --git a/search/index.html b/search/index.html
new file mode 100644 (file)
index 0000000..b6b0f64
--- /dev/null
@@ -0,0 +1,3 @@
+<form>
+<p><input id="q" name="q" /> <input type="submit" value="Zoek" /></p>
+</form>
diff --git a/search/index.php b/search/index.php
new file mode 100644 (file)
index 0000000..290a6a4
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+$Page->title = 'Zoeken';
+printf("<h2>%s</h2>\n", $Page->title);
+print $Page->raw;
+
+if (isset($_REQUEST['q'])) {
+       printf("<h3>Pagina's met <q>%s</q></h3>\n", $_REQUEST['q']);
+       print $Page->widget('search', ['limit' => 50]);
+}
+return;