From ce483daaac0d90133de508934a91aadae842ee8b Mon Sep 17 00:00:00 2001 From: bettina Date: Fri, 22 Jun 2001 03:37:08 +0000 Subject: [PATCH] added new function to format addresses in country specific style --- phpgwapi/inc/class.sbox.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php index f8dcc2e1ae..0e4add7d43 100644 --- a/phpgwapi/inc/class.sbox.inc.php +++ b/phpgwapi/inc/class.sbox.inc.php @@ -635,12 +635,14 @@ $address = $d->read_single_entry($id,$fields); + if ($address[0]['title']) + { + $title = $address[0]['title'] . ' '; + } + $a = '' . $address[0]['title'] . '' . "\n"; - $a .= '' . "\n"; - $a .= '' . "\n"; - $a .= '' . "\n"; + $a .= '' . "\n"; $a .= '' . "\n"; $a .= '' . "\n"; $a .= '' . "\n";
' . $address[0]['n_given'] . ' ' . $address[0]['n_family'] . '' . $title . $address[0]['n_given'] . ' ' . $address[0]['n_family'] . '
' . $address[0]['org_name'] . '