- $r = utf8_decode($a['text']);
-/* $r = trim("$r\n".$a['adr1']);
- $r = trim("$r\n".$a['adr2']);
- $r = trim("$r\n".$a['adr3']);
- $r = trim("$r\n".trim($a['postcode'].' '.$a['city']));
-*/
- $this->TableRow($l, $r);
-/*
- if (!empty($a['tels'])) {
- foreach ($a['tels'] as $tel) {
- if (!empty($tel['tel'])) {
- $this->TableRow(utf8_decode($tel['tel_type']), $tel['tel'], 'Mono');
- }
- }
- }*/
+ $this->TableRow($l, utf8_decode($a->text));
+
+ foreach ($a->phones() as $phone) {
+ $this->TableRow(utf8_decode($phone->displayType()),
+ utf8_decode($phone->display), 'Mono');
+ }