correction issue #0000190
This commit is contained in:
parent
ffb00b4643
commit
5a71c1dbdb
@ -59,7 +59,7 @@ $(document).ready(function()
|
||||
<?php
|
||||
$numRC = $etab['NumRC'];
|
||||
$tribunalLib = $etab['TribunalLib'];
|
||||
if (isset($numRC) && $numRC!='')
|
||||
if (isset($numRC) && $numRC!='')
|
||||
{
|
||||
$lib = 'Numéro R.C.';
|
||||
$libTrib = '';
|
||||
@ -224,24 +224,27 @@ if (preg_match('/\bNAF4\b/i', $_SESSION['tabInfo']['pref']) && trim(@$etab['Naf4
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
<?php
|
||||
//Origine du fond
|
||||
if ( ($etab['OrigineCreation']*1>0 && $etab['OrigineCreation']*1<9) ||
|
||||
$etab['OrigineCreation']=='A' || $etab['OrigineCreation']=='B' || $etab['OrigineCreation']=='C' ||
|
||||
$etab['OrigineCreation']=='D' || $etab['OrigineCreation']=='E' )
|
||||
{
|
||||
$tabCreation=array( 'a1'=>'Création',
|
||||
'a3'=>'Achat',
|
||||
'a4'=>'Apport',
|
||||
'a6'=>'Prise en location gérance',
|
||||
'a7'=>'Partage',
|
||||
'a8'=>'Reprise',
|
||||
'aA'=>'Reprise globale de l\'exploitation agricole',
|
||||
'aB'=>'Poursuite de l\'exploitation agricole par le conjoint',
|
||||
'aC'=>'Transfert de propriété de l\'exploitation agricole',
|
||||
'aD'=>'Apport d\'exploitation(s) agricole(s) individuelle(s)',
|
||||
'aE'=>'Reprise d\'exploitation agricole individuelle',
|
||||
);
|
||||
$etab['OrigineCreation']=='A' ||
|
||||
$etab['OrigineCreation']=='B' ||
|
||||
$etab['OrigineCreation']=='C' ||
|
||||
$etab['OrigineCreation']=='D' ||
|
||||
$etab['OrigineCreation']=='E' ){
|
||||
$tabCreation = array(
|
||||
'a1'=>'Création',
|
||||
'a3'=>'Achat',
|
||||
'a4'=>'Apport',
|
||||
'a6'=>'Prise en location gérance',
|
||||
'a7'=>'Partage',
|
||||
'a8'=>'Reprise',
|
||||
'aA'=>'Reprise globale de l\'exploitation agricole',
|
||||
'aB'=>'Poursuite de l\'exploitation agricole par le conjoint',
|
||||
'aC'=>'Transfert de propriété de l\'exploitation agricole',
|
||||
'aD'=>'Apport d\'exploitation(s) agricole(s) individuelle(s)',
|
||||
'aE'=>'Reprise d\'exploitation agricole individuelle',
|
||||
);
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
@ -265,11 +268,11 @@ if(isset($etab['Bilan']['Cloture'])) $title.=' au '.WDate::dateT('Ymd', 'd/m/Y',
|
||||
<?php
|
||||
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'){
|
||||
print strWsToHtml($etab['TrancheCALib']);
|
||||
echo strWsToHtml($etab['TrancheCALib']);
|
||||
}else{
|
||||
print 'N/C';
|
||||
echo 'N/C';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@ -284,7 +287,7 @@ if (isset($etab['Capital']) && $etab['Capital']*1>0)
|
||||
?>
|
||||
<tr>
|
||||
<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,',',' ')?>
|
||||
<?php
|
||||
if ($etab['CapitalDev']=='EUR') echo '€';
|
||||
@ -297,11 +300,11 @@ if (isset($etab['Capital']) && $etab['Capital']*1>0)
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
<?php
|
||||
//Type d'exploitation
|
||||
if ( isset($etab['TypeExploitation']) && $etab['TypeExploitation']!=0 )
|
||||
if ( isset($etab['TypeExploitation']) && $etab['TypeExploitation']!=0 )
|
||||
{
|
||||
$tabTypeExploitation = array(
|
||||
$tabTypeExploitation = array(
|
||||
1 => "Locataire du fond de commerce",
|
||||
2 => "Loueur du fond de commerce",
|
||||
3 => "Prestation de personnel",
|
||||
@ -320,7 +323,7 @@ if ( isset($etab['TypeExploitation']) && $etab['TypeExploitation']!=0 )
|
||||
</table>
|
||||
|
||||
<h2>Dirigeants</h2>
|
||||
<?php
|
||||
<?php
|
||||
$dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
||||
?>
|
||||
<table>
|
||||
@ -344,7 +347,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
||||
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;?>
|
||||
</a>
|
||||
<?php
|
||||
@ -354,7 +357,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
||||
<?php
|
||||
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;?>
|
||||
</a>
|
||||
<?php
|
||||
@ -391,7 +394,7 @@ $dirs = scoresws_dirigeants($siret, $siren, $idEntreprise);
|
||||
|
||||
|
||||
<h2>Actionnaires</h2>
|
||||
<?php
|
||||
<?php
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
|
||||
@ -449,7 +452,7 @@ $liens = scoresws_liens($siret, $siren, $idEntreprise);
|
||||
<td class="StyleInfoData" width="150">
|
||||
<?php
|
||||
echo $font1;
|
||||
if ( $lien['Siren']<>'' && $lien['Siren']<>0)
|
||||
if ( $lien['Siren']<>'' && $lien['Siren']<>0)
|
||||
{
|
||||
echo 'Siren <a href="./?page=identite&siret='. $lien['Siren'] .'">'. $lien['Siren'].'</a>';
|
||||
}
|
||||
@ -545,7 +548,7 @@ $liens = scoresws_liens($siret, $siren, $idEntreprise);
|
||||
|
||||
|
||||
<h2>Eléments Financiers</h2>
|
||||
<?php
|
||||
<?php
|
||||
require_once 'ratios/ratios.php';
|
||||
$result = scoresws_ratios($siret, $siren, $idEntreprise);
|
||||
$bilansInfos = $result['bilansInfos'];
|
||||
@ -590,12 +593,12 @@ if ($numBilanN==0 && $numBilanC==0)
|
||||
<?=synthese_tablerowmin($ratiosInfos, $dataEvol)?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<h2>Paiements</h2>
|
||||
<?php
|
||||
<?php
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
|
||||
$etab = scoresws_indiscore($siret, $siren, $idEntreprise);
|
||||
@ -631,7 +634,7 @@ if ($etab['SituationJuridique']=='P')
|
||||
<a href="./?page=annonces&siret=<?=$etab['Siret']?>&idEntreprise=<?=$idEntreprise?>">
|
||||
<font color="red"><b>En procédure collective</b></font>
|
||||
</a>
|
||||
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php print $dateRadiation; } ?>
|
||||
<?php if($dateRadiation!=''){ ?><br/>Radié du RCS le <?php echo $dateRadiation; } ?>
|
||||
<?php
|
||||
}/*else{
|
||||
if($dateRadiation!=''){ ?>Radié du RCS le <?php print $dateRadiation; }
|
||||
@ -639,11 +642,11 @@ if ($etab['SituationJuridique']=='P')
|
||||
//Radiation
|
||||
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'){
|
||||
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php print $dateRadiation; }
|
||||
?> Radiation publiée <?php if($dateRadiation!=''){ ?> le <?php echo $dateRadiation; }
|
||||
}else{
|
||||
?>Aucune procédure enregistrée à ce jour par nos services.<?php
|
||||
?>Aucune procédure enregistrée à ce jour par nos services.<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
@ -655,7 +658,7 @@ elseif($etab['SituationJuridique']=='RR')
|
||||
|
||||
<h2>Scores et encours</h2>
|
||||
<table>
|
||||
<?php
|
||||
<?php
|
||||
if(!empty($etab['scores']['ConanH']))
|
||||
{
|
||||
?>
|
||||
@ -664,7 +667,7 @@ if(!empty($etab['scores']['ConanH']))
|
||||
<td width="200" class="StyleInfoLib">Score Conan Holder</td>
|
||||
<td width="350" class="StyleInfoData scoreTip" titre="Score Conan Holder" rel="./pages/scorestooltip.php?score=conanh&val=<?=$etab['scores']['ConanH']?>"><?=$etab['scores']['ConanH']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
if(!empty($etab['scores']['Afdcc2']))
|
||||
{
|
||||
@ -674,7 +677,7 @@ if(!empty($etab['scores']['Afdcc2']))
|
||||
<td width="200" class="StyleInfoLib">Score Afdcc 2</td>
|
||||
<td width="350" class="StyleInfoData scoreTip" titre="Score Afdcc2" rel="./pages/scorestooltip.php?score=afdcc2&val=<?=$etab['scores']['Afdcc2']?>"><?=$etab['scores']['Afdcc2']?></td>
|
||||
</tr>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
if(!empty($etab['scores']['Z']))
|
||||
{
|
||||
@ -706,9 +709,12 @@ if(!empty($indiscore))
|
||||
<tr>
|
||||
<td width="30"> </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>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
@ -716,16 +722,16 @@ if(!empty($indiscore))
|
||||
<td width="200" class="StyleInfoLib">Encours conseillé</td>
|
||||
<td width="350" class="StyleInfoData">
|
||||
<?php
|
||||
if($etab['infoEncours']!='' && !is_numeric($etab['encours']) && $etab['encours']=='N/A'){
|
||||
if($etab['infoEncours']!='' && !is_numeric($etab['encours']) && $etab['encours']=='N/A'){
|
||||
?><?=$etab['infoEncours']?>
|
||||
<?php
|
||||
}else{
|
||||
if ($etab['Indiscore']!=0)
|
||||
{
|
||||
}else{
|
||||
if ($etab['Indiscore']!=0)
|
||||
{
|
||||
?>
|
||||
<?=round($etab['encours']/1000)?> K€
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php print $etab['infoEncours'];?>
|
||||
<?php
|
||||
|
@ -5,25 +5,35 @@
|
||||
* Afdcc 2 (0 , 5)
|
||||
* Afdcc 1 (-10 , +10)
|
||||
* ScoreZ (-3 , 3)
|
||||
* Indiscore (0 , 100)
|
||||
* Indiscore (0 , 100) ou (0, 20)
|
||||
*/
|
||||
header('Content-Type: text/html; charset='.CHARSET);
|
||||
|
||||
isset($_REQUEST['score'])? $score=$_REQUEST['score'] : $score = '';
|
||||
isset($_REQUEST['val'])? $value=$_REQUEST['val'] : $value='';
|
||||
isset($_REQUEST['score'])? $score=$_REQUEST['score'] : $score = '';
|
||||
isset($_REQUEST['val'])? $value=$_REQUEST['val'] : $value='';
|
||||
|
||||
if(empty($score) || empty($value))
|
||||
{
|
||||
echo 'Paramètres incorrectes.';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if( $score == 'indiscore' ){
|
||||
switch($_SESSION['tabInfo']['typeScore'])
|
||||
{
|
||||
case '20': $score.='20'; break;
|
||||
case '100':
|
||||
default: $score.='100'; break;
|
||||
}
|
||||
}
|
||||
|
||||
$bornes = array(
|
||||
'conanh' => array( 'min' => -4.5 , 'max' => 16 ),
|
||||
'afdcc2' => array( 'min' => 0 , 'max' => 5 ),
|
||||
'afdcc1' => array( 'min' => -10 , 'max' => 10 ),
|
||||
'scorez' => array( 'min' => -3 , 'max' => 3 ),
|
||||
'indiscore' => array( 'min' => 0 , 'max' => 100 ),
|
||||
'conanh' => array( 'min' => -4.5 , 'max' => 16 ),
|
||||
'afdcc2' => array( 'min' => 0 , 'max' => 5 ),
|
||||
'afdcc1' => array( 'min' => -10 , 'max' => 10 ),
|
||||
'scorez' => array( 'min' => -3 , 'max' => 3 ),
|
||||
'indiscore100' => array( 'min' => 0 , 'max' => 100 ),
|
||||
'indiscore20' => array( 'min' => 0 , 'max' => 20 ),
|
||||
);
|
||||
|
||||
$min = $bornes[$score]['min'];
|
||||
@ -36,7 +46,10 @@ $firephp->log($pct, 'pourcentage');
|
||||
<div class="blocdegrade clearfix">
|
||||
<div><img class="borderimg" src="./img/indiscore/imgscores-<?=$pct?>.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>
|
||||
<?php
|
||||
</div>
|
||||
<?php
|
||||
exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user