76 lines
2.1 KiB
PHTML
76 lines
2.1 KiB
PHTML
<?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 }?>
|
|
|
|
<?php }?>
|
|
<br/>
|
|
<?php if($this->edition) { ?>
|
|
<a class="dialogFiche" title="Edition fiche" href="<?=$this->url(array('controller'=>'saisie', 'action'=>'lienfiche', 'idFiche'=>$this->idFiche),null,true)?>">
|
|
Editer la fiche</a>
|
|
<script>
|
|
$('a.dialogFiche').on('click', function(){
|
|
var href = $(this).attr('href');
|
|
if (href!='#') {
|
|
var title = $(this).attr('title');
|
|
var dialogOpts = {
|
|
bgiframe: true,
|
|
title: title,
|
|
width: 650,
|
|
height: 600,
|
|
modal: true,
|
|
open: function(event, ui) {
|
|
$(this).html('Chargement...');
|
|
$(this).load(href);
|
|
},
|
|
close: function() { $('#dialog').remove(); }
|
|
};
|
|
$('<div id="dialog"></div>').dialog(dialogOpts);
|
|
return false;
|
|
}
|
|
});
|
|
</script>
|
|
<?php }?>
|
|
<br/>
|
|
<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 ( $item=='adressePays' ) {
|
|
echo $this->countries[$this->result->{$item}];
|
|
} elseif (!empty($this->result->{$item})) {
|
|
echo $this->result->{$item}.' ';
|
|
}
|
|
}
|
|
?> |