Add search index (#15)

- Add utility rebuild script
- Add Search to header
- Add shell of search page
- Add search query support to ItemList
This commit is contained in:
2024-05-26 14:18:20 -04:00
parent 210377b4da
commit 9d59bfb1c6
5 changed files with 122 additions and 10 deletions

23
src/public/search.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
/**
* Item Search Page
*
* Search for items across all feeds
*/
include '../start.php';
$db = Data::getConnection();
Security::verifyUser($db);
if (key_exists('search', $_GET)) {
$list = ItemList::matchingSearch($_GET['search'], $db);
}
page_head('Item Search'); ?>
<h1>Item Search</h1>
// TODO: search form <?php
if (isset($list)) $list->render();
page_foot();
$db->close();