142 lines
5.6 KiB
PHP
Executable File
142 lines
5.6 KiB
PHP
Executable File
<?php
|
|
|
|
?>
|
|
|
|
<div class="modal-dialog modal-lg" style="width:75%">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button id="btn_close_constante" name="btn_close_constante" type="button" class="close" data-bs-dismiss="modal" onclick="javascript:modifier_adherent();"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"><?= _("Changer Bénéficiaire de Remboursement Direct") ?></h4>
|
|
</div>
|
|
|
|
<h4 class="text-center" style="font-weight:bold">
|
|
<?= _("FAMILLE").": ". $adherent['nom'].' '.$adherent['prenoms'].' - ('.$adherent['numeroAdherent'].')'; ?>
|
|
</h4>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_saisie_beneficiaire">
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td class="required" width="13%"> <?= _("Bénéficiaire") ?> </td>
|
|
<td width="50%"><INPUT class="form-control majuscule" TYPE="text" id="beneficiaireReglement" NAME="beneficiaireReglement" style='font-size:10pt;' required AUTOCOMPLETE="OFF"></td>
|
|
|
|
<td align="center" class="required"> <?= _("Lien Parenté") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeLienBeneficiaire" NAME="codeLienBeneficiaire" required AUTOCOMPLETE="OFF" style='font-size:10pt;'>
|
|
<?php liste_options($lienbeneficiaire,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("Mode Paiement") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeModePaiement" NAME="codeModePaiement" required AUTOCOMPLETE="OFF" style='font-size:10pt;' >
|
|
<?php liste_options($modepaiement,""); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("En vigueur?") ?> </td>
|
|
<td>
|
|
<SELECT style='font-size:10pt;' class="form-select" id="enVigueur" NAME="enVigueur" required AUTOCOMPLETE="OFF">
|
|
<?php liste_options($ouinonenvigueur, "1",true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Téléphone Portable") ?> </td>
|
|
<td>
|
|
<INPUT class="form-control" TYPE="text" id="telephoneMobile" NAME="telephoneMobile" style='font-size:10pt;' >
|
|
</td>
|
|
|
|
<td align="center"> <?= _("RIB") ?> </td>
|
|
<td>
|
|
<INPUT class="form-control majuscule" TYPE="text" id="rib" NAME="rib" style='font-size:10pt;' >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="4"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Ajouter") ?>" onClick="javascript:ajouter_beneficiaire_remboursement();" style='font-size:10pt;' > </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<hr style="border:none; border-top: 3px double #333; color:#333; overflow: visible; text-align:center; height:5px;">
|
|
|
|
<div id="div_liste_beneficiaire" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Date") ?> </th>
|
|
<th style='text-align:center'> <?= _("Bénéficiaire") ?> </th>
|
|
<th style='text-align:center'> <?= _("Lien Parenté") ?> </th>
|
|
<th style='text-align:center'> <?= _("Mode Paiement") ?> </th>
|
|
<th style='text-align:center'> <?= _("RIB") ?> </th>
|
|
<th style='text-align:center'> <?= _("Portable") ?> </th>
|
|
<th style='text-align:center'> <?= _("En vigueur?") ?> </th>
|
|
<th style='text-align:center'> <?= _("Utilisateur") ?> </th>
|
|
<th style='text-align:center' width="8%"> <?= _("Modifier") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($beneficiaires as $v):
|
|
$idData = $v['id'];
|
|
$lienBeneficiaire = $v['lienBeneficiaire'];
|
|
$modepaiement = $v['modepaiement'];
|
|
$enVigueur = $v['enVigueur']=="1" ? "Oui" : "Non";
|
|
|
|
$rib = $v['rib'];
|
|
$telephoneMobile = $v['telephoneMobile'];
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$lienBeneficiaire = $v['lienBeneficiaireEng'];
|
|
$modepaiement = $v['modepaiementEng'];
|
|
$enVigueur = ($v['enVigueur']=="1") ? "Yes" : "No";
|
|
}
|
|
|
|
?>
|
|
|
|
<?php if($v['enVigueur']=='1'): ?>
|
|
<tr valign="top" style="background-color: #ffefd5;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td><?= dateheureLang($this->nettoyer($v['dateSysteme']), $_SESSION['lang']) ?></td>
|
|
<td><?= $this->nettoyer($v['beneficiaireReglement']) ?></td>
|
|
<td align="center"> <?=$lienBeneficiaire ?> </td>
|
|
<td align="center"> <?=$modepaiement ?> </td>
|
|
<td align="center"> <?=$rib ?> </td>
|
|
<td align="center"> <?=$telephoneMobile ?> </td>
|
|
<td align="center"> <?=$enVigueur ?> </td>
|
|
<td align="center"><?= $this->nettoyer($v['user']) ?></td>
|
|
<td align="center">
|
|
<button style="font-size:12pt;" class="form-control btn btn-warning" TYPE="button" onclick="javascript:modifier_beneficiaire_remboursement(<?=$idData ?>);">
|
|
<i class="fa fa-pencil" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="9" height="10"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop_constante" name="close_pop_constante" type="button" class="btn btn-default" data-bs-dismiss="modal" onclick="javascript:modifier_adherent();"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|