- echo "<p>Contact: <span class=\"strong\">" . $contact->getDisplayname() . "</span>";
- $role = $contact->getRole();
- $role_string = get_contact_role_string($contact);
- if ($role_string) echo " $role_string";
- if ($role & $GLOBALS['ROLE_DONOR']) printf(" <a class=\"small\" href=\"/donation/from/contact/%s/%d\">Donations</a>", urlencode($contact->getDisplayname()), $contact->getId());
- if ($role & $GLOBALS['ROLE_REQUESTER']) printf(" <a class=\"small\" href=\"/order/from/requester/%s/%d\">Requested</a>", urlencode($contact->getDisplayname()), $contact->getId());
- if ($role & $GLOBALS['ROLE_BENEFICIARY']) printf(" <a class=\"small\" href=\"/order/to/beneficiary/%s/%d\">Orders</a>", urlencode($contact->getDisplayname()), $contact->getId());
- if (check_admin(1)) {
- echo " " . $contact->getDeleteLink();
- }
- $city = get_contact_city($contact);
- if ($city) echo " in " . $city->getLink(get_city_displayname($city));