X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7be7417b5bf8ee801295d402e736c531892b77ca..233e5f7c0e32d6445392d6ebf67ba5ffa6981e78:/lib/template/search-html.php diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 430bba39..5090a6fa 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -15,63 +15,55 @@ reverse search '; - echo ''; - echo '
'; - echo '
'; - } - elseif (!empty($aMoreParams['q'])) { - echo '
'; - echo '
'; - echo '
'; - echo '
'; - } - else { - echo '
'; - echo '
'; - echo '
'; - echo '
'; - } + $bSimpleQuery = !empty($aMoreParams['q']); + $bStructuredQuery = !$bSimpleQuery + && !(empty($aMoreParams['street']) + && empty($aMoreParams['city']) + && empty($aMoreParams['county']) + && empty($aMoreParams['state']) + && empty($aMoreParams['country']) + && empty($aMoreParams['postalcode'])); ?> +
+ > + +
+
+ > + +
> - +
>
- - - - - - + + + + + +
- +
- > + >