2011-04-08 15:40:51 +00:00

41 lines
1.6 KiB
PHP

<table class="PositionGiant" width="100%">
<tr>
<?php foreach($Position as $person) {?>
<?php if (isset($person->OtherPositions))
{
$OtherCompany = '<b>'.SelectTrueLabel($this->labelConfig['Section_rapportPosition'], 'OtherCompany').'</b><br />';
foreach($person->OtherPositions as $other)
{
$dateOfOther = _setDateWithGiant($other->Period->StartDate->format, $other->Period->StartDate->_);
$OtherCompany .=
'<table>'.
'<tr>'.
'<td colspan="2">'.
'<a target="_blank" href="/?page=GiantIdentiteSociete&pays='.$other->Company->Country.'&company='.$other->Company->CompanyId.'">'.
$other->Company->CompanyName->_.
'</a>'.
'</td>'.
'</tr>'.
'<tr>'.
'<td>'.SelectTrueLabel($this->labelConfig, 'StartDate').'</td>'.
'<td>'.$dateOfOther[2].'/'.$dateOfOther[1].'/'.$dateOfOther[0].'</td>'.
'</tr>'.
'</table>';
}
}
?>
<?php $dateOfBirth = _setDateWithGiant($person->Person->DateOfBirth->format, $person->Person->DateOfBirth->_);?>
<tr>
<!-- Afficher autorized plutot que title !! -->
<td><?php echo $person->Person->Title;?></td>
<?php if($person->Person->Gender == 'Male'){$genre = 'M.';} else {$genre = 'Mme.';}?>
<td id="name" class="GiantTooltip" title="<?php echo htmlentities($OtherCompany);?>" ><?php echo $genre. ' ' . $person->Person->LastName?></td>
<td><b><?php echo SelectTrueLabel($this->labelConfig['Section_rapportPosition'], 'Born ').'</b>'.
$dateOfBirth[2].'/'.$dateOfBirth[1].'/'.$dateOfBirth[0].
' <b>à</b> '.$person->Person->PlaceOfBirth?>
</td>
</tr>
<?php }?>
</tr>
</table>