//destroy contrat-form-data session if ( isset($_SESSION['contrat-form-data']) ) { unset($_SESSION['contrat-form-data']); } $projetManager = new ProjetManager($pdo); $clientManager = new ClientManager($pdo); $contratManager = new ContratManager($pdo); $operationManager = new OperationManager($pdo); $compteBancaireManager = new CompteBancaireManager($pdo); $mois = $_GET['mois']; $annee = $_GET['annee']; $operations = ""; //test the locaux object number: if exists get operations else do nothing //$operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($contrat->id()); $operations = $operationManager->getOperationsByMonthYear($mois, $annee); /*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" />