extranet/includes/giant/templates/GiantCommandeRapport.tpl.php
2011-04-08 15:40:51 +00:00

65 lines
1.7 KiB
PHP

<script>
$("#reset").click(function(){
pct=0;
$("#progressbar").reportprogress(0);
});
</script>
<?php
/**
* Fichier de gestion des affichages des différents rapport disponnibles.
*
*/
require_once 'giant/Config.php';
require_once 'giant/Client.php';
$i = 0;
foreach($DataSetOptions as $params)
{
foreach($params as $type)
{
switch($type->DataSetType->_)
{
case 'Full':
$rapportType = 'FullDescription';
break;
case 'Compact':
$rapportType = 'CompactDescription';
break;
case 'CreditRecommendation':
$rapportType = 'rapportDescription';
break;
}
?>
<tr>
<td width="">&nbsp;</td>
<td width="200" valign="top">
<img class="GiantTooltip" title="
<?php echo SelectTrueLabel($config['Section_rapport'], htmlentities($rapportType));?>" src="img/icones/page_white_magnify.png" />
<b><?php echo $type->DataSetType->_;?></b>
</td>
<td width="100">
<?php
foreach($type->LanguageCodes->LanguageCode as $Language)
echo '<img title="'.
SelectTrueLabel($config['Section_rapport'], 'DesciptionLanguage').$Language.'" src="'._getFlags($Language, 'img/flag/').'"/> ';
?>
</td>
<td>
<a style="margin-left:6px" id="r<?php echo $i?>" class="idpr" href="/?
page=RapportGiant
&pays=<?php echo $_GET['pays']; ?>
&company=<?php echo $_GET['company'];?>
&level=Immediate
&type=<?php echo $type->DataSetType->_;?>
&lang=<?php echo $Language;?>
">
Consulter le rapport en immédiat.
</a>
<img id="pr<?php echo $i?>" style="display:none" src="img/icones/loading11.gif" />
</td>
</tr>
<?php $i++; ?>
<?php }
}
?>