X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Fcity.php;h=b90116308286a0d534e600c6e5519997bccccfb6;hb=0925aeead950582ca1136feeb597730086bec498;hp=1294176909842ec16618e8a2fc0d685de457247d;hpb=4cd13bda037940724f018b8bfc62413156c52b75;p=readifood.git diff --git a/lib/city.php b/lib/city.php index 1294176..b901163 100644 --- a/lib/city.php +++ b/lib/city.php @@ -36,7 +36,7 @@ function show_new_city_form() { if (! check_admin(1)) return; - echo "
\n"; + form("noprint standout"); echo "

Add a new city \n"; echo "with postcode prefix \n"; echo "

\n"; @@ -138,12 +138,9 @@ } } else if (isset($name)) show_city($name, $id); - else { - show_cities(0, 10); - show_new_city_form(); - } + else show_cities(0, 10); + + if (count($parameters)) echo "

Show all cities

\n"; + show_new_city_form(); - # XXX: Format URL in branch case... - if (count($parameters)) - echo "

Show all cities

\n"; ?>