$sommeOperations = $operationManager->sommeOperations($contrat->id());
      $biens = "";
      $niveau = "";
      if($contrat->typeBien()=="appartement"){
          $appartementManager = new AppartementManager($pdo);
          $biens = $appartementManager->getAppartementById($contrat->idBien());
          $niveau = $biens->niveau();
      }
      else if($contrat->typeBien()=="localCommercial"){
          $locauxManager = new LocauxManager($pdo);
          $biens = $locauxManager->getLocauxById($contrat->idBien());
      }*/
    $operations = "";
    //test the locaux object number: if exists get operations else do nothing
    //$operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($contrat->id());
    $operations = $operationManager->getOperations();
    /*if($operationsNumber != 0){
          $operations = $operationManager->getOperationsByIdContrat($contrat->id());  
      }*/
    ?>
<!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]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>ImmoERP - Management Application</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />