forked from blallo/rss-bridge
[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';
|
$status .= 'debug mode active';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$query = filter_input(INPUT_GET, 'q');
|
||||||
|
|
||||||
echo <<<EOD
|
echo <<<EOD
|
||||||
<header>
|
<header>
|
||||||
<h1>RSS-Bridge</h1>
|
<h1>RSS-Bridge</h1>
|
||||||
|
@ -239,7 +241,7 @@ $formats = Format::searchInformation();
|
||||||
<h3>Search</h3>
|
<h3>Search</h3>
|
||||||
<input type="text" name="searchfield"
|
<input type="text" name="searchfield"
|
||||||
id="searchfield" placeholder="Enter the bridge you want to search for"
|
id="searchfield" placeholder="Enter the bridge you want to search for"
|
||||||
onchange="search()" onkeyup="search()">
|
onchange="search()" onkeyup="search()" value="{$query}">
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
EOD;
|
EOD;
|
||||||
|
|
Loading…
Reference in a new issue