issue #0001719: table change
This commit is contained in:
parent
36146f5687
commit
29551808b8
@ -81,7 +81,6 @@ class GiantController extends Zend_Controller_Action
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
var_dump($this->TestIndication);
|
||||
if (count($rechercheParams->liste()) > 0)
|
||||
{
|
||||
$recherche = $rechercheParams->item(0);
|
||||
@ -119,7 +118,6 @@ class GiantController extends Zend_Controller_Action
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
var_dump($this->TestIndication);
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
@ -152,7 +150,6 @@ class GiantController extends Zend_Controller_Action
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
var_dump($this->TestIndication);
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
@ -188,7 +185,6 @@ class GiantController extends Zend_Controller_Action
|
||||
if($test == true){
|
||||
$this->TestIndication = true;
|
||||
}
|
||||
var_dump($this->TestIndication);
|
||||
$giantController = new GiantControllerLib($this->getRequest()->getParam('CompanyId').'-'.$this->getRequest()->getParam('Type'));
|
||||
$id = $giantController->commande($this->getRequest()->getParam('CompanyId'),
|
||||
$this->getRequest()->getParam('Type'),
|
||||
|
@ -2,46 +2,50 @@
|
||||
<a name="20"></a>
|
||||
<span>Comparaison des valeurs</span><br /><br />
|
||||
<?php if(isset($this->report->ComparaisonValeurs)):?>
|
||||
<table width="97%" class="hoverTr">
|
||||
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<td></td>
|
||||
<th> </th>
|
||||
<?php $date = explode('/', $this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['date']);?>
|
||||
<td><b><?php echo $date[2];?></b></td>
|
||||
<td><b>Secteur</b></td>
|
||||
<td class="Variation" colspan="2"><b>Variation</b></td>
|
||||
<th align="right" class="date"><?php echo $date[2];?></th>
|
||||
<th align="right" class="date">Secteur</th>
|
||||
<th align="right" class="date">Variation</th>
|
||||
<th> </th>
|
||||
<?php if(isset($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'])):?>
|
||||
<?php foreach($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'] as $date => $valeur):?>
|
||||
<?php $dates = explode('/', $date);?>
|
||||
<td class="align"><b><?php echo $dates[2];?></b></td>
|
||||
<th align="right" class="date"><?php echo $dates[2];?></th>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="<?php echo count($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'])+5?>"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php $i=0;foreach($this->report->ComparaisonValeurs as $name => $ComparaisonValeurs):$i++;?>
|
||||
<?php
|
||||
($ComparaisonValeurs['current'] != 0 and $ComparaisonValeurs['entreprise'] != 0)?
|
||||
<?php ($ComparaisonValeurs['current'] != 0 and $ComparaisonValeurs['entreprise'] != 0)?
|
||||
$val = round((($ComparaisonValeurs['current']/$ComparaisonValeurs['entreprise'])*100)-100):'NC';
|
||||
?>
|
||||
<tr class="<?php echo ($val < 0)? 'red':'green'; ?>">
|
||||
<td style="font-size:10px"><?php echo str_replace('_', ' ', $name);?></td>
|
||||
<td class="align"><?php echo round($ComparaisonValeurs['current']); ?></td>
|
||||
<td class="align"><?php echo round($ComparaisonValeurs['entreprise']); ?></td>
|
||||
<td class="align"><?php echo $val; ?> %</td>
|
||||
<td class="alignCenter" style="width:20px;"><img class="tooltip" title="<center><b>Evolution années précédentes</b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>.png' />" alt="icone" src="/themes/default/images/giant/<?php echo ($val > 0)? 'up': 'down';?>.png" /></td>
|
||||
<?php if(!empty($ComparaisonValeurs['old'])):?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo str_replace('_', ' ', $name);?>"><?php echo str_replace('_', ' ', $name);?></a>
|
||||
</td>
|
||||
<td class="right"><?php echo round($ComparaisonValeurs['current']); ?></td>
|
||||
<td class="right"><?php echo round($ComparaisonValeurs['entreprise']); ?></td>
|
||||
<td class="right"><?php echo $val; ?> %</td>
|
||||
<td align="center"><img class="tooltip" title="<center><b>Evolution années précédentes</b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>.png' />" alt="icone" src="/themes/default/images/giant/<?php echo ($val > 0)? 'up': 'down';?>.png" /></td>
|
||||
<?php if(!empty($ComparaisonValeurs['old'])):?>
|
||||
<?php $i=0;foreach($ComparaisonValeurs['old'] as $valeur):$i++?>
|
||||
<?php if($i == 4) break;?>
|
||||
<td align="right"><?php echo round($valeur[0]->SubjectValue);?></td>
|
||||
<?php endforeach;?>
|
||||
<?php endif;?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo count($this->report->ComparaisonValeurs[key($this->report->ComparaisonValeurs)]['old'])+5?>"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
|
@ -2,29 +2,32 @@
|
||||
<?php if(isset($this->report->PaymentBehaviour)):?>
|
||||
<?php if(isset($this->report->ComportementPaiement)):?>
|
||||
<span class="title">Analyse par année</span><br /><br />
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr">
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="date">Jours</th>
|
||||
<?php foreach(current($this->report->ComportementPaiement) as $dates => $valeurs):?>
|
||||
<? if($dates==':30'){$dates='1:30';}else if($dates=='90:'){$dates='+90';}else if($dates=='151:'){$dates='+151';}?>
|
||||
<?$dates = str_replace(':', ' - ', $dates)?>
|
||||
<th align="right" class="date"><?=$dates?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ComportementPaiement as $dates => $valeurs):?>
|
||||
<?php $date = explode(':', $dates);?>
|
||||
<tr>
|
||||
<td style="font-size:12px;"><b><?php echo $date[0];?> - <?php echo $date[1];?></b></td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td style="padding:5px;font-size:12px;"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach;?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<tr style="font-weight:800">
|
||||
<td>Jours</td>
|
||||
<td>1 - 30</td>
|
||||
<td>31 - 60</td>
|
||||
<td>61 - 90</td>
|
||||
<td>91 - 120</td>
|
||||
<td>121 - 150</td>
|
||||
<td> + 151</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $date[0];?> - <?php echo $date[1];?>"><?php echo $date[0];?> - <?php echo $date[1];?></a>
|
||||
</td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td class="right"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<center>
|
||||
<span class="title">Graphique Analyse par année</span><br /><br />
|
||||
@ -62,29 +65,34 @@
|
||||
<a name="14"></a>
|
||||
<span class="title">Analyse par sommes</span><br /><br />
|
||||
<?php if(isset($this->report->ByAmount)):?>
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr">
|
||||
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="date">Jours</th>
|
||||
<?php foreach(current($this->report->ByAmount) as $dates => $valeurs):?>
|
||||
<? if($dates==':30'){$dates='1:30';}else if($dates=='90:'){$dates='+90';}else if($dates=='151:'){$dates='+151';}?>
|
||||
<?$dates = str_replace(':', ' - ', $dates)?>
|
||||
<th align="right" class="date"><?=$dates?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ByAmount as $sommes => $valeurs):?>
|
||||
<?php $somme = explode(':', $sommes);?>
|
||||
<tr>
|
||||
<td>entre : <b><?php echo (!empty($somme[0]))?$somme[0].'€':'0';?></b> et <b><?php echo (!empty($somme[1]))?$somme[1].'€':'plus';?></b></td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td style="padding:5px;"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach;?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+1;?>"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<tr style="font-weight:800">
|
||||
<td>Jours</td>
|
||||
<td>1 - 30</td>
|
||||
<td>31 - 60</td>
|
||||
<td>61 - 90</td>
|
||||
<td>91 - 120</td>
|
||||
<td>121 - 150</td>
|
||||
<td> + 151</td>
|
||||
</tr>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $date[0];?> - <?php echo $date[1];?>">entre : <?php echo (!empty($somme[0]))?$somme[0].'€':'0';?></b> et <b><?php echo (!empty($somme[1]))?$somme[1].'€':'plus';?></a>
|
||||
</td>
|
||||
<?php $i=0;foreach($valeurs as $valeur): $i++; ?>
|
||||
<td class="right"><?php echo $valeur;?> %</td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<center>
|
||||
<a name="15"></a>
|
||||
|
@ -33,27 +33,33 @@
|
||||
<br />
|
||||
<a name="7"></a>
|
||||
<span class="title" >Actif</span><br />
|
||||
<table class="hoverTr bilansTAB">
|
||||
<tr>
|
||||
<td></td>
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<td><b><?php echo $AnnualAccounts->AccountsDate->_; ?></b></td>
|
||||
<th align="right" class="date"><?php echo $AnnualAccounts->AccountsDate->_; ?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->Assets as $name => $Assets):?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Assets as $name => $Assets):?>
|
||||
<?php if(!empty($this->report->Assets->{$name})){$end = end($this->report->Assets->{$name});reset($this->report->Assets->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->Assets->{$name})){$key = $this->report->Assets->{$name}[key($this->report->Assets->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="tdP"><b><?php echo $name;?></b></td>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstAsset))?$firstAsset = $this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td><?php echo number_format($this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<td class="right"><?php echo number_format($this->report->Assets->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<td align="center">
|
||||
<?php if($end > $firstAsset):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
@ -61,11 +67,9 @@
|
||||
<?php endif;unset($firstAsset);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des actifs</span>
|
||||
@ -74,27 +78,33 @@
|
||||
<br />
|
||||
<a name="8"></a>
|
||||
<span class="title">Passif</span><br />
|
||||
<table class="hoverTr bilansTAB">
|
||||
<tr>
|
||||
<td></td>
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<td><b><?php echo $AnnualAccounts->AccountsDate->_; ?></b></td>
|
||||
<th align="right" class="date"><?php echo $AnnualAccounts->AccountsDate->_; ?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->Liabilities as $name => $Liabilities):?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->Liabilities as $name => $Liabilities):?>
|
||||
<?php if(!empty($this->report->Liabilities->{$name})){$end = end($this->report->Liabilities->{$name});reset($this->report->Liabilities->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->Liabilities->{$name})){$key = $this->report->Liabilities->{$name}[key($this->report->Liabilities->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="tdP"><b><?php echo $name;?></b></td>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstLiabilities))?$firstLiabilities = $this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td><?php echo number_format($this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<td class="right"><?php echo number_format($this->report->Liabilities->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<td align="center">
|
||||
<?php if($end > $firstLiabilities):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
@ -102,11 +112,9 @@
|
||||
<?php endif;unset($firstLiabilities);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des passifs</span>
|
||||
@ -115,27 +123,33 @@
|
||||
<br />
|
||||
<a name="9"></a>
|
||||
<span class="title">Compte de résultats</span><br />
|
||||
<table class="hoverTr bilansTAB">
|
||||
<tr>
|
||||
<td></td>
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<td><b><?php echo $AnnualAccounts->AccountsDate->_; ?></b></td>
|
||||
<th align="right" class="date"><?php echo $AnnualAccounts->AccountsDate->_; ?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->ProfitAndLoss as $name => $ProfitAndLoss):?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->ProfitAndLoss as $name => $ProfitAndLoss):?>
|
||||
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$end = end($this->report->ProfitAndLoss->{$name});reset($this->report->ProfitAndLoss->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->ProfitAndLoss->{$name})){$key = $this->report->ProfitAndLoss->{$name}[key($this->report->ProfitAndLoss->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="tdP"><b><?php echo $name;?></b></td>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstProfitAndLoss))?$firstProfitAndLoss = $this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td><?php echo number_format($this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<td class="right"><?php echo number_format($this->report->ProfitAndLoss->{$name}[$AnnualAccounts->AccountsDate->_], 0, '', ' ');?> K€</td>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<td align="center">
|
||||
<?php if($end > $firstProfitAndLoss):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
@ -143,11 +157,9 @@
|
||||
<?php endif;unset($firstProfitAndLoss);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Compte de resultats</span>
|
||||
@ -157,27 +169,35 @@
|
||||
<br />
|
||||
<a name="10"></a>
|
||||
<span class="title">KeyCreditRatios</span><br />
|
||||
<table class="hoverTr bilansTAB">
|
||||
<tr>
|
||||
<td></td>
|
||||
|
||||
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i=0; foreach($this->report->AnnualAccounts as $AnnualAccounts): $i++?>
|
||||
<td><b><?php echo $AnnualAccounts->AccountsDate->_; ?></b></td>
|
||||
<th align="right" class="date"><?php echo $AnnualAccounts->AccountsDate->_; ?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->KeyCreditRatios as $name => $KeyCreditRatios):?>
|
||||
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<?php foreach($this->report->KeyCreditRatios as $name => $KeyCreditRatios):?>
|
||||
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$end = end($this->report->KeyCreditRatios->{$name});reset($this->report->KeyCreditRatios->{$name});}else{$end = 0;}?>
|
||||
<?php if(!empty($this->report->KeyCreditRatios->{$name})){$key = $this->report->KeyCreditRatios->{$name}[key($this->report->KeyCreditRatios->{$name})];}else{$key = 0;}?>
|
||||
<?php $val = ($key < $end)?true:false;?>
|
||||
<tr class="<?php echo ($val)? 'red':'green'; ?>">
|
||||
<td class="tdP"><b><?php echo $name;?></b></td>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($this->report->AnnualAccounts as $AnnualAccounts): ?>
|
||||
<?php (empty($firstKeyCreditRatios))?$firstKeyCreditRatios = $this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]:EOF;?>
|
||||
<td><?php echo (!empty($this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]))?$this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_].' %':'NC'?></td>
|
||||
<td class="right"><?php echo (!empty($this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_]))?$this->report->KeyCreditRatios->{$name}[$AnnualAccounts->AccountsDate->_].' %':'NC'?></td>
|
||||
<?php endforeach; ?>
|
||||
<td>
|
||||
<td align="center">
|
||||
<?php if($end > $firstKeyCreditRatios):?>
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
@ -185,11 +205,9 @@
|
||||
<?php endif;unset($firstKeyCreditRatios);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+2; ?>"><hr /></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
|
@ -3,28 +3,30 @@
|
||||
<a name="11"></a>
|
||||
<span class="title">Informations Capital</span><br />
|
||||
<?php if(isset($this->report->PositionFinanciere)):?>
|
||||
<table style="font-size:13px;margin-left: 19px;" width="97%" class="hoverTr">
|
||||
<table id="giant_synthese">
|
||||
<thead>
|
||||
<tr>
|
||||
<td></td>
|
||||
<th align="center">
|
||||
</th>
|
||||
<?php $i = 0; foreach($this->report->PositionFinanciereDate as $date => $val):$i++?>
|
||||
<td><b><?php echo $date;?></b></td>
|
||||
<?php endforeach;?>
|
||||
<th align="right" class="date"><?php echo $date;?></th>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+1; ?>"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php foreach($this->report->PositionFinanciere as $name => $PositionFinanciere):?>
|
||||
<tr>
|
||||
<td style="font-size: 12px;"><b><?php echo $name;?></b></td>
|
||||
<?php foreach($PositionFinanciere as $element):?>
|
||||
<td style="font-size: 12px;padding:5px;"><?php echo $element?></td>
|
||||
<?php endforeach;?>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="<?php echo $i+1; ?>"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="head">
|
||||
<a class="tooltip" title="<?php echo $name;?>"><?php echo $name;?></a>
|
||||
</td>
|
||||
<?php foreach($PositionFinanciere as $element):?>
|
||||
<td class="right"><?php echo $element?></td>
|
||||
<?php endforeach; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php else:?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
@ -35,7 +37,7 @@
|
||||
<br />
|
||||
<center>
|
||||
<a name="12"></a>
|
||||
<span style="font-size:15px;color:#00008C;font-weight:800">Evolution du capital</span><br /><br />
|
||||
<span class="title">Evolution du capital</span><br /><br />
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>positionFinanciere.png" />
|
||||
</center>
|
||||
<span class="title">Relation banquaires</span><br /><br />
|
||||
|
@ -9,4 +9,4 @@ window.onload = function() {
|
||||
#global { width:auto !important;}
|
||||
#content { margin:5px; padding:0; width:auto; }
|
||||
</style>
|
||||
<?=$this->action($this->action, $this->controller, null, $this->params)?>
|
||||
<?=$this->action($this->action, $this->controller, null, $this->params)?>
|
@ -273,7 +273,7 @@ Class GiantRechercheController extends GiantFunction
|
||||
$this->Provider = new stdClass();
|
||||
$this->Provider->CountryCode = $CountryCode;
|
||||
$this->Provider->ProviderId = parent::setCountryCode($CountryCode, $this->listAutorized);
|
||||
$this->Provider->TestIndication = true;
|
||||
$this->Provider->TestIndication = (bool)$TestIndication;
|
||||
$this->soapG = new WSgiant($this->Provider,$TestIndication);
|
||||
}
|
||||
|
||||
|
@ -141,10 +141,6 @@
|
||||
background-color: #EDEEF7;
|
||||
}
|
||||
/** Giant rapport **/
|
||||
#ComparisonValeurs table {
|
||||
font-size: 13px;
|
||||
margin-left: 19px;
|
||||
}
|
||||
|
||||
.red {
|
||||
font-size: 11px;
|
||||
@ -365,4 +361,10 @@
|
||||
.testSearch a{
|
||||
color: #008000;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
#giant_synthese .head {font-weight: bold;}
|
||||
#giant_synthese th {background: none repeat scroll 0 0 #B9C9FE;border: 1px solid #FFFFFF;color: #003399;font-size: 13px;font-weight: normal;padding: 4px;}
|
||||
#giant_synthese td.right {text-align: right;}
|
||||
#giant_synthese {border-collapse: collapse;clear: both;font-size: 12px;margin: 10px 0px 0;padding: 2px;text-align: left;width: 100%;font-family: arial,sans-serif;font-size: 11px;}
|
||||
#giant_synthese td {background: none repeat scroll 0 0 #E8EDFF;border: 1px solid #FFFFFF;color: #666699;padding: 4px;}
|
||||
#giant_synthese tr:hover td {background: none repeat scroll 0 0 #D0DAFD;}
|
Loading…
Reference in New Issue
Block a user