Issue #0001919: [Liens inter-entreprises] verifier la date de naissance avant de l'afficher

This commit is contained in:
Aram HARUTYUNYAN 2014-04-04 10:45:47 +00:00
parent 7dd7e2f6ec
commit 51228580d5

View File

@ -1,16 +1,19 @@
<div>
<?php if ($this->result->PpPm == 'PP') {?>
<strong>
<?php if (!empty($this->result->civilite)) {?>
<?=$this->result->civilite?>&nbsp;
<?php }?>
<?php if (!empty($this->result->nom)) {?>
<?=$this->result->nom?>&nbsp; <?php }?>
<?=$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 }?>
</strong><br/>
<?php
$message = '';
if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {
@ -108,9 +111,9 @@ else
'action'=>'dirigeant',
'dirNom'=>$this->result->nom,
'dirPrenom'=>$this->result->prenom,
'dirDateNaissJJ'=>$date->get('dd'),
'dirDateNaissMM'=>$date->get('MM'),
'dirDateNaissAAAA'=>$date->get('YYYY')
'dirDateNaissJJ'=>$date?$date->get('dd'):'',
'dirDateNaissMM'=>$date?$date->get('MM'):'',
'dirDateNaissAAAA'=>$date?$date->get('YYYY'):''
);
?>
<br/><a href="<?=$this->url($param,null,true);?>">Lancer une recherche dirigeant</a>