51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<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('pr3');" style="cursor:pointer" />
|
|
</div>
|
|
</div>
|
|
<div id="pr3" style="display:none">
|
|
<?php
|
|
function _getInformation($CreditRecommendation, $config)
|
|
{
|
|
foreach($CreditRecommendation as $objs => $valeur)
|
|
{
|
|
if (is_object($valeur))
|
|
{
|
|
foreach($valeur as $champs => $val)
|
|
{
|
|
if (!is_object($val))
|
|
{
|
|
if ($champs != 'operator')
|
|
{
|
|
if ($champs == '_')
|
|
echo '<br /><b>'.SelectTrueLabel($config, 'EncourConseille') . '</b> : '.$val . ' ';
|
|
else
|
|
echo '<br /><b>'.SelectTrueLabel($config, $champs) . '</b> : '.$val . ' ';
|
|
}
|
|
}
|
|
else
|
|
_getInformation($val, $config);
|
|
}
|
|
} else {
|
|
if ($objs == 'RatingValue')
|
|
echo '<br /><b>'.SelectTrueLabel($config, 'note') . '</b> : '. $valeur . '/20';
|
|
}
|
|
}
|
|
}
|
|
|
|
_getInformation($CreditRecommendation, $this->labelConfig);
|
|
?>
|
|
</div>
|