</div>
													</div>
												</li>
												<hr>
												<?php 
        }
        ?>
											</ul>
										</div>
									</div>
									<div class="tab-pane" id="tab_1_2">
										<div class="scroller" data-height="290px" data-always-visible="1" data-rail-visible1="1">
											<ul class="feeds">
												<?php 
        foreach ($clientWeek as $client) {
            $contrats = $contratManager->getContratsByIdClient($client->id());
            ?>
												<li>
													<div class="col1">
														<div class="cont">
															<div class="cont-col1">
																<div class="desc">	
																	<strong>Client</strong> : <?php 
            echo $client->nom();
            ?>
<br>
																	<?php 
            foreach ($contrats as $contrat) {
                ?>
																	<a href="contrat.php?codeContrat=<?php 
                echo $contrat->code();
Beispiel #2
0
if (isset($_SESSION['userMerlaTrav'])) {
    //les sources
    //class managers
    $projetManager = new ProjetManager($pdo);
    $clientManager = new ClientManager($pdo);
    $companyManager = new CompanyManager($pdo);
    $contratManager = new ContratManager($pdo);
    $compteBancaireManager = new CompteBancaireManager($pdo);
    $operationManager = new OperationManager($pdo);
    $locauxManager = new LocauxManager($pdo);
    $appartementManager = new AppartementManager($pdo);
    //objects and vars
    $idClient = $_GET['idClient'];
    $comptesBancaires = $compteBancaireManager->getCompteBancaires();
    $companies = $companyManager->getCompanys();
    $contrats = $contratManager->getContratsByIdClient($idClient);
    $client = $clientManager->getClientById($idClient);
    ?>
<!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" />