2013-02-21 19:44:05 +00:00

84 lines
2.5 KiB
PHTML

<div>
<?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 }?>
<?php if (!empty($this->result->naissanceDate) && $this->result->naissanceDate!='0000-00-00') {?>
<br/>Née 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 }?>
<?php }?>
</div>
<?php if($this->edition) { ?>
<br/>
<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(e){
e.preventDefault();
$('#dialog').remove();
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 }?>
<div><b>Coordonnées : </b></div>
<div><?=($this->result->adresseNum==0) ? '' : $this->result->adresseNum . ' ' .
$this->result->adresseBtq. ' ' . $this->result->adresseCodeVoie. ' ' .
$this->result->adresseLibVoie?></div>
<div><?=$this->result->adressComp?></div>
<div><?=$this->result->adresseCp . ' ' . $this->result->adresseVille?></div>
<div>
<?php
if ( array_key_exists($this->result->adressePays, $this->countries))
echo $this->countries[$this->result->adressePays];
else
echo $this->result->adressePays;
?>
</div>
<?php if (count($this->result->identification->item)>0) {?>
<div><b>Identifiants nationaux</b></div>
<?php foreach ($this->result->identification->item as $id) {?>
<div><?=$id->label?> - <?=$id->num?></div>
<?php }?>
<?php }?>