issue #0001766 : Ne pas afficher les éléments d'informations pour les id < 1000

This commit is contained in:
Michael RICOIS 2014-03-29 08:46:57 +00:00
parent 0f7fb2ad9f
commit f990ca17fb
2 changed files with 7 additions and 5 deletions

View File

@ -967,6 +967,8 @@ class IdentiteController extends Zend_Controller_Action
$result = $ws->getLienRef($id);
Zend_Registry::get('firebug')->info($result);
$this->view->assign('result', $result);
$this->view->assign('idFiche', $id);
}
/**

View File

@ -1,7 +1,7 @@
<div>
<?php if ($this->result->PpPm == 'PP') {?>
<?php if (!empty($this->result->civilite)) {?>
<?=$this->result->civilite?>&nbsp;
<?=$this->result->civilite?>&nbsp;
<?php }?>
<?php if (!empty($this->result->nom)) {?>
<?=$this->result->nom?>&nbsp; <?php }?>
@ -17,11 +17,11 @@
$date = new Zend_Date($this->result->naissanceDate, 'yyyy-MM-dd');
$message = $message.' '.$this->translate("le").' '.$date->toString('dd/MM/yyyy');
}
if (!empty($this->result->naissanceLieu) || !empty($this->result->naissanceDeptPays)) {
$message = $message.' '.$this->translate("à").' '.$this->result->naissanceLieu.' '.$this->result->naissanceDeptPays;
}
}
if ($message!='') {
if ($this->result->civilite=='' || $this->result->civilite==null) {
$message = $this->translate("Né(e)").' '.$message;
@ -72,7 +72,7 @@ $('a.dialogFiche').on('click', function(e){
</script>
<?php }?>
<?php if ( $this->result->id>=1000 ) {?>
<?php if ( $this->idFiche>=1000 ) {?>
<div><b>Coordonnées : </b></div>
<div><?=($this->result->adresseNum==0) ? '' : $this->result->adresseNum . ' ' .