Added categories to searchbar popup
This commit is contained in:
parent
7608ad9426
commit
04107d6628
|
@ -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>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue