Esempio n. 1
0
 $biensPromesseVente = 0;
 $biens = 0;
 //begin process
 $type = $_GET['type'];
 if ($type == "appartements") {
     $appartementManager = new AppartementManager($pdo);
     $appartements = $appartementManager->getAppartementsNonVendu();
     $biens = $appartementManager->getNumberBiens();
     $biensDiponible = $appartementManager->getNumberBienDisbonible();
     $biensVendu = $appartementManager->getNumberBienVendu();
     $biensPromesseVente = $appartementManager->getNumberBienPromesseVente();
 } else {
     if ($type == "locaux") {
         $locauxManager = new LocauxManager($pdo);
         $locaux = $locauxManager->getLocauxNonVendu();
         $biens = $locauxManager->getNumberBiens();
         $biensDiponible = $locauxManager->getNumberBienDisbonible();
         $biensVendu = $locauxManager->getNumberBienVendu();
         $biensPromesseVente = $locauxManager->getNumberBienPromesseVente();
     } else {
         if ($type == "maisons") {
             $maisonManager = new MaisonManager($pdo);
             $maisons = $maisonManager->getMaisonsNonVendu();
             $biens = $maisonManager->getNumberBiens();
             $biensDiponible = $maisonManager->getNumberBienDisbonible();
             $biensVendu = $maisonManager->getNumberBienVendu();
             $biensPromesseVente = $maisonManager->getNumberBienPromesseVente();
         } else {
             if ($type == "terrains") {
                 $terrainManager = new TerrainManager($pdo);
                 $terrains = $terrainManager->getTerrainsNonVendu();