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));
printf(" Areas", urlencode($city->getName()), $city->getID());
printf(" Contacts", urlencode($city->getName()), $city->getId());
printf(" Donations", urlencode($city->getName()), $city->getId());
printf(" Orders", urlencode($city->getName()), $city->getId());
if (check_admin(1)) {
echo " " . $city->getDeleteLink();
}
}
}
else echo " none";
echo "