This commit is contained in:
KONE SOREL 2025-12-24 21:47:59 +00:00
parent a5298ee836
commit d94613e19c
4 changed files with 64 additions and 13 deletions

View File

@ -919,8 +919,7 @@ li i { margin-right:10px; color:#007bff; }
border-top: 1px solid #ddd;
}
/* Styles pour la responsivité */
@media (max-width: 768px) {
}
.tab-container {
width: 100%;
overflow: auto;
}

View File

@ -46,7 +46,8 @@ class ControleurAccueil extends Controleur {
$lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"];
$lossRatioValues = [62, 68, 71, 65, 73, 69]; // %
//
// Polices
$polices = $this->synthese->getPolices();
$this->genererVue(
array
@ -56,7 +57,8 @@ class ControleurAccueil extends Controleur {
'alerts' => $alerts,
'lossRatioLabels' => $lossRatioLabels,
'lossRatioValues' => $lossRatioValues,
'dataTabClaims' => $dataTabClaims
'dataTabClaims' => $dataTabClaims,
'polices' => $polices
)
);
}

View File

@ -33,12 +33,14 @@ class Synthese extends Modele {
}
public function getdetailprescription_lab($numeroBonExamen, $codePrestataireLivraison)
public function getPolices()
{
$sql = 'call sp_r_get_detail_prestation_lab(?, ?)';
$idClient = $_SESSION['idClient_C'];
$sql = 'call sp_c_get_polices_client(?)';
$optique = $this->executerRequete($sql, array($numeroBonExamen, $codePrestataireLivraison));
$resultat = $this->executerRequete($sql, array($idClient));
return $optique->fetchAll(PDO::FETCH_ASSOC);
}
return $resultat->fetchAll();
}
}

View File

@ -75,7 +75,55 @@
<i class="accordion-icon bi bi-chevron-down"></i>
</h2>
<div class="accordion-content">
<div class="tab-container">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt; white-space:nowrap;">
<thead>
<tr>
<th style='text-align:center'> <?= _("No Police") ?> </th>
<th style='text-align:center'> <?= _("ID Police") ?> </th>
<th style='text-align:center'> <?= _("Libellé Police") ?> </th>
<th style='text-align:center'>Type</th>
<th style='text-align:center'> <?= _("Effet") ?> </th>
<th style='text-align:center'> <?= _("Echéance") ?> </th>
<th style='text-align:center'> <?= _("No Avenant") ?> </th>
<th style='text-align:center'> <?= _("Type Avenant") ?> </th>
<th style='text-align:center'> <?= _("Etat") ?> </th>
<th style='text-align:center'> <?= _("Prime") ?> </th>
<th style='text-align:center'> <?= _("Sinitres") ?> </th>
<th style='text-align:center'> <?= _("R S/P (%)") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($polices as $police):
$id = $this->nettoyer($police['id']);
$nopol = $this->nettoyer($police['numeroPolice']);
?>
<tr onclick="javascript:selectionner_police(<?= $id ?>,'<?= $nopol ?>');" ondblclick="javascript:selectionner_police(<?= $id ?>,'<?= $nopol ?>');afficher_police_id();" valign="top">
<td align="center"> <input type="button" class = "form-control btn btn-primary" value="<?= $nopol ?>" onClick="javascript:selectionner_police(<?= $id ?>,'<?= $nopol ?>');afficher_police_id();"> </td>
<td align="center"> <input type="button" class = "form-control btn btn-info" value="<?= $id ?>" onClick="javascript:selectionner_police(<?= $id ?>,'<?= $nopol ?>');afficher_police_id();"> </td>
<td align='center'><?= $this->nettoyer($police['libellePolice']) ?></td>
<td align='center'><?= $this->nettoyer($police['typeContrat']) ?></td>
<td align='center'><?= dateLang($this->nettoyer($police['dateEffet']), $_SESSION['lang'])?></td>
<td align='center'><?= dateLang($this->nettoyer($police['dateEcheance']), $_SESSION['lang']) ?></td>
<td align='center'><?= $this->nettoyer($police['numeroAvenant']) ?></td>
<td align='center'><?= $this->nettoyer($police['typeAvenant']) ?></td>
<td align='center'><?= $this->nettoyer($police['etatPolice']) ?></td>
<td align='center'><?= format_N($this->nettoyer($police['primeNetteStat'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($police['montantApayer'])) ?></td>
<?php if($police["rapportSp"] > 65):?>
<td align='center' class="text-warning"><?= $police["rapportSp"].'%' ?></td>
<?php elseif($police["rapportSp"] > 80 && $police["rapportSp"] <= 100):?>
<td align='center' class="text-danger"><?= $police["rapportSp"].'%' ?></td>
<?php else:?>
<td align='center' class="text-primary"><?= $police["rapportSp"].'%' ?></td>
<?php endif;?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</section>
</div>