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

42 lines
1.5 KiB
PHP
Raw Normal View History

<script>
function affCache(idpr)
{
var pr = document.getElementById(idpr);
if (pr.style.display == "") {
pr.style.display = "none";
} else {
pr.style.display = "";
}
}
</script>
<div style="border:1px solid silver;background-color:#E0E1E6" align="center">
Cliquez pour afficher la liste
<div align="right" style="float:right">
<img src="/pages/giant/media/icons/application_put.png" onclick="affCache('pr4');" style="cursor:pointer" />
</div>
</div>
<div id="pr4" style="display:none">
<?php
$array = array();
$i = 0;
foreach($FinancialSummary as $champ => $valeur)
{
if (!is_object($valeur))
echo '<b>'.SelectTrueLabel($this->labelConfig, $champ) . ' :</b> ' . $valeur . '<br />';
else {
foreach($valeur as $chmp => $val)
{
$array[$i]= $val;
$i++;
}
}
}
echo '<b>' .SelectTrueLabel($this->labelConfig, 'SummaryDate ') .': </b>'. $array[0] . '<br />';
echo '<b>'.SelectTrueLabel($this->labelConfig, 'TotalEquity ') . ': </b>'.$array[3] . ' '. $array[4] .' <br />';
echo '<b>'.SelectTrueLabel($this->labelConfig, 'WorkingCapital ') . ': </b>'.$array[6] . ' '.$array[7] .' <br />';
echo '<b>'.SelectTrueLabel($this->labelConfig, 'AuthorizedCapital ') . ': </b>'.$array[9] . ' '. $array[10] .' <br />';
echo '<b>'.SelectTrueLabel($this->labelConfig, 'IssuedCapital ') . ': </b>'.$array[12] . ' '. $array[13] .' <br />';
echo '<b>'.SelectTrueLabel($this->labelConfig, 'PaidUpCapital ') . ': </b>'.$array[15] . ' '. $array[16] .' <br />';
?>
</div>