diff options
Diffstat (limited to 'src/application/views/form_search.php')
-rw-r--r-- | src/application/views/form_search.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/application/views/form_search.php b/src/application/views/form_search.php deleted file mode 100644 index 394a0e7..0000000 --- a/src/application/views/form_search.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -use mystic\forum\utils\RequestUtils; - -$lastFormUri = ""; -$lastForm = RequestUtils::getLastForm($lastFormUri) ?? []; -if ($lastFormUri !== $_SERVER["REQUEST_URI"]) $lastForm = []; -RequestUtils::clearLastForm(); - -?> -<div class="page-header margin-top-0"> - <h1><?= __("Search") ?></h1> -</div> -<?php -if (($_formError = RequestUtils::getAndClearFormError("search")) !== null) { - _view("alert_error", ["message" => $_formError]); -} -?> -<form action="." method="get"> - <input type="hidden" name="form_id" value="search"> - <input type="hidden" name="_action" value="search"> - <div class="form-group"> - <div class="input-group"> - <input class="form-control" type="search" id="i_query" name="query" value="<?= htmlentities($lastForm["query"] ?? $query ?? "") ?>" required autofocus placeholder="<?= htmlentities(__("Enter your search query...")) ?>"> - <div class="input-group-btn"> - <button class="btn btn-primary" type="submit"><?= __("Search") ?></button> - </div> - </div> - </div> -</form> |