X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7be7417b5bf8ee801295d402e736c531892b77ca..d5d9445cfd311f262608fe5dba464cb1469f6d7b:/lib/template/search-html.php?ds=sidebyside diff --git a/lib/template/search-html.php b/lib/template/search-html.php index 430bba39..c1eceede 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'])); ?> +
+ > + +
+
+ > + +
> - +
>
- - - - - - + + + + + +
- +
- > + >