Exemplo n.º 1
0
                                 <thead>
                                     <tr>
                                         <th style="width:20%">Actions</th>
                                         <th style="width:15%">Client</th>
                                         <th style="width:10%">Projet</th>
                                         <th style="width:20%" class="hidden-phone">Bien</th>
                                         <th style="width:10%">Date Contrat</th>
                                         <th style="width:25%" class="hidden-phone">Note</th>
                                     </tr>
                                 </thead>
                                 <tbody>
                                     <?php 
 foreach ($contrats as $contrat) {
     $revendreTitle = "";
     $montantRevente = 0;
     $operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($contrat->id());
     $sommeOperations = $operationManager->sommeOperations($contrat->id());
     $bien = "";
     $typeBien = "";
     $etage = "";
     $projet = $projetManager->getProjetById($contrat->idProjet());
     if ($contrat->typeBien() == "appartement") {
         $bien = $appartementManager->getAppartementById($contrat->idBien());
         $typeBien = "Appartement";
         $etage = "Etage " . $bien->niveau();
     } else {
         $bien = $locauxManager->getLocauxById($contrat->idBien());
         $typeBien = "Local commercial";
         $etage = "";
     }
     ?>
Exemplo n.º 2
0
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav'])) {
    //les sources
    $idProjet = 0;
    $projetManager = new ProjetManager($pdo);
    $contratManager = new ContratManager($pdo);
    if (isset($_GET['idProjet']) and $_GET['idProjet'] > 0 and $_GET['idProjet'] <= $projetManager->getLastId() and (isset($_GET['idContrat']) and ($_GET['idContrat'] > 0 and $_GET['idContrat'] <= $contratManager->getLastId()))) {
        $idProjet = $_GET['idProjet'];
        $idContrat = $_GET['idContrat'];
        $projet = $projetManager->getProjetById($idProjet);
        $contrat = $contratManager->getContratById($idContrat);
        $operationManager = new OperationManager($pdo);
        $operations = "";
        //test the locaux object number: if exists get operations else do nothing
        $operationsNumber = $operationManager->getOpertaionsNumberByIdContrat($idContrat);
        if ($operationsNumber != 0) {
            $operations = $operationManager->getOperationsByIdContrat($idContrat);
        }
    }
    ?>
<!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" />