include '../controller/' . $myClass . '.php'; } } spl_autoload_register("classLoad"); include '../config.php'; //classes loading end session_start(); if (isset($_SESSION['userMerlaTrav'])) { //classes managers $idProjet = 0; $projetManager = new ProjetManager($pdo); $contratEmployeManager = new ContratEmployeManager($pdo); $contratDetaislManager = new ContratDetailsManager($pdo); $employesManager = new EmployeManager($pdo); $contratDetails = ""; if (isset($_GET['idContratDetail']) and $_GET['idContratDetail'] > 0 and $_GET['idContratDetail'] <= $contratDetaislManager->getLastId()) { $idProjet = $_GET['idProjet']; $idContratDetail = $_GET['idContratDetail']; $projet = $projetManager->getProjetById($idProjet); //$contratEmploye = $contratEmployeManager->getContratEmployeById($idContratEmploye); //$contratDetails = $contratDetaislManager->getContratDetailsByIdContratEmploye($idContratEmploye); $contratDetails = $contratDetaislManager->getContratDetailsById($idContratDetail); $contrat = $contratEmployeManager->getContratEmployeById($contratDetails->idContratEmploye()); $employe = $employesManager->getEmployeById($contrat->employe()); //$totalPaye = $contratDetaislManager->getContratDetailsTotalByIdContratEmploye($idContratEmploye); } ob_start(); ?> <style type="text/css"> p, h1, h3{ text-align: center;