mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
added new function to format addresses in country specific style
This commit is contained in:
parent
2d7cb8b512
commit
ce483daaac
@ -635,12 +635,14 @@
|
||||
|
||||
$address = $d->read_single_entry($id,$fields);
|
||||
|
||||
if ($address[0]['title'])
|
||||
{
|
||||
$title = $address[0]['title'] . ' ';
|
||||
}
|
||||
|
||||
$a = '<table border="0" cellpadding="2" cellspacing="2"' . "\n";
|
||||
$a .= '<tr>' . "\n";
|
||||
$a .= '<td><font face="' . $font . '">' . $address[0]['title'] . '</font></td>' . "\n";
|
||||
$a .= '</tr>' . "\n";
|
||||
$a .= '<tr>' . "\n";
|
||||
$a .= '<td><font face="' . $font . '">' . $address[0]['n_given'] . ' ' . $address[0]['n_family'] . '</font></td>' . "\n";
|
||||
$a .= '<td><font face="' . $font . '">' . $title . $address[0]['n_given'] . ' ' . $address[0]['n_family'] . '</font></td>' . "\n";
|
||||
$a .= '</tr>' . "\n";
|
||||
$a .= '<tr>' . "\n";
|
||||
$a .= '<td><font face="' . $font . '">' . $address[0]['org_name'] . '</font></td>' . "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user