diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php
index 0e4add7d43..bde85b7abe 100644
--- a/phpgwapi/inc/class.sbox.inc.php
+++ b/phpgwapi/inc/class.sbox.inc.php
@@ -624,80 +624,5 @@
{
return($this->country_array[$selected]);
}
-
- function formatted_address($id = '',$fields = '',$business = True)
- {
- global $phpgw,$phpgw_info;
-
- $font = $phpgw_info['theme']['font'];
-
- $d = CreateObject('phpgwapi.contacts');
-
- $address = $d->read_single_entry($id,$fields);
-
- if ($address[0]['title'])
- {
- $title = $address[0]['title'] . ' ';
- }
-
- $a = '
' . $title . $address[0]['n_given'] . ' ' . $address[0]['n_family'] . '' . "\n";
- $a .= '' . "\n";
- $a .= '' . "\n";
- $a .= '' . $address[0]['org_name'] . ' | ' . "\n";
- $a .= '
' . "\n";
- $a .= '' . "\n";
- $a .= '' . $address[0]['org_unit'] . ' | ' . "\n";
- $a .= '
' . "\n";
- $a .= '' . "\n";
-
- if ($business)
- {
- $street = $address[0]['adr_one_street'];
- $city = $address[0]['adr_one_locality'];
- $zip = $address[0]['adr_one_postalcode'];
- $state = $address[0]['adr_one_region'];
- $country = $address[0]['adr_one_countryname'];
- }
- else
- {
- $street = $address[0]['adr_two_street'];
- $city = $address[0]['adr_two_locality'];
- $zip = $address[0]['adr_two_postalcode'];
- $state = $address[0]['adr_two_region'];
- $country = $address[0]['adr_two_countryname'];
- }
-
- $a .= '' . $street . ' | ' . "\n";
- $a .= '
' . "\n";
- $a .= '' . "\n";
-
- if (! $country)
- {
- $country = $phpgw_info['user']['preferences']['common']['country'];
- }
-
- if ($country == 'DE')
- {
- $a .= '' . $city . ' | ' . "\n";
- $a .= '
' . "\n";
- $a .= '' . "\n";
- $a .= '' . $zip . ' | ' . "\n";
- }
-
- if ($country == 'US')
- {
- $a .= '' . $city . ', ' . $state . ' ' . $zip . ' | ' . "\n";
- }
-
- $a .= '
' . "\n";
- $a .= '' . "\n";
- $a .= '' . lang($country) . ' | ' . "\n";
- $a .= '
' . "\n";
- $a .= '
' . "\n";
-
- return $a;
- }
}
?>