$appartementManager = new AppartementManager($pdo);
     $biens = $appartementManager->getAppartementById($contrat->idBien());
     $typeBien = "Appartement";
     $niveau = $biens->niveau();
 } else {
     if ($contrat->typeBien() == "localCommercial") {
         $locauxManager = new LocauxManager($pdo);
         $biens = $locauxManager->getLocauxById($contrat->idBien());
         $typeBien = "Local Commercial";
     }
 }
 $operations = "";
 //test the locaux object number: if exists get operations else do nothing
 $operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($contrat->id());
 if ($operationsNumber != 0) {
     $operations = $operationManager->getOperationsByIdContrat($contrat->id());
 }
 //ContratCasLibre Elements
 $contratCasLibreNumber = $contratCasLibreManager->getContratCasLibreNumberByCodeContrat($codeContrat);
 $contratCasLibreElements = "";
 $contratCasLibreTitle = "";
 if ($contratCasLibreNumber > 0) {
     $contratCasLibreTitle = "Informations Supplémentaires";
     $contratCasLibreElements = $contratCasLibreManager->getContratCasLibresByCodeContrat($codeContrat);
 }
 //ReglementPrevu Elements
 $reglementPrevuNumber = $reglementPrevuManager->getReglementNumberByCodeContrat($codeContrat);
 $reglementPrevuElements = "";
 $reglementPrevuTitle = "";
 if ($reglementPrevuNumber > 0) {
     $reglementPrevuTitle = "Dates des réglements prévus";
Exemplo n.º 2
0
if (isset($_SESSION['userMerlaTrav'])) {
    //les sources
    $idProjet = 0;
    $projetManager = new ProjetManager($pdo);
    $contratManager = new ContratManager($pdo);
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId() and (isset($_GET['idContrat']) and ($_GET['idContrat'] > 0 and $_GET['idContrat'] <= $contratManager->getLastId()))) {
        $idProjet = $_GET['idProjet'];
        $idContrat = $_GET['idContrat'];
        $projet = $projetManager->getProjetById($idProjet);
        $contrat = $contratManager->getContratById($idContrat);
        $operationManager = new OperationManager($pdo);
        $operations = "";
        //test the locaux object number: if exists get operations else do nothing
        $operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($idContrat);
        if ($operationsNumber != 0) {
            $operations = $operationManager->getOperationsByIdContrat($idContrat);
        }
    }
    ?>
<!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" />
	<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />