Image Cache avec le module file
This commit is contained in:
parent
f2eb3b0acd
commit
de8e417522
@ -175,7 +175,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
$path = $c->profil->path->pages . '/imgcache/';
|
||||
$file = 'syntheseEvol-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png';
|
||||
if (file_exists($path.$file)) {
|
||||
echo '<img src="/fichier/imgcache/'.$file.'" />';
|
||||
echo '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
} else {
|
||||
echo "Erreur de génération du graphique";
|
||||
}
|
||||
@ -194,7 +194,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
$path = $c->profil->path->pages . '/imgcache/';
|
||||
$file = 'synthese-linecompare-'.$this->siret.'-'.$this->id.'-'.$typeBilan.'.png';
|
||||
if (file_exists($path.$file)) {
|
||||
echo '<img src="/fichier/imgcache/'.$file.'" />';
|
||||
echo '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
} else {
|
||||
echo "Erreur de génération du graphique";
|
||||
}
|
||||
@ -447,7 +447,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
break;
|
||||
}
|
||||
if (file_exists($path.$file)) {
|
||||
echo '<img src="/fichier/imgcache/'.$file.'" />';
|
||||
echo '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
} else {
|
||||
echo "Erreur de génération du graphique";
|
||||
}
|
||||
@ -633,7 +633,7 @@ class FinanceController extends Zend_Controller_Action
|
||||
$path = $c->profil->path->pages . '/imgcache/';
|
||||
$file = 'ratiosgraph-'.$this->siret.'-'.$this->id.'-'.$ratio.'.png';
|
||||
if (file_exists($path.$file)) {
|
||||
echo '<img src="/fichier/imgcache/'.$file.'" />';
|
||||
echo '<img src="/file/image/cache/q/'.$file.'" />';
|
||||
} else {
|
||||
echo "Erreur de génération du graphique";
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ $(document).ready(function(){
|
||||
</script>
|
||||
<div class="paragraph">
|
||||
<?php if ( $this->graph ) {?>
|
||||
<img src="/fichier/imgcache/<?=$this->graph?>" usemap="#graphMap">
|
||||
<img src="/file/image/cache/q/<?=$this->graph?>" usemap="#graphMap">
|
||||
<map name="graphMap">
|
||||
<?=$this->graphMap;?>
|
||||
</map>
|
||||
|
@ -75,7 +75,7 @@ foreach ($this->dataTable as $ratio) {
|
||||
|
||||
<?php if ($this->graph) {?>
|
||||
<div class="paragraph">
|
||||
<img src="/fichier/imgcache/<?=$this->graph?>" />
|
||||
<img src="/file/image/cache/q/<?=$this->graph?>" />
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<td colspan="2"><hr style="border:1px dotted silver" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $credit->RiskClasses->CommonRiskClass->RatingName->_);?>.png" /></td>
|
||||
<td colspan="2"><img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $credit->RiskClasses->CommonRiskClass->RatingName->_);?>.png" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@ -46,7 +46,7 @@
|
||||
<td class="float"><?php echo (empty($ProviderRiskClass->RatingValue))?'NC':$ProviderRiskClass->RatingValue; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $ProviderRiskClass->RatingName->_);?>.png" /></td>
|
||||
<td colspan="2"><img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.str_replace(' ', '_', $ProviderRiskClass->RatingName->_);?>.png" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><i><?php echo (empty($ProviderRiskClass->Description[0]->_))?'NC':$ProviderRiskClass->Description[0]->_; ?></i></td>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<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>
|
||||
<td align="center"><img class="tooltip" title="<center><b>Evolution années précédentes</b></center><br /><img src='/file/image/cache/q/<?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;?>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<br />
|
||||
<center>
|
||||
<span class="title">Graphique Analyse par année</span><br /><br />
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiement.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiement.png" />
|
||||
</center>
|
||||
<br />
|
||||
<?php endif;?>
|
||||
@ -99,7 +99,7 @@
|
||||
<center>
|
||||
<a name="15"></a>
|
||||
<span class="title">Graphique Analyse par année</span><br />
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiementByAmount.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>ComportementPaiementByAmount.png" />
|
||||
</center>
|
||||
<?php else: ?>
|
||||
<div style="padding:0.7em;" class="ui-state-error ui-corner-all">
|
||||
|
@ -61,9 +61,9 @@
|
||||
<?php endforeach; ?>
|
||||
<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" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<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/up.png" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstAsset);?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -73,7 +73,7 @@
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des actifs</span>
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>actifs.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>actifs.png" />
|
||||
</div>
|
||||
<br />
|
||||
<a name="8"></a>
|
||||
@ -107,9 +107,9 @@
|
||||
<?php endforeach; ?>
|
||||
<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" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<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/up.png" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstLiabilities);?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -119,7 +119,7 @@
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Graphique des passifs</span>
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>passifs.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>passifs.png" />
|
||||
</div>
|
||||
<br />
|
||||
<a name="9"></a>
|
||||
@ -153,9 +153,9 @@
|
||||
<?php endforeach; ?>
|
||||
<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" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<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/up.png" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstProfitAndLoss);?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -165,7 +165,7 @@
|
||||
<br />
|
||||
<div class="center">
|
||||
<span class="title">Compte de resultats</span>
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>profitandloss.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>profitandloss.png" />
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
@ -200,9 +200,9 @@
|
||||
<?php endforeach; ?>
|
||||
<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" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/down.png" />
|
||||
<?php else: ?>
|
||||
<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/up.png" />
|
||||
<img class="tooltip IMGprint" title="<center><b><?php echo $name;?></b></center><br /><img src='/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-'.$name;?>-line.png' />" src="/themes/default/images/giant/up.png" />
|
||||
<?php endif;unset($firstKeyCreditRatios);?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<center>
|
||||
<a name="12"></a>
|
||||
<span class="title">Evolution du capital</span><br /><br />
|
||||
<img src="/fichier/imgcache/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>positionFinanciere.png" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->report->CompanyId.'-'.$this->Type.'-';?>positionFinanciere.png" />
|
||||
</center>
|
||||
<span class="title">Relation banquaires</span><br /><br />
|
||||
<?php if(isset($this->report->Bank)):?>
|
||||
|
@ -1 +1 @@
|
||||
<img src="/fichier/imgcache/<?php echo $this->name;?>" />
|
||||
<img src="/file/image/cache/q/<?php echo $this->name;?>" />
|
@ -58,7 +58,7 @@ class Scores_Finance_Ratios_Graph
|
||||
$c->setData($data, $labels);
|
||||
$c->set3D(20);
|
||||
if($c->makeChart($this->path.$file) === TRUE){
|
||||
$return = '<img src="./fichier/imgcache/'.$file.'"/>';
|
||||
$return = '<img src="./file/image/cache/q/'.$file.'"/>';
|
||||
}else{
|
||||
$return = false;
|
||||
}
|
||||
|
@ -377,7 +377,7 @@ class RapportComment
|
||||
|
||||
$content = str_replace(
|
||||
$matches[0],
|
||||
'<img src="/fichier/imgcache/'.$image_file.'" />',
|
||||
'<img src="/file/image/cache/q/'.$image_file.'" />',
|
||||
$content);
|
||||
}else{
|
||||
$content = str_replace(
|
||||
|
Loading…
Reference in New Issue
Block a user