<?php if ($this->result->PpPm == 'PP') {?> <?php if (!empty($this->result->civilite)) {?> <?=$this->result->civilite?> <?php }?> <?php if (!empty($this->result->nom)) {?> <?=$this->result->nom?> <?php }?> <?php if (!empty($this->result->prenom)) {?> <?=$this->result->prenom?> <?php }?> <?php if (!empty($this->result->nomUsage)) {?> (<?=$this->result->nomUsage?>) <?php }?> <br/>Née <?php if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {?> le <?=$this->result->naissanceDate?> <?php }?> <?php if (!empty($this->result->naissanceLieu)) {?> à <?=$this->result->naissanceLieu?> <?php }?> <?php if (!empty($this->result->naissanceDeptPays)) {?> (<?=$this->result->naissanceDeptPays?>) <?php }?> <?php } else {?> <?=$this->result->raisonSociale?> <?php if (intval($this->result->siren)!=0) {?> (<?=$this->result->siren?>) <?php }?> <br/> <?php }?> <b>Coordonnées : </b> <?php $listItem = array( 'adresseNum', 'adresseBtq' ,'adresseCodeVoie', 'adresseLibVoie', '<br/>', 'adressComp', 'adresseCp','adresseVille','<br/>', 'adressePays' ); foreach ($listItem as $item) { if ($item=='<br/>') { echo '<br/>'; } elseif (!empty($this->result->{$item})) { echo $this->result->{$item}.' '; } } ?>