4d4e57b456
- Modification des rapport - Ajout des flags sur SOAP - Modification visuels
56 lines
2.6 KiB
PHP
56 lines
2.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)
|
|
{
|
|
foreach($other->Company->CompanyName as $name) {
|
|
if(isset($other->Period->StartDate))
|
|
$StartdateOfOther = _setDateWithGiant($other->Period->StartDate->format, $other->Period->StartDate->_);
|
|
else if(isset($other->Period->EndDate))
|
|
$StartdateOfOther = _setDateWithGiant($other->Period->EndDate->format, $other->Period->EndDate->_);
|
|
$OtherCompany .=
|
|
'<table>'.
|
|
'<tr>'.
|
|
'<td colspan="2">'.
|
|
'<a target="_blank" href="/?page=GiantIdentiteSociete&pays='.((isset($other->Company->Country))?$other->Company->Country:$_GET['pays']).'&company='.$other->Company->CompanyId.'">'.
|
|
$name->_.
|
|
'</a>'.
|
|
'</td>'.
|
|
'</tr>'.
|
|
'<tr>'.
|
|
'<td><b>'.SelectTrueLabel($this->labelConfig, 'StartDate').'</b></td>'.
|
|
'<td>'.$StartdateOfOther.'</td>'.
|
|
'<td><b>'.SelectTrueLabel($this->labelConfig, 'EndDate').'</b></td>'.
|
|
'<td>'.$EnddateOfOther.'</td>'.
|
|
'</tr>'.
|
|
'</table>';
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
<tr>
|
|
<td valign="top"><?php echo $person->PositionTitle->_;?></td>
|
|
<?php if(isset($person->Person)) {?>
|
|
<?php if($person->Person->Gender == 'Male'){$genre = 'M.';} else {$genre = 'Mme.';}?>
|
|
<td valign="top" 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>'.
|
|
_setDateWithGiant($person->Person->DateOfBirth->format, $person->Person->DateOfBirth->_).
|
|
' <b>à</b> '.$person->Person->PlaceOfBirth?>
|
|
</td>
|
|
<?php }?>
|
|
<?php if(isset($person->Company)) {?>
|
|
<?php foreach($person->Company->CompanyName as $company) {?>
|
|
<td valign="top"><a href="/?page=GiantIdentiteSociete&pays=<?php echo $_GET['pays'];?>&company=<?php echo $person->Company->CompanyId?>"><?php echo $company->_;?></a></td>
|
|
<?php }?>
|
|
<td valign="top"><b>Started : </b>
|
|
<?php echo _setDateWithGiant($person->Period->StartDate->format, $person->Period->StartDate->_)?><br />
|
|
<b>EndDate : </b>
|
|
<?php echo _setDateWithGiant($person->Period->EndDate->format, $person->Period->EndDate->_)?><br />
|
|
</td>
|
|
<?php }?>
|
|
</tr>
|
|
<?php }?>
|
|
</tr>
|
|
</table>
|