erty
This commit is contained in:
parent
a5298ee836
commit
d94613e19c
|
|
@ -919,8 +919,7 @@ li i { margin-right:10px; color:#007bff; }
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Styles pour la responsivité */
|
.tab-container {
|
||||||
@media (max-width: 768px) {
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,8 @@ class ControleurAccueil extends Controleur {
|
||||||
$lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"];
|
$lossRatioLabels = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin"];
|
||||||
$lossRatioValues = [62, 68, 71, 65, 73, 69]; // %
|
$lossRatioValues = [62, 68, 71, 65, 73, 69]; // %
|
||||||
|
|
||||||
//
|
// Polices
|
||||||
|
$polices = $this->synthese->getPolices();
|
||||||
|
|
||||||
$this->genererVue(
|
$this->genererVue(
|
||||||
array
|
array
|
||||||
|
|
@ -56,7 +57,8 @@ class ControleurAccueil extends Controleur {
|
||||||
'alerts' => $alerts,
|
'alerts' => $alerts,
|
||||||
'lossRatioLabels' => $lossRatioLabels,
|
'lossRatioLabels' => $lossRatioLabels,
|
||||||
'lossRatioValues' => $lossRatioValues,
|
'lossRatioValues' => $lossRatioValues,
|
||||||
'dataTabClaims' => $dataTabClaims
|
'dataTabClaims' => $dataTabClaims,
|
||||||
|
'polices' => $polices
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'];
|
||||||
|
|
||||||
$optique = $this->executerRequete($sql, array($numeroBonExamen, $codePrestataireLivraison));
|
$sql = 'call sp_c_get_polices_client(?)';
|
||||||
|
|
||||||
return $optique->fetchAll(PDO::FETCH_ASSOC);
|
$resultat = $this->executerRequete($sql, array($idClient));
|
||||||
|
|
||||||
|
return $resultat->fetchAll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -75,7 +75,55 @@
|
||||||
<i class="accordion-icon bi bi-chevron-down"></i>
|
<i class="accordion-icon bi bi-chevron-down"></i>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="accordion-content">
|
<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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user