prestation/Vue/Ajaxetatrapportspadherentperiode/index.php
2025-12-05 10:42:46 +00:00

134 lines
6.6 KiB
PHP
Executable File

<?php $nbligne = 0; ?>
<div id="div_detail_requete">
<INPUT class="sr-only" type="text" id="idAdherent" name="idAdherent" value="0">
<INPUT class="sr-only" type="text" id="emailAdherent_0" name="emailAdherent_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 tabliste compact" style="font-size:8pt;">
<thead>
<tr>
<th width="25%" style='text-align:center'> <?= _("Souscripteur") ?> </th>
<th style='text-align:center'> <?= _("Police") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Matricule") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Adhérent") ?> </th>
<th style='text-align:center'> <?= _("Effet") ?> </th>
<th style='text-align:center'> <?= _("Fin") ?> </th>
<th style='text-align:center'> <?= _("Jrs") ?> </th>
<th style='text-align:center'> <?= _("Primes") ?> </th>
<th style='text-align:center'> <?= _("Sinistres") ?> </th>
<th style='text-align:center'> <?= _("S/P") ?> </th>
<th width="7%" style='text-align:center'> <?= _("Détail") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="7" style='text-align:center'> Total </td>
<td align='center'><?= format_N($primeAnalyseTotal) ?></td>
<td style='text-align:center'> <?= format_N($montantApayerTotal) ?> </td>
<td align='center'><?= $rapportSpTotal ?></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($rapportsps as $rapportsp):
$idAdherent = $this->nettoyer($rapportsp['idAdherent']);
$emailAdherent = $this->nettoyer($rapportsp['email']);
if(!empty($this->nettoyer($rapportsp['libellePolice'])) && $this->nettoyer($rapportsp['libellePolice'])!=$this->nettoyer($rapportsp['souscripteur'])){
$libellePolice = ' / '.$this->nettoyer($rapportsp['libellePolice']);
}else{
$libellePolice="";
}
$nbligne++;
?>
<tr valign="top">
<td><?= $this->nettoyer($rapportsp['souscripteur']).$libellePolice; ?></td>
<td align='center'><?= $this->nettoyer($rapportsp['numeroPolice']) ?></td>
<td align='center'><?= $this->nettoyer($rapportsp['numeroAdherent']) ?></td>
<td><?= $this->nettoyer($rapportsp['adherent']) ?></td>
<td align='center'><?= dateLang($this->nettoyer($rapportsp['dateEffet'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($rapportsp['dateFin'])) ?></td>
<td align='center'><?= $this->nettoyer($rapportsp['d_acq']) ?></td>
<td align='center'><?= format_N($this->nettoyer($rapportsp['primeAnalyse'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($rapportsp['montantApayer'])) ?></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_factures_famille('<?=$idAdherent?>','<?=$emailAdherent?>');" 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 consommations de la famille...") ?> </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;">
<thead>
<tr>
<th width ="20%"style='text-align:center'> <?= _("Etat à Charger") ?> </td>
<th style='text-align:center'> <?= _("Format PDF") ?> </td>
<th style='text-align:center'> <?= _("Format Excel") ?> </td>
<th style='text-align:center'> <?= _("Envoi E-mail") ?> </td>
</tr>
</thead>
<tbody>
<tr>
<td align='center'> <?= _("Détail des Factures") ?> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Charger...") ?>" onclick="javascript:charger_detail_stat_adherent_periode_facture_pdf();" /> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Charger...") ?>" onclick="javascript:charger_detail_stat_adherent_periode_facture();" /> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Envoi E-mail...") ?>" onclick="javascript:mail_detail_stat_adherent_periode_facture();" /> </td>
</tr>
<tr>
<td align='center'> <?= _("Détail des Garanties") ?> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Charger...") ?>" onclick="javascript:charger_detail_stat_adherent_periode_garantie_pdf();" /> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Charger...") ?>" onclick="javascript:charger_detail_stat_adherent_periode_garantie();" /> </td>
<td align='center'> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Envoi E-mail...") ?>" onclick="javascript:mail_detail_stat_adherent_periode_garantie();" /> </td>
</tr>
<tr>
<td align='center'> <input type="button" class = "form-control btn btn-primary" style='font-size:10pt;' value="<?= _("E-mail / Ré-initialiser") ?>" onclick="javascript:reinitialiser_email_adherent();" /> </td>
<td colspan ="3"> <INPUT style="font-size:11pt; background-color:blue;color:white; text-align:center;" class = "form-control" type="email" id="emailAdherent" name="emailAdherent" value=""> </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>