extranet/includes/giant/templates/rapport/Associated.tpl.php

35 lines
1.7 KiB
PHP
Raw Normal View History

2011-04-06 13:13:14 +00:00
<h2><?php echo SelectTrueLabel($this->labelConfig['Section_rapportAnnualAccount'], 'Associated')?></h2>
2011-04-08 15:40:51 +00:00
<?php
foreach($Associated as $valeur) {
if (isset($valeur->IsMajorityStake))
$tableau['IsMajorityStake'][] = $valeur;
else
$tableau['NotIsMajorityStake'][] = $valeur;
}
?>
<?php foreach($tableau as $champ => $type) {?>
2011-04-06 13:13:14 +00:00
<table class="associatedGiant">
2011-04-08 15:40:51 +00:00
<tr>
<td style="background-color:silver;font-weight:800" colspan="5" align="center">
<?php echo SelectTrueLabel($this->labelConfig['Section_rapportAssociated'], $champ)?>
</td>
</tr>
<?php foreach($type as $valeur) {?>
<?php $dateOfPeriod = _setDateWithGiant($valeur->Period->StartDate->format, $valeur->Period->StartDate->_);?>
2011-04-06 13:13:14 +00:00
<?php $adress =
'<b>'.SelectTrueLabel($this->labelConfig['Section_rapportAssociated'], 'Adresse').'</b><br />'.
$valeur->Company->CompanyAddress->HouseNumber . ' '.
$valeur->Company->CompanyAddress->Street. ' <br />'.
$valeur->Company->CompanyAddress->PostCode. ' '.
$valeur->Company->CompanyAddress->City; ?>
<tr>
2011-04-08 15:40:51 +00:00
<td><b><?php echo (isset($valeur->Period->StartDate))?$dateOfPeriod[2].'-'.$dateOfPeriod[1].'-'.$dateOfPeriod[0]:false;?></b></td>
<td width="45%"><a target="_blank" href="/?page=GiantIdentiteSociete&pays=<?php echo $_GET['pays'];?>&company=<?php echo $valeur->Company->CompanyId;?>"><?php echo $valeur->Company->CompanyName->_;?></a></td>
2011-04-06 13:13:14 +00:00
<td><?php echo $valeur->RelationShip;?></td>
<td><?php echo round($valeur->Shares->Percentage, 0);?> %</td>
<td class="GiantTooltip" title="<?php echo htmlentities($adress);?>"><?php echo $valeur->Company->CompanyAddress->City;?></td>
</tr>
<?php }?>
2011-04-08 15:40:51 +00:00
</table>
<?php } ?>