2009-03-25 09:37:17 +00:00
< ? php
2009-03-25 18:32:45 +00:00
if ( ! $_SESSION [ 'connected' ]) die ();
2009-04-01 12:45:45 +00:00
$tabInfo = $_SESSION [ 'tabInfo' ];
2009-03-25 18:32:45 +00:00
$siret = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'siret' ]));
2009-03-30 16:27:40 +00:00
if ( strlen ( $siret ) <> 0 && strlen ( $siret ) <> 9 && strlen ( $siret ) <> 14 ) die ( 'Param<61> tres incorrects !' );
2009-03-25 18:32:45 +00:00
$idEntreprise = trim ( preg_replace ( '/[^0-9]/' , '' , $_REQUEST [ 'idEntreprise' ])) * 1 ; // Si id=0 alors non communiqu<71>
2009-03-30 16:27:40 +00:00
if (( $siret * 1 ) == 0 && $idEntreprise == 0 ) die ( 'Param<61> tres incorrects !' );
2009-03-25 18:32:45 +00:00
$siren = substr ( $siret , 0 , 9 );
2009-03-30 16:27:40 +00:00
$ratiosEntrep = array ();
$ratiosInfos = array ();
$bilansInfos = array ();
$rationsEntrepEvol = array ();
2009-03-25 18:32:45 +00:00
try {
2009-04-21 07:46:21 +00:00
$O = $client -> getRatios ( $siren , 'synthese' );
2009-03-30 16:27:40 +00:00
//$firephp->log((array)$O,'getRatios');
2009-03-31 11:17:07 +00:00
print '<!--' ;
print_r ( $O [ 'result' ]);
print '-->' ;
2009-03-30 16:27:40 +00:00
$bilansInfos = $O [ 'result' ][ 'BilansInfos' ];
$ratiosInfos = $O [ 'result' ][ 'RatiosInfos' ];
$ratiosEntrep = $O [ 'result' ][ 'RatiosEntrep' ];
$ratiosEntrepEvol = $O [ 'result' ][ 'RatiosEntrepEvol' ];
2009-03-25 18:32:45 +00:00
} catch ( SoapFault $fault ) {
include_once ( realpath ( dirname ( __FILE__ ) . '/../../' ) . '/includes/soaperror.php' );
processSoapFault ( $client , $fault , $tabInfo );
die ();
}
2009-03-30 16:27:40 +00:00
function dRatio ( $nAnnee , $nRatio ){
global $ratiosEntrep ;
global $ratiosInfos ;
$ratio = $ratiosEntrep [ $nAnnee ][ $nRatio ];
if ( $ratio == 'NS' ) {
print 'NS' ;
2009-03-31 19:22:24 +00:00
} elseif ( $ratio == NULL ){
print '-' ;
2009-03-30 16:27:40 +00:00
} else {
if ( ( $ratiosInfos [ $nRatio ][ 'unite' ] == 'EUR' ) && (( abs ( $ratio ) / 1000 ) > 0 ) ){
print number_format ( $ratio / 1000 , 0 , '' , ' ' ) . ' K€' ;
2009-04-03 09:31:10 +00:00
} elseif (( $ratiosInfos [ $nRatio ][ 'unite' ] == 'EUR' ) && (( abs ( $ratio ) / 1000 ) < 0 )) {
2009-03-30 16:27:40 +00:00
print number_format ( $ratio , 0 , '' , ' ' ) . ' €' ;
} else {
print $ratio . ' ' . $ratiosInfos [ $nRatio ][ 'unite' ];
}
}
}
function dEvol ( $nAnnee , $nRatio ){
global $ratiosEntrepEvol ;
$ratio = $ratiosEntrepEvol [ $nAnnee ][ $nRatio ];
2009-04-01 15:42:12 +00:00
if ( $ratio == 'NS' ) {
print 'NS' ;
} elseif ( $ratio == NULL ){
print '-' ;
} else {
print $ratio . ' %' ;
}
2009-03-30 16:27:40 +00:00
}
2009-04-01 07:32:24 +00:00
$nbrAnnees = count ( $bilansInfos ) - 1 ;
2009-03-30 16:27:40 +00:00
$i = 0 ;
foreach ( $bilansInfos as $dateCloture ){
//Donn<6E> es pour le graphique
2009-03-31 14:16:03 +00:00
if ( isset ( $dateCloture [ 'dateCloture' ])){
$dataGraph [ $i ][ 'date' ] = $dateCloture [ 'dateCloture' ];
2009-04-01 07:32:24 +00:00
$dataGraph [ $i ][ 'r236' ] = $ratiosEntrep [ $i ][ 'r236' ] / 1000 ;
$dataGraph [ $i ][ 'r235' ] = $ratiosEntrep [ $i ][ 'r235' ] / 1000 ;
$dataGraph [ $i ][ 'r6' ] = $ratiosEntrep [ $i ][ 'r6' ] / 1000 ;
$dataGraph [ $i ][ 'r146' ] = $ratiosEntrep [ $i ][ 'r146' ] / 1000 ;
2009-03-31 14:16:03 +00:00
}
2009-04-01 07:32:24 +00:00
if ( isset ( $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ])){
//Donn<6E> es pour les graphiques <20> volutions
2009-03-31 15:19:54 +00:00
$evol_r5 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r6' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r6' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r7 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r8' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r8' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r10 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r11' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r11' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
2009-03-31 15:19:54 +00:00
$evol_r18 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r19' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r19' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r22 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r23' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r23' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r231 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r235' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r235' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r232 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r236' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r236' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
2009-03-31 15:19:54 +00:00
$evol_r63 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-04-01 07:32:24 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r64' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r64' ] / 1000 : 0 )
2009-03-30 16:27:40 +00:00
);
$evol_r24 [] = array ( 'date' => $bilansInfos [ $nbrAnnees - $i ][ 'dateCloture' ],
2009-03-31 14:16:03 +00:00
'value' => (( $ratiosEntrep [ $nbrAnnees - $i ][ 'r24' ] != 'NS' ) ? $ratiosEntrep [ $nbrAnnees - $i ][ 'r24' ] : 0 )
2009-03-30 16:27:40 +00:00
);
2009-04-01 07:32:24 +00:00
2009-03-30 16:27:40 +00:00
}
2009-04-01 07:32:24 +00:00
2009-03-30 16:27:40 +00:00
$i ++ ;
}
2009-04-01 07:32:24 +00:00
//Cr<43> ation du fichier image
//<img src="./graphs/synthese_graph_linecompare.php?d=<?=urlencode(serialize($dataGraph));>" />
//G<> n<EFBFBD> rer un nom de fichier pour le cache et l'export des fichiers
if (( $siret * 1 ) == 0 || ( $siren * 1 ) < 100 ){
$fileName = $page2 . '-' . $idEntreprise ;
} else {
$fileName = $page2 . '-' . $siret ;
}
$fileName .= '-graph-linecompare.tmp' ;
$path = '../cache/' ;
file_put_contents ( $path . $fileName , serialize ( $dataGraph ));
2009-03-25 09:37:17 +00:00
?>
2009-03-31 11:17:07 +00:00
< script type = " text/javascript " src = " ./js/jquery.simpletip.js " ></ script >
2009-03-25 09:37:17 +00:00
< script type = " text/javascript " src = " ./js/jtip.js " ></ script >
2009-03-31 11:17:07 +00:00
< script type = " text/javascript " >
$ ( document ) . ready ( function (){
2009-03-31 15:19:54 +00:00
$ ( " #r5 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r5 > .tooltip " ) . text ()});
2009-03-31 11:17:07 +00:00
$ ( " #r7 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r7 > .tooltip " ) . text ()});
$ ( " #r10 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r10 > .tooltip " ) . text ()});
2009-03-31 15:19:54 +00:00
$ ( " #r18 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r18 > .tooltip " ) . text ()});
2009-03-31 11:17:07 +00:00
$ ( " #r22 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r22 > .tooltip " ) . text ()});
$ ( " #r231 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r231 > .tooltip " ) . text ()});
$ ( " #r232 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r232 > .tooltip " ) . text ()});
2009-03-31 15:19:54 +00:00
$ ( " #r63 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r63 > .tooltip " ) . text ()});
2009-03-31 11:17:07 +00:00
$ ( " #r24 " ) . simpletip ({ fixed : true , position : 'bottom' , content : $ ( this ) . find ( " #r24 > .tooltip " ) . text ()});
});
</ script >
2009-03-25 09:37:17 +00:00
< link rel = " stylesheet " type = " text/css " href = " ./css/jtip.css " />
< style >
#container
{
width : 580 px ;
background - color : #FFFFFF;
}
#synthese
{
2009-04-01 07:32:24 +00:00
clear : both ;
2009-03-25 09:37:17 +00:00
font - family : " Lucida Sans Unicode " , " Lucida Grande " , Sans - Serif ;
font - size : 12 px ;
2009-04-02 13:41:12 +00:00
margin : 10 px 0 0 0 ;
2009-03-25 09:37:17 +00:00
width : 580 px ;
text - align : left ;
border - collapse : collapse ;
}
#synthese thead th.rounded-company
{
background : #b9c9fe url('./img/synthese/left.png') left -1px no-repeat;
}
#synthese thead th.rounded-q5
{
background : #b9c9fe url('./img/synthese/right.png') right -1px no-repeat;
}
#synthese th
{
2009-03-25 18:32:45 +00:00
padding : 4 px ;
2009-03-25 09:37:17 +00:00
font - weight : normal ;
font - size : 13 px ;
color : #039;
background : #b9c9fe;
2009-03-25 18:32:45 +00:00
border : 1 px solid #fff;
2009-03-25 09:37:17 +00:00
}
2009-03-30 16:27:40 +00:00
#synthese th.date {
font - size : 11 px ;
}
2009-03-25 09:37:17 +00:00
#synthese td
{
2009-03-25 18:32:45 +00:00
padding : 4 px ;
2009-03-25 09:37:17 +00:00
background : #e8edff;
border : 1 px solid #fff;
color : #669;
}
2009-03-30 16:27:40 +00:00
#synthese td.right {
text - align : right ;
}
2009-03-25 09:37:17 +00:00
#synthese tfoot td.rounded-foot-left
{
background : #e8edff url('./img/synthese/botleft.png') left bottom no-repeat;
}
#synthese tfoot td.rounded-foot-right
{
background : #e8edff url('./img/synthese/botright.png') right bottom no-repeat;
}
#synthese tbody tr:hover td
{
background : #d0dafd;
}
#entete {
margin : 1 px ;
}
2009-03-31 12:39:18 +00:00
#synthese .head {
font - weight : bold ;
}
2009-04-01 15:42:12 +00:00
#graphInfo {
font - family : Arial , Helvetica , sans - serif ;
font - size : 11 px ;
font - weight : bold ;
margin - left : 10 px ;
}
2009-03-25 09:37:17 +00:00
/* ----- add selectors here for font sizing ----- */
#JT_close_left, #JT_close_right{font-size: 12px;}
#JT_copy p, #JT_copy ul{font-size: 12px;}
p , label { font - size : 12 px ;}
2009-03-30 16:27:40 +00:00
ul { list - style : none ;}
2009-03-25 09:37:17 +00:00
2009-03-30 16:27:40 +00:00
ul li { padding - top : 3 px ;}
2009-03-25 09:37:17 +00:00
2009-03-31 11:17:07 +00:00
. tooltip {
display : none ;
position : absolute ;
padding : 10 px 10 px ;
width : 300 px ;
z - index : 3 ;
color : #303030;
background - color : #f5f5b5;
border : 1 px solid #DECA7E;
font - family : sans - serif ;
font - weight : normal ;
font - size : 12 px ;
line - height : 16 px ;
}
. info {
margin - left : 10 px ;
cursor : help ;
font - weight : bold ;
}
2009-03-25 09:37:17 +00:00
</ style >
< div id = " container " >
2009-03-26 11:44:14 +00:00
< div >< img id = " entete " src = " ./img/rub_synthese.png " width = " 577 " height = " 36 " ></ div >
2009-03-25 09:37:17 +00:00
2009-03-31 19:22:24 +00:00
< table width = " 580 " border = " 0 " align = " left " bgcolor = " #FFFFFF " >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Num & eacute ; ro identifiant Siren </ td >
< td width = " 350 " class = " StyleInfoData " >< ? = substr ( $siren , 0 , 3 ) . ' ' . substr ( $siren , 3 , 3 ) . ' ' . substr ( $siren , 6 , 3 ) ?> </td>
</ tr >
< tr >
< td width = " 30 " >& nbsp ; </ td >
< td width = " 200 " class = " StyleInfoLib " > Raison Sociale </ td >
< td width = " 350 " class = " StyleInfoData " >< ? = $tabInfo [ 'entrep' ][ 'raisonSociale' ]; ?> </td>
</ tr >
</ table >
< ? php
if ( count ( $ratiosEntrep ) == 0 || ! isset ( $ratiosEntrep )){
?>
2009-04-01 15:42:12 +00:00
< table >
< tr >< td width = " 30 " >& nbsp ; </ td >< td >< b > Aucun bilan disponible pour cette entreprise !</ b ></ td ></ tr >
2009-03-31 19:22:24 +00:00
</ table >
< ? php
} else {
?>
2009-03-25 09:37:17 +00:00
< table id = " synthese " >
< thead >
< tr >
2009-03-30 16:27:40 +00:00
< th >& nbsp ; </ th >
2009-04-01 17:07:18 +00:00
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ 2 ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ 2 ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ 2 ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ 2 ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[2]['duree']; ?> mois
< ? php } else { print '-' ; } ?>
</ th >
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ 1 ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ 1 ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ 1 ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ 1 ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[1]['duree']; ?> mois
< ? php } else { print '-' ; } ?>
</ th >
2009-03-30 16:27:40 +00:00
< th class = " date " > Evolution </ th >
2009-04-01 17:07:18 +00:00
< th class = " date " >
< ? php
if ( isset ( $bilansInfos [ 0 ][ 'dateCloture' ])) {
print substr ( $bilansInfos [ 0 ][ 'dateCloture' ], 6 , 2 ) . '/' . substr ( $bilansInfos [ 0 ][ 'dateCloture' ], 4 , 2 ) . '/' . substr ( $bilansInfos [ 0 ][ 'dateCloture' ], 0 , 4 ); ?> <br/><?php print $bilansInfos[0]['duree']; ?> mois
< ? php } else { print '-' ; } ?>
</ th >
2009-03-30 16:27:40 +00:00
< th class = " date " > Evolution </ th >
< th >& nbsp ; </ th >
2009-03-25 09:37:17 +00:00
</ tr >
</ thead >
< tbody >
< tr >
2009-03-31 15:19:54 +00:00
< td class = " head " >< a id = " r5 " > CHIFFRE D 'AFFAIRES<div class="tooltip"><?=$ratiosInfos[' r5 '][' commentaires ' ] ?> </div></a></td>
< td class = " right " >< ? php dRatio ( 2 , 'r5' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r5' ); ?> </td>
< td class = " right " >< ? php dEvol ( 1 , 'r6' ); ?> </td>
< td class = " right " >< ? php dRatio ( 0 , 'r5' ); ?> </td>
< td class = " right " >< ? php dEvol ( 0 , 'r6' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr1 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r5 ))?> " name = " CHIFFRE D'AFFAIRES : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r7 " > RESULTAT COURANT AVANT IMPOTS < div class = " tooltip " >< ? = $ratiosInfos [ 'r7' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r7' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r7' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r8' ); ?> </td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r7' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r8' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr7 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r7 ))?> " name = " RESULTAT COURANT AVANT IMPOTS : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r10 " > RESULTAT NET < div class = " tooltip " >< ? = $ratiosInfos [ 'r10' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r10' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r10' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r11' ); ?> </td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r10' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r11' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr10 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r10 ))?> " name = " RESULTAT NET : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 15:19:54 +00:00
< td class = " head " >< a id = " r18 " > FONDS PROPRES < div class = " tooltip " >< ? = $ratiosInfos [ 'r18' ][ 'commentaires' ] ?> </div></a></td>
< td class = " right " >< ? php dRatio ( 2 , 'r18' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r18' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r19' ); ?> </td>
2009-03-31 15:19:54 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r18' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r19' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td class = " right " >< a class = " jTip " id = " gr82 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r18 ))?> " name = " FONDS PROPRES : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r22 " > TOTAL BILAN < div class = " tooltip " >< ? = $ratiosInfos [ 'r22' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r22' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r22' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r23' ); ?> </td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r22' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r23' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr22 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r22 ))?> " name = " TOTAL BILAN : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r231 " > FONDS DE ROULEMENT < div class = " tooltip " >< ? = $ratiosInfos [ 'r231' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r231' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r231' ); ?> </td>
2009-03-31 15:19:54 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r235' ); ?> </td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r231' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r235' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr231 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r231 ))?> " name = " FONDS DE ROULEMENT : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r232 " > BESOIN EN FONDS DE ROULEMENT < div class = " tooltip " >< ? = $ratiosInfos [ 'r232' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r232' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r232' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r236' ); ?> </td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r232' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r236' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr232 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r232 ))?> " name = " BESOIN EN FONDS DE ROULEMENT : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 15:19:54 +00:00
< td class = " head " >< a id = " r63 " > TRESORERIE < div class = " tooltip " >< ? = $ratiosInfos [ 'r63' ][ 'commentaires' ] ?> </div></a></td>
< td class = " right " >< ? php dRatio ( 2 , 'r63' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r63' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 1 , 'r64' ); ?> </td>
2009-03-31 15:19:54 +00:00
< td class = " right " >< ? php dRatio ( 0 , 'r63' ); ?> </td>
2009-03-31 14:16:03 +00:00
< td class = " right " >< ? php dEvol ( 0 , 'r64' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr63 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r63 ))?> " name = " TRESORERIE : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
< tr >
2009-03-31 12:39:18 +00:00
< td class = " head " >< a id = " r24 " > EFFECTIF < div class = " tooltip " >< ? = $ratiosInfos [ 'r24' ][ 'commentaires' ] ?> </div></a></td>
2009-03-30 16:27:40 +00:00
< td class = " right " >< ? php dRatio ( 2 , 'r24' ); ?> </td>
< td class = " right " >< ? php dRatio ( 1 , 'r24' ); ?> </td>
< td class = " right " >< ? php dEvol ( 1 , 'r24' ); ?> </td>
< td class = " right " >< ? php dRatio ( 0 , 'r24' ); ?> </td>
< td class = " right " >< ? php dEvol ( 0 , 'r24' ); ?> </td>
2009-04-02 13:41:12 +00:00
< td >< a class = " jTip " id = " gr24 " href = " ./pages/synthese_dgraph.php?width=375&data=<?=urlencode(serialize( $evol_r24 ))?>&unite=<?= $ratiosInfos['r24'] ['unite']?> " name = " EFFECTIF : " >< img src = " ./img/synthese/chart_bar.png " alt = " Visionner le graphique " ></ a ></ td >
2009-03-25 09:37:17 +00:00
</ tr >
</ tbody >
2009-03-30 16:27:40 +00:00
</ table >
2009-03-31 15:19:54 +00:00
< br />< br />
2009-03-31 19:22:24 +00:00
< ? php
2009-04-01 15:42:12 +00:00
if ( count ( $dataGraph ) <= 1 ){
print " <div id= \" graphInfo \" >Les informations sont insuffisantes pour g<> n<EFBFBD> rer le graphique de synth<74> se</div> " ;
} else {
?>
< img src = " ./graphs/synthese_graph_linecompare.php?d=<?= $fileName ?> " />
< ? php
}
?>
< br />< br />
< ? php
2009-03-31 19:22:24 +00:00
}
?>
2009-03-25 09:37:17 +00:00
</ div >