Issue #0001788: [Dirigeants Opérationnels] Afficher la liste des sociétes pour certain dirigeant opérationnel

This commit is contained in:
Aram HARUTYUNYAN 2014-03-18 11:37:44 +00:00
parent 9062138e1b
commit 332283189a

View File

@ -0,0 +1,61 @@
<div id="center">
<h1><?=$this->translate("DIRIGEANTS OPERATIONNELS")?></h1>
<div class="paragraph">
<table class="identite">
<tr>
<td width="30">&nbsp;</td>
<td width="200" class="StyleInfoLib"><?=$this->translate("Nom de dirigeant")?></td>
<td width="350" class="StyleInfoData"><?=$this->nom.' '.$this->prenom?></td>
</tr>
</table>
</div>
<h2><?=$this->translate("Liste des entreprises actifs")?></h2>
<div class="paragraph">
<?php if ( count($this->liste)>0 ) { ?>
<table class="data">
<?php foreach ($this->liste as $liste) {?>
<tr>
<td class="StyleInfoData" width="300"><?=$liste->RS->Nom; ?></td>
<td class="StyleInfoData" width="80" valign="top">
<a href="<?=$this->url(array('controller'=>'identite', 'action'=>'fiche', 'siret'=>$liste->siren), null, true) ?>">
<?=$this->SirenTexte($liste->siren)?></a></td>
<td class="StyleInfoData" width="200" valign="top"><?=$liste->libFct?></td>
<?php if ($this->accessWorldCheck) {?>
<td class="StyleInfoData" width="20" valign="top">
<img style="cursor:pointer;" class="wcheck" data-url="<?=$this->url(array(
'controller'=>'worldcheck','action'=>'occurence','siren'=>substr($this->siret,0,9),
'dirType'=>'ORGANISATION','dirSociete'=>$liste->RS->Nom),null,true);?>" src="/themes/default/images/worldcheck/wc.png"/>
</td>
<?php }?>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<table>
<tr>
<td class="StyleInfoData" width="550">
<?=$this->translate("Aucune donn&eacute;e n'est pr&eacute;sente dans notre base")?>
</td>
</tr>
</table>
<?php } ?>
</div>
</div>
<?php if ($this->accessWorldCheck) {?>
<script>
$('img.wcheck').each(function(){
$(this).qtip({
hide: { event: 'unfocus' },
show: { solo: true, delay: 500 },
content: {
button: true,
title: 'WorlCheck',
text: "Chargement...",
ajax: { url: $(this).data('url') } },
position: { my: 'right center', at: 'left center' }
});
});
</script>
<?php }?>