Added city.
\n"; $parameters = array($_POST['city_name'], $id); } } function show_cities($offset, $per_page, $name = null) { echo "Cities:";
$q = new CityQuery;
if (isset($name)) $q->filterByName($name);
$p = $q->paginate($offset, $per_page);
if (count($p)) {
foreach ($p as $city) {
echo "
\nCity: " . $city->getStrongLink(get_city_displayname($city));
$n = $city->getName();
$i = $city->getId();
echo " " . get_small_link("Areas", "/area/in/city/%s/%d", $n, $i);
echo " " . get_small_link("Contacts", "/contact/in/city/%s/%d", $n, $i);
echo " " . get_small_link("Donations", "/donation/in/city/%s/%d", $n, $i);
echo " " . get_small_link("Orders", "/order/in/city/%s/%d", $n, $i);
if (check_admin(1)) {
echo " " . $city->getDeleteLink();
}
}
}
else echo " none";
echo "