Issue #0001653 affichage l'icone pour idClient=1

This commit is contained in:
Aram HARUTYUNYAN 2013-08-09 13:12:51 +00:00
parent 69f8751f06
commit 1f6c66d9c5
2 changed files with 24 additions and 1 deletions

View File

@ -49,6 +49,7 @@ class DirigeantController extends Zend_Controller_Action
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('dirigeants', $dirigeants);
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('idClient', $user->getIdClient());
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));

View File

@ -85,9 +85,20 @@ table.data td { border:1px solid #ccc; padding:5px; }
?>
né(e) à <?=$dir->NaissVille?> &nbsp;(<?=$dir->NaissDepPays?>)
<?php } ?>
<img src="/themes/default/images/worldcheck/wc.png" />
<?php } ?>
</td>
<td><?php if($this->idClient==1) { ?>
<a class='wcheck' href="<?=$this->url(array(
'controller' => 'worldcheck',
'action' => 'index',
'dirNom' => $dir->Nom,
'dirPrenom' => $dir->Prenom,
'dirNaissJJ' => substr($dir->NaissDate,0,2),
'dirDateNaissMM' => substr($dir->NaissDate,3,2),
'dirDateNaissAAAA' => substr($dir->NaissDate,6,4),
'dirCpVille' => $dir->NaissVille))?>" title="WorldCheck" style="cursor: pointer;" >
<img src="/themes/default/images/worldcheck/wc.png" /></a>
<?php }?></td>
<td class="StyleInfoData" width="100" valign="top">
<?php if ($dir->Siren!='') {?>
<a title="Consulter la fiche identité" href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$dir->Siren))?>">
@ -150,5 +161,16 @@ $('a.dialog').on('click', function(){
return false;
}
});
$('a.wcheck').qtip({
content: 'WorldCheck',
position: {
corner: {
target: 'topRight',
tooltip: 'topLeft'
}
}
});
</script>
<?php }?>