2012-10-25 15:38:56 +00:00

48 lines
1.4 KiB
PHTML

<?php if ($this->result->PpPm == 'PP') {?>
<?php if (!empty($this->result->civilite)) {?>
<?=$this->result->civilite?>&nbsp;
<?php }?>
<?php if (!empty($this->result->nom)) {?>
<?=$this->result->nom?>&nbsp;
<?php }?>
<?php if (!empty($this->result->prenom)) {?>
<?=$this->result->prenom?>&nbsp;
<?php }?>
<?php if (!empty($this->result->nomUsage)) {?>
(<?=$this->result->nomUsage?>)&nbsp;
<?php }?>
<br/>Née
<?php if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {?>
le <?=$this->result->naissanceDate?>&nbsp;
<?php }?>
<?php if (!empty($this->result->naissanceLieu)) {?>
à <?=$this->result->naissanceLieu?>&nbsp;
<?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}.'&nbsp;';
}
}
?>