include"connection.php3"; mysql_select_db($login,$connection); include"calcul_resultat.php3"; print'
|
|
|
| ';
if($total_achat!=0){
print'60 Achats : '.$total_achat.' € '; $table=mysql_query("select * from achat",$connection); $cpt_compte=mysql_num_rows($table); $fichiertxt_achat=fopen("60.txt","r"); while(!feof($fichiertxt_achat)){ $lecture=fgetc($fichiertxt_achat); if($lecture!="/"){ $achat=$achat.$lecture; } else{ $cpt=0; $total_compte=0; while($cpt<$cpt_compte){ if(mysql_result($table,$cpt,Compte)==$achat){ $total_compte+=mysql_result($table,$cpt,Montant); } $cpt++; } if($total_compte!=0){ print $achat." : ".$total_compte." € "; } $fin=fgetc($fichiertxt_achat); $achat=""; } } $fermeture_fichier=fclose($fichiertxt_achat); print' '; } if($total_service!=0){ print'61/62 Charges externes : '.$total_service.' € '; } $table=mysql_query("select * from service",$connection); $cpt_compte=mysql_num_rows($table); if($cpt_compte!=0){ $fichiertxt_service=fopen("61_62.txt","r"); while(!feof($fichiertxt_service)){ $lecture=fgetc($fichiertxt_service); if($lecture!="/"){ $service=$service.$lecture; } else{ $cpt=0; $total_compte=0; while($cpt<$cpt_compte){ if(mysql_result($table,$cpt,Compte)==$service){ $total_compte+=mysql_result($table,$cpt,Montant); } $cpt++; } if($total_compte!=0){ print $service." : ".$total_compte." € "; } $fin=fgetc($fichiertxt_service); $service=""; } } $fermeture_fichier=fclose($fichiertxt_service); print' '; } if($total_dotation!=0){ print'68 Dotations : '.$total_dotation.' € '; } $table=mysql_query("select * from dotation",$connection); $cpt_compte=mysql_num_rows($table); if($cpt_compte!=0){ $fichiertxt_dotation=fopen("68.txt","r"); while(!feof($fichiertxt_dotation)){ $lecture=fgetc($fichiertxt_dotation); if($lecture!="/"){ $dotation=$dotation.$lecture; } else{ $cpt=0; $total_compte=0; while($cpt<$cpt_compte){ if(mysql_result($table,$cpt,Compte)==$dotation){ $total_compte+=mysql_result($table,$cpt,Montant); } $cpt++; } if($total_compte!=0){ print $dotation." : ".$total_compte." € "; } $fin=fgetc($fichiertxt_dotation); $dotation=""; } } $fermeture_fichier=fclose($fichiertxt_dotation); } mysql_close($connection); print' |
';
if($total_cotisation!=0){
print'706 Prestations de service : '.$total_cotisation.' € '; print'Cotisations : '.$total_cotisation.' €'; } print' |
|
|
|