From a65d424263adfbff9629c7d91a613e4504c84613 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 17 Sep 2024 14:51:23 +0200 Subject: Add search --- src/application/views/form_search.php | 28 +++++++++++++++++++++++ src/application/views/nav_guest.php | 1 + src/application/views/nav_logged_in.php | 1 + src/application/views/view_search_results.php | 33 +++++++++++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 src/application/views/form_search.php create mode 100644 src/application/views/view_search_results.php (limited to 'src/application/views') diff --git a/src/application/views/form_search.php b/src/application/views/form_search.php new file mode 100644 index 0000000..edc68b8 --- /dev/null +++ b/src/application/views/form_search.php @@ -0,0 +1,28 @@ + + + $_formError]); +} +?> +
" method="post"> +
+
+ " required autofocus> +
+ +
+
+
+
diff --git a/src/application/views/nav_guest.php b/src/application/views/nav_guest.php index 1c65a50..88c551b 100644 --- a/src/application/views/nav_guest.php +++ b/src/application/views/nav_guest.php @@ -1,4 +1,5 @@ diff --git a/src/application/views/view_search_results.php b/src/application/views/view_search_results.php new file mode 100644 index 0000000..19a6978 --- /dev/null +++ b/src/application/views/view_search_results.php @@ -0,0 +1,33 @@ + + + 0): ?> +

count($posts), + "search_duration" => number_format($search_duration, 2, __(".", context: "Number formatting"), __(",", context: "Number formatting")), + ]) ?>

+
+ deleted) continue; + $hasAttachments = count($attachments[$post->id]) > 0; + ?> + + + + + content)), 100)) ?>
+ '' . htmlentities($users[$post->authorId]?->displayName ?? __("unknown")) . '', + "post_date" => '' . htmlentities($post->postDate->format("c")) . '', + "topic" => '' . htmlentities($topics[$post->topicId]?->title ?? "unknown") . '', + ]) ?> +
+ +
+ +
+ + +
+ -- cgit v1.2.3