extranet/includes/giant/templates/rapport/CreditRecommendation.tpl.php
2011-04-14 09:54:08 +00:00

84 lines
2.5 KiB
PHP

<table class="CreditRecommendation" width="100%">
<?php
$i = 0;
foreach($CreditRecommendation as $Credit){
foreach($Credit as $champ => $valeur)
{
echo '<tr>';
if ($champ == 'Description')
echo '<td align="center" colspan="3">' . $valeur->_ .'</td>';
echo '</tr>';
}
foreach($Credit as $champ => $valeur)
{
echo '<tr>';
if ($champ == 'AmountAdvised')
{
echo '<td colspan="2"><b>'.SelectTrueLabel($this->labelConfig['Section_rapportCreditRecommendation'], $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['Section_rapportCreditRecommendation'], 'RatingName');
echo '</b></td>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig['Section_rapportCreditRecommendation'], 'RatingValue');
echo '</b></td>';
echo '<tr>';
foreach($val as $ProviderRisks => $info)
{
$i++;
echo '<tr>';
echo '<td class="GiantTooltip" title="';
if (isset($info->Description)) {
foreach ($info->Description as $desc) {
echo $desc->_;
}
}
echo '">'.$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['Section_rapportCreditRecommendation'], 'RatingName');
echo '</b></td>';
echo '<td><b>';
echo SelectTrueLabel($this->labelConfig['Section_rapportCreditRecommendation'], '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>