示例#1
0
 $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();
                 $biens = $terrainManager->getNumberBiens();
                 $biensDiponible = $terrainManager->getNumberBienDisbonible();
                 $biensVendu = $terrainManager->getNumberBienVendu();