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

84 lines
2.5 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="r3" style="cursor:pointer" />
</div>
</div>
<div id="pr3" style="display:none">
<table id="TableContentInformation" width="100%">
<?php
$i = 0;
foreach($CreditRecommendation as $champ => $valeur)
{
echo '<tr>';
if ($champ == 'Description')
echo '<td align="center" colspan="3">' . $valeur->_ .'</td>';
echo '</tr>';
}
foreach($CreditRecommendation as $champ => $valeur)
{
echo '<tr>';
if ($champ == 'AmountAdvised')
{
echo '<td colspan="2"><b>'.SelectTrueLabel($this->labelConfig, $champ).'</b></td>';
echo '<td align="right">' . $valeur->_ .'</td>';
}
echo '</tr>';
if (is_object($valeur))
{
foreach($valeur as $chmp => $val)
{
if ($chmp == 'ProviderRiskClass')
{
echo '<tr>';
echo '<td valign="top">';
echo '<table width="100%">';
echo '<tr>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig, 'RatingName');
echo '</b></td>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig, 'RatingValue');
echo '</b></td>';
echo '<tr>';
foreach($val as $ProviderRisks => $info)
{
$i++;
echo '<tr>';
echo '<td class="GiantTooltip" title="'.$info->Description->_.'">'.$info->RatingName->_. '</td>';
echo '<td>'.$info->RatingValue.'</td>';
echo '</tr>';
}
echo '</table>';
echo '</td>';
} else if ($chmp == 'CommonRiskClass')
{
echo '<td colspan="'.$i.'" valign="top">';
echo '<table width="100%">';
echo '<tr>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig, 'RatingName');
echo '</b></td>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig, 'RatingValue');
echo '</b></td>';
echo '</tr>';
echo '<tr>';
echo '<td class="GiantTooltip" title="'.$val->RatingName->_.'">';
echo $val->RatingName->_;
echo '</td>';
echo '<td>';
echo $val->RatingValue;
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</td>';
echo '</tr>';
}
}
}
}
?>
</table>
</div>