added new function to format addresses in country specific style

This commit is contained in:
bettina 2001-06-22 03:37:08 +00:00
parent 2d7cb8b512
commit ce483daaac

View File

@ -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'] . '&nbsp;' . $address[0]['n_family'] . '</font></td>' . "\n";
$a .= '<td><font face="' . $font . '">' . $title . $address[0]['n_given'] . '&nbsp;' . $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";