示例#1
0
                                 <thead>
                                     <tr>
                                         <th style="width: 20%">Client</th>
                                         <th style="width: 10%">Téléphone</th>
                                         <th style="width: 10%">Projet</th>
                                         <th style="width: 20%">Bien</th>
                                         <th style="width: 10%">Montant</th>
                                         <th style="width: 10%">Date Prévu</th>
                                         <th style="width: 10%">Status</th>
                                         <th style="width: 10%">Actions</th>
                                     </tr>
                                 </thead>
                                 <tbody>
                                     <?php 
 foreach ($reglementsPrevusEnRetards as $element) {
     $contrat = $contratManager->getContratActifByCode($element->codeContrat());
     //process done only if the status is actif
     if ($contrat->status() == "actif") {
         $client = $clientManager->getClientById($contrat->idClient());
         $projet = $projetManager->getProjetById($contrat->idProjet());
         $bien = "";
         $typeBien = "";
         //if the property is a "Local commercial" we don't need to mention niveau attribute
         $niveau = "";
         if ($contrat->typeBien() == "appartement") {
             $appartementManager = new AppartementManager($pdo);
             $bien = $appartementManager->getAppartementById($contrat->idBien());
             $niveau = $bien->niveau();
             $typeBien = "Appartement";
         } else {
             if ($contrat->typeBien() == "localCommercial") {