X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a5e37858438a181d6d69b82057833231ff067c81..3849fbb12e41a2f2c24097a20ca5f88bf0b3a56a:/lib/template/search-html.php?ds=sidebyside 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'])); ?> +
+ > + +
+
+ > + +
> - +
>
- - - - - - + + + + + +
- +
- > + >