mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 01:55:27 +03:00
[index] Add GET parameter 'q' for search queries
This commit is contained in:
parent
c237eaa254
commit
df9e3968dc
1 changed files with 3 additions and 1 deletions
|
@ -229,6 +229,8 @@ $formats = Format::searchInformation();
|
|||
$status .= 'debug mode active';
|
||||
}
|
||||
|
||||
$query = filter_input(INPUT_GET, 'q');
|
||||
|
||||
echo <<<EOD
|
||||
<header>
|
||||
<h1>RSS-Bridge</h1>
|
||||
|
@ -239,7 +241,7 @@ $formats = Format::searchInformation();
|
|||
<h3>Search</h3>
|
||||
<input type="text" name="searchfield"
|
||||
id="searchfield" placeholder="Enter the bridge you want to search for"
|
||||
onchange="search()" onkeyup="search()">
|
||||
onchange="search()" onkeyup="search()" value="{$query}">
|
||||
</section>
|
||||
|
||||
EOD;
|
||||
|
|
Loading…
Reference in a new issue