if ( isset($_SESSION['userMerlaTrav']) ){ //les sources $projetManager = new ProjetManager($pdo); $locauxManager = new LocauxManager($pdo); $appartement = ""; $idLocaux = 0; $idProjet = $_GET['idProjet']; $projet = $projetManager->getProjetById($idProjet); if( isset($_GET['idLocaux']) and ( $_GET['idLocaux']>0 and $_GET['idLocaux']<=$locauxManager->getLastId() ) ){ $idLocaux = htmlentities($_GET['idLocaux']); $locaux = $locauxManager->getLocauxById($idLocaux); $piecesManager = new PiecesLocauxManager($pdo); $piecesNumber = $piecesManager->getPiecesLocauxNumberByIdLocaux($idLocaux); if($piecesNumber != 0){ $piecesLocaux = $piecesManager->getPiecesLocauxByIdLocaux($idLocaux); } } ?> <!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" />
$clientManager = new ClientManager($pdo); $locauxManager = new LocauxManager($pdo); $contratManager = new ContratManager($pdo); $projetManager = new ProjetManager($pdo); $idAppartement = 0; if (isset($_GET['idLocaux']) and $_GET['idLocaux'] > 0 and $_GET['idLocaux'] <= $locauxManager->getLastId()) { $idLocaux = $_GET['idLocaux']; $local = $locauxManager->getLocauxById($idLocaux); $contrat = $contratManager->getContratByIdBien($local->id()); $client = $clientManager->getClientById($contrat->idClient()); $projet = $projetManager->getProjetById($contrat->idProjet()); $piecesLocauxManager = new PiecesLocauxManager($pdo); $piecesNumber = $piecesLocauxManager->getPiecesLocauxNumberByIdLocaux($local->id()); $pieces = ""; if ($piecesNumber > 0) { $pieces = $piecesLocauxManager->getPiecesLocauxByIdLocaux($local->id()); } } //property data ob_start(); ?> <style type="text/css"> table{ width:100%; border: solid 1px black; } </style> <page backtop="15mm" backbottom="20mm" backleft="10mm" backright="10mm"> <!--img src="../assets/img/logo_company.png" style="width: 110px" /--> <br><br><br><br> <h2 style="font-size:20px; text-align: center; text-decoration: underline">Fiche descriptif</h2>