correction issue #0000190
This commit is contained in:
parent
ffb00b4643
commit
5a71c1dbdb
@ -227,10 +227,13 @@ if (preg_match('/\bNAF4\b/i', $_SESSION['tabInfo']['pref']) && trim(@$etab['Naf4
|
|||||||
<?php
|
<?php
|
||||||
//Origine du fond
|
//Origine du fond
|
||||||
if ( ($etab['OrigineCreation']*1>0 && $etab['OrigineCreation']*1<9) ||
|
if ( ($etab['OrigineCreation']*1>0 && $etab['OrigineCreation']*1<9) ||
|
||||||
$etab['OrigineCreation']=='A' || $etab['OrigineCreation']=='B' || $etab['OrigineCreation']=='C' ||
|
$etab['OrigineCreation']=='A' ||
|
||||||
$etab['OrigineCreation']=='D' || $etab['OrigineCreation']=='E' )
|
$etab['OrigineCreation']=='B' ||
|
||||||
{
|
$etab['OrigineCreation']=='C' ||
|
||||||
$tabCreation=array( 'a1'=>'Création',
|
$etab['OrigineCreation']=='D' ||
|
||||||
|
$etab['OrigineCreation']=='E' ){
|
||||||
|
$tabCreation = array(
|
||||||
|
'a1'=>'Création',
|
||||||
'a3'=>'Achat',
|
'a3'=>'Achat',
|
||||||
'a4'=>'Apport',
|
'a4'=>'Apport',
|
||||||
'a6'=>'Prise en location gérance',
|
'a6'=>'Prise en location gérance',
|
||||||
@ -265,11 +268,11 @@ if(isset($etab['Bilan']['Cloture'])) $title.=' au '.WDate::dateT('Ymd', 'd/m/Y',
|
|||||||
<?php
|
<?php
|
||||||
if(isset($etab['Bilan']['CA']) && (!isset($etab['TrancheCALib']) || $etab['TrancheCALib']=='N/C'))
|
if(isset($etab['Bilan']['CA']) && (!isset($etab['TrancheCALib']) || $etab['TrancheCALib']=='N/C'))
|
||||||
{
|
{
|
||||||
print moneyKM($etab['Bilan']['CA']).deviseText($etab['Bilan']['Devise']).' au '.WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['Bilan']['Cloture']));
|
echo moneyKM($etab['Bilan']['CA']).deviseText($etab['Bilan']['Devise']).' au '.WDate::dateT('Ymd', 'd/m/Y', str_replace('-','',$etab['Bilan']['Cloture']));
|
||||||
}elseif(isset($etab['TrancheCALib']) && $etab['TrancheCALib']!='N/C'){
|
}elseif(isset($etab['TrancheCALib']) && $etab['TrancheCALib']!='N/C'){
|
||||||
print strWsToHtml($etab['TrancheCALib']);
|
echo strWsToHtml($etab['TrancheCALib']);
|
||||||
}else{
|
}else{
|
||||||
print 'N/C';
|
echo 'N/C';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
@ -284,7 +287,7 @@ if (isset($etab['Capital']) && $etab['Capital']*1>0)
|
|||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="30"> </td>
|
<td width="30"> </td>
|
||||||
<td width="200" class="StyleInfoLib">Capital <?php if (isset($etab['CapitalType']) && $etab['CapitalType']=='V'){print 'variable';}?></td>
|
<td width="200" class="StyleInfoLib">Capital <?php if (isset($etab['CapitalType']) && $etab['CapitalType']=='V'){echo 'variable';}?></td>
|
||||||
<td width="350" class="StyleInfoData" title="<?=$title?>"><?=number_format($etab['Capital'],0,',',' ')?>
|
<td width="350" class="StyleInfoData" title="<?=$title?>"><?=number_format($etab['Capital'],0,',',' ')?>
|
||||||
<?php
|
<?php
|
||||||
if ($etab['CapitalDev']=='EUR') echo '€';
|
if ($etab['CapitalDev']=='EUR') echo '€';
|
||||||
@ -344,7 +347,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
|||||||
if($societe != '')
|
if($societe != '')
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<a href="/?page=recherche&vue=list&formR[type]=ent&formR[raisonSociale]=<?php print $societe;?>" title="Recherche à partir de la raison sociale">
|
<a href="/?page=recherche&vue=list&formR[type]=ent&formR[raisonSociale]=<?=$societe?>" title="Recherche à partir de la raison sociale">
|
||||||
<?=$societe;?>
|
<?=$societe;?>
|
||||||
</a>
|
</a>
|
||||||
<?php
|
<?php
|
||||||
@ -354,7 +357,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
|||||||
<?php
|
<?php
|
||||||
if($nom != ''){
|
if($nom != ''){
|
||||||
?>
|
?>
|
||||||
<a href="/?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?php print $dir['Nom'];?>&formR[dirPrenom]=<?php print $dir['Prenom'];?>&formR[dirDateNaissJJ]=<?php print substr($dir['NaissDate'],0,2);?>&formR[dirDateNaissMM]=<?php print substr($dir['NaissDate'],3,2);?>&formR[dirDateNaissAAAA]=<?php print substr($dir['NaissDate'],6,4);?>" title="Recherche à partir du nom du dirigeant">
|
<a href="/?page=recherche&vue=list&formR[type]=dir&formR[dirNom]=<?=$dir['Nom']?>&formR[dirPrenom]=<?=$dir['Prenom']?>&formR[dirDateNaissJJ]=<?=substr($dir['NaissDate'],0,2)?>&formR[dirDateNaissMM]=<?=substr($dir['NaissDate'],3,2)?>&formR[dirDateNaissAAAA]=<?=substr($dir['NaissDate'],6,4)?>" title="Recherche à partir du nom du dirigeant">
|
||||||
<?php print $nom;?>
|
<?php print $nom;?>
|
||||||
</a>
|
</a>
|
||||||
<?php
|
<?php
|
||||||
@ -631,7 +634,7 @@ if ($etab['SituationJuridique']=='P')
|
|||||||
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
|
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
|
||||||
<font color="red"><b>En procédure collective</b></font>
|
<font color="red"><b>En procédure collective</b></font>
|
||||||
</a>
|
</a>
|
||||||
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php print $dateRadiation; } ?>
|
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php echo $dateRadiation; } ?>
|
||||||
<?php
|
<?php
|
||||||
}/*else{
|
}/*else{
|
||||||
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
|
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
|
||||||
@ -639,9 +642,9 @@ if ($etab['SituationJuridique']=='P')
|
|||||||
//Radiation
|
//Radiation
|
||||||
elseif($etab['SituationJuridique']=='RR')
|
elseif($etab['SituationJuridique']=='RR')
|
||||||
{
|
{
|
||||||
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
|
?> Radié du RCS <?php if($dateRadiation!=''){ ?> le <?php echo $dateRadiation; }
|
||||||
}elseif($etab['SituationJuridique']=='RP'){
|
}elseif($etab['SituationJuridique']=='RP'){
|
||||||
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
|
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php echo $dateRadiation; }
|
||||||
}else{
|
}else{
|
||||||
?>Aucune procédure enregistrée à ce jour par nos services.<?php
|
?>Aucune procédure enregistrée à ce jour par nos services.<?php
|
||||||
}
|
}
|
||||||
@ -706,7 +709,10 @@ if(!empty($indiscore))
|
|||||||
<tr>
|
<tr>
|
||||||
<td width="30"> </td>
|
<td width="30"> </td>
|
||||||
<td width="200" class="StyleInfoLib">IndiScore</td>
|
<td width="200" class="StyleInfoLib">IndiScore</td>
|
||||||
<td width="350" class="StyleInfoData scoreTip" titre="Indiscore" rel="./pages/scorestooltip.php?score=indiscore&val=<?=$etab['Indiscore']?>"><?=$indiscore?> (<?=$etab['TendanceIndiscore']?>)</td>
|
<td width="350" class="StyleInfoData scoreTip" titre="Indiscore"
|
||||||
|
rel="./pages/scorestooltip.php?score=indiscore&val=<?=$indiscore?>">
|
||||||
|
<?=$indiscore?> (<?=$etab['TendanceIndiscore']?>)
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* Afdcc 2 (0 , 5)
|
* Afdcc 2 (0 , 5)
|
||||||
* Afdcc 1 (-10 , +10)
|
* Afdcc 1 (-10 , +10)
|
||||||
* ScoreZ (-3 , 3)
|
* ScoreZ (-3 , 3)
|
||||||
* Indiscore (0 , 100)
|
* Indiscore (0 , 100) ou (0, 20)
|
||||||
*/
|
*/
|
||||||
header('Content-Type: text/html; charset='.CHARSET);
|
header('Content-Type: text/html; charset='.CHARSET);
|
||||||
|
|
||||||
@ -18,12 +18,22 @@ if(empty($score) || empty($value))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( $score == 'indiscore' ){
|
||||||
|
switch($_SESSION['tabInfo']['typeScore'])
|
||||||
|
{
|
||||||
|
case '20': $score.='20'; break;
|
||||||
|
case '100':
|
||||||
|
default: $score.='100'; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$bornes = array(
|
$bornes = array(
|
||||||
'conanh' => array( 'min' => -4.5 , 'max' => 16 ),
|
'conanh' => array( 'min' => -4.5 , 'max' => 16 ),
|
||||||
'afdcc2' => array( 'min' => 0 , 'max' => 5 ),
|
'afdcc2' => array( 'min' => 0 , 'max' => 5 ),
|
||||||
'afdcc1' => array( 'min' => -10 , 'max' => 10 ),
|
'afdcc1' => array( 'min' => -10 , 'max' => 10 ),
|
||||||
'scorez' => array( 'min' => -3 , 'max' => 3 ),
|
'scorez' => array( 'min' => -3 , 'max' => 3 ),
|
||||||
'indiscore' => array( 'min' => 0 , 'max' => 100 ),
|
'indiscore100' => array( 'min' => 0 , 'max' => 100 ),
|
||||||
|
'indiscore20' => array( 'min' => 0 , 'max' => 20 ),
|
||||||
);
|
);
|
||||||
|
|
||||||
$min = $bornes[$score]['min'];
|
$min = $bornes[$score]['min'];
|
||||||
@ -36,7 +46,10 @@ $firephp->log($pct, 'pourcentage');
|
|||||||
<div class="blocdegrade clearfix">
|
<div class="blocdegrade clearfix">
|
||||||
<div><img class="borderimg" src="./img/indiscore/imgscores-<?=$pct?>.png"/></div>
|
<div><img class="borderimg" src="./img/indiscore/imgscores-<?=$pct?>.png"/></div>
|
||||||
<div><img src="./img/reglette.png" /></div>
|
<div><img src="./img/reglette.png" /></div>
|
||||||
<div class="echelle"><span class="echelleleft"><?=$min?></span><span class="echelleright"><?=$max?></span></div>
|
<div class="echelle">
|
||||||
|
<span class="echelleleft"><?=$min?></span>
|
||||||
|
<span class="echelleright"><?=$max?></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user