extranet/includes/giant/templates/rapport/FinancialSummary.tpl.php
2011-03-31 15:25:21 +00:00

40 lines
1.4 KiB
PHP

<div id="divOpenData" style="" align="center">
Cliquez pour afficher la liste
<div align="right" style="float:right">
<img src="/pages/giant/media/icons/application_put.png" class="idpr" id="r4" style="cursor:pointer" />
</div>
</div>
<div id="pr4" style="display:none">
<table width="100%" id="TableContentInformation">
<?php
$champFinancialSummary = array(
SelectTrueLabel($this->labelConfig, 'Revenue'),
SelectTrueLabel($this->labelConfig, 'TotalEquity'),
SelectTrueLabel($this->labelConfig, 'ProfitLoss'),
SelectTrueLabel($this->labelConfig, 'WorkingCapital'),
SelectTrueLabel($this->labelConfig, 'AuthorizedCapital'),
SelectTrueLabel($this->labelConfig, 'IssuedCapital'),
SelectTrueLabel($this->labelConfig, 'PaidUpCapital'));
foreach(array($FinancialSummary) as $valeur) {
echo '<tr><td colspan="2" align="center"><b>'.substr($valeur->SummaryDate->_, 0, 4).'</b></td></tr>';
}
foreach ($champFinancialSummary as $champ)
{
echo '<tr>';
echo '<td>' . $champ . '</td>';
foreach(array($FinancialSummary) as $valeur)
{
if (isset($valeur->$champ))
{
if (is_numeric($print = $valeur->$champ->_))
echo '<td align="right">' . $print * $valeur->Unit .' <b>'. $valeur->$champ->currency .'</b></td>';
else
echo '<td align="right">' . $print . '</td>';
}
}
echo '</tr>';
}
?>
</table>
</div>