<?php 
        echo $message;
        ?>
      
                            </div>
                         <?php 
    }
    unset($_SESSION['charge-action-message']);
    unset($_SESSION['charge-type-message']);
    ?>
                        <table class="table table-striped table-bordered table-advance table-hover">
                            <tbody>
                                <tr>
                                    <th style="width: 50%"><strong>Total des charges</strong></th>
                                    <th style="width: 50%"><a><strong><?php 
    echo number_format($chargeManager->getTotalByIdProjet($idProjet), 2, ',', ' ');
    ?>
&nbsp;DH</strong></a></th>
                                </tr>
                            </tbody>
                        </table>
                        <div class="portlet charges">
                            <div class="portlet-body">
                                <div class="scroller" data-height="500px" data-always-visible="1"><!-- BEGIN DIV SCROLLER -->
                                <table class="table table-striped table-bordered table-advance table-hover">
                                    <thead>
                                        <tr>
                                            <th style="width: 70%">Type</th>
                                            <th style="width: 30%">Total</th>
                                        </tr>
                                    </thead>
Esempio n. 2
0
          +
          $locauxManager->getTotalPrixLocauxByIdProjet($idProjet)
        );
		
		//get contacts ids and get sum of client operations
		$idsContrats = $contratManager->getContratActifIdsByIdProjet($idProjet);
		$sommeOperationsClients = 0;
		$sommePrixVente = 0;
		foreach($idsContrats as $id){
			$sommeOperationsClients += $operationsManager->sommeOperations($id);
			$sommePrixVente += $contratManager->getContratById($id)->prixVente();
		}
		$sommeApportsClients = ($sommeOperationsClients);
		$reliquat = $sommePrixVente - $sommeOperationsClients; 
        $sommeCharges = 
        $chargeCommunManager->getTotal() + $chargeManager->getTotalByIdProjet($idProjet);
        $sommeCharges = ceil($sommeCharges);
		
        //Container 2 : Statistiques
        $sommeLivraisons = 0;
        $idsLivraisons = $livraisonsManager->getLivraisonIdsByIdProjet($idProjet);
        foreach ( $idsLivraisons as $id ) {
            $sommeLivraisons += $livraisonDetailManager->getTotalLivraisonByIdLivraison($id);
        }
        $sommeReglements = ceil($reglementsFournisseurManager->sommeReglementFournisseurByIdProjet($_GET['idProjet']));
        $sommeLivraison = ceil($livraisonsManager->getTotalLivraisonsIdProjet($_GET['idProjet']));
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->