Beispiel #1
0
    $contratManager = new ContratManager($pdo);
    $compteBancaireManager = new CompteBancaireManager($pdo);
    $operationManager = new OperationManager($pdo);
    $locauxManager = new LocauxManager($pdo);
    $appartementManager = new AppartementManager($pdo);
    $comptesBancaires = $compteBancaireManager->getCompteBancaires();
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId()) {
        $idProjet = $_GET['idProjet'];
        $projet = $projetManager->getProjetById($idProjet);
        $companies = $companyManager->getCompanys();
        if (isset($_POST['idClient']) and $_POST['idClient'] > 0) {
            $idClient = $_POST['idClient'];
            $contrats = $contratManager->getContratsByIdClientByIdProjet($idClient, $idProjet);
            $contratNumber = -1;
        } else {
            $contrats = $contratManager->getContratsActifsByIdProjet($idProjet);
        }
        ?>
<!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" />
	<link href="assets/css/metro.css" rel="stylesheet" />