122 lines
5.4 KiB
PHP
122 lines
5.4 KiB
PHP
<?php $nbligne = 0; ?>
|
|
|
|
<div id="div_detail_requete">
|
|
|
|
<INPUT class="sr-only" type="text" id="idPolice" name="idPolice" value="0">
|
|
<INPUT class="sr-only" type="text" id="debutSinistre" name="debutSinistre" value="">
|
|
<INPUT class="sr-only" type="text" id="finSinistre" name="finSinistre" value="">
|
|
|
|
<INPUT class="sr-only" type="text" id="emailRapport_0" name="emailRapport_0" value="">
|
|
<button class="sr-only" id="btn_pop_detail" name="btn_pop_detail" type="button" data-bs-toggle="modal" data-bs-target="#popdetail" style='font-size:10pt;' > </button>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="2" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($primeAnnuelleTotal) ?></td>
|
|
<td colspan="3"'> </td>
|
|
<td align='center'><?= format_N($primeAcquiseTotal) ?></td>
|
|
<td align='center'><?= format_N($sinistresTotal) ?></td>
|
|
<td align='center'><?= $rapportSpTotal ?></td>
|
|
<td> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th width="20%" style='text-align:center'> <?= _("Souscripteur") ?> </th>
|
|
<th style='text-align:center'> <?= _("Police") ?> </th>
|
|
<th style='text-align:center'> <?= _("Prime An") ?> </th>
|
|
<th style='text-align:center'> <?= _("Début") ?> </th>
|
|
<th style='text-align:center'> <?= _("Fin") ?> </th>
|
|
<th style='text-align:center'> <?= _("Jrs") ?> </th>
|
|
<th style='text-align:center'> <?= _("Prime Acquise") ?> </th>
|
|
<th style='text-align:center'> <?= _("Sinistres") ?> </th>
|
|
<th style='text-align:center'> <?= _("S/P") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Détail") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($primeAnnuelleTotal) ?></td>
|
|
<td colspan="3"'> </td>
|
|
<td align='center'><?= format_N($primeAcquiseTotal) ?></td>
|
|
<td align='center'><?= format_N($sinistresTotal) ?></td>
|
|
<td align='center'><?= $rapportSpTotal ?></td>
|
|
<td> </td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($rapportsps as $rapportsp):
|
|
$sp = $this->nettoyer($rapportsp['rapportSp']);
|
|
$idPolice = $this->nettoyer($rapportsp['idPolice']);
|
|
$debutSinistre = $this->nettoyer($rapportsp['debutSinistre']);
|
|
$finSinistre = $this->nettoyer($rapportsp['finSinistre']);
|
|
|
|
if(!empty($this->nettoyer($rapportsp['libellePolice'])) && $this->nettoyer($rapportsp['libellePolice'])!=$this->nettoyer($rapportsp['souscripteur'])){
|
|
$libellePolice = ' / '.$this->nettoyer($rapportsp['libellePolice']);
|
|
}else{
|
|
$libellePolice="";
|
|
}
|
|
|
|
$nbligne++;
|
|
?>
|
|
<?php if($sp>="80"): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td><?= $this->nettoyer($rapportsp['souscripteur']).$libellePolice; ?></td>
|
|
<td align='center'><?= $this->nettoyer($rapportsp['numeroPolice']) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($rapportsp['primeAnnuelle'])) ?></td>
|
|
<td align='center'><?= dateLang($this->nettoyer($rapportsp['debutSinistre'])) ?></td>
|
|
<td align='center'><?= dateLang($this->nettoyer($rapportsp['finSinistre'])) ?></td>
|
|
<td align='center'><?= $this->nettoyer($rapportsp['dureeAnalyse']) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($rapportsp['primeAcquise'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($rapportsp['sinistres'])) ?></td>
|
|
<td align='center'><?= $this->nettoyer($rapportsp['rapportSp']) ?></td>
|
|
<td>
|
|
<input class = "form-control btn btn-info" type="button" value="<?= _("Détail") ?>" onClick="javascript:afficher_detail_stat_police_exercice('<?=$idPolice?>', '<?=$debutSinistre?>', '<?=$finSinistre?>');" style='font-size:8pt;' >
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
|
|
|
|
<div class="modal fade" id="popdetail" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("Détail des Factures de la police sur la période...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_details">
|
|
<table class="table table-bordered table-condensed table-responsive" style="font-size:10pt; paddind:0px;">
|
|
<tbody>
|
|
<tr>
|
|
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Format PDF...") ?>" onclick="javascript:charger_detail_stat_police_facture_exercice_pdf();" /> </td>
|
|
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Format Excel...") ?>" onclick="javascript:charger_detail_stat_police_facture_exercice();" /> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_export_b">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|