Added categories to searchbar popup

This commit is contained in:
ivan 2017-10-01 09:40:21 +03:00
parent 7608ad9426
commit 04107d6628
1 changed files with 5 additions and 1 deletions

View File

@ -171,9 +171,13 @@ function Search($SearchQuery) {
function AddSearchBar() {
global $Titles;
global $GBsearch;
global $GBcategoryfield;
if ($GBsearch) {
echo "<form action=index.php method=post>";
echo "<input type=text name=\"serachq\" value=\"\" maxlength=255>";
echo "<input type=text name=\"serachq\" value=\"\" maxlength=255 list=\"browsers\">";
echo "<datalist id=\"browsers\">";
foreach ($GBcategoryfield as $category) echo " <option value=\"",$category,"\">";
echo "</datalist>";
echo "<input type=submit name=\"search\" value=\"",$Titles["Search"],"\">";
echo "</form>";
}