a
This commit is contained in:
parent
4733eb78af
commit
ce45b03500
|
|
@ -17,8 +17,35 @@ class ControleurHtagcarte extends Controleur {
|
||||||
$idAdherent = $_SESSION['idAdherent_C'];
|
$idAdherent = $_SESSION['idAdherent_C'];
|
||||||
$_SESSION['idAdherentCarte'] = $idAdherent;
|
$_SESSION['idAdherentCarte'] = $idAdherent;
|
||||||
|
|
||||||
$htagcartes = $this->carte->getapercumouvementassures($debut, $fin);
|
$htagcartes = $this->carte->gethtagcartes($idAdherent);
|
||||||
|
|
||||||
$this->genererVue(array('htagcartes' => $htagcartes));
|
$this->genererVue(array('htagcartes' => $htagcartes));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function revoquercarte()
|
||||||
|
{
|
||||||
|
if ($this->requete->existeParametre("otpValue"))
|
||||||
|
{
|
||||||
|
$login = $_SESSION['login'];
|
||||||
|
$otpValueSaisi = $this->requete->getParametre("otpValue");
|
||||||
|
$otpValueRequis = $this->utilisateur->get_otp_value($login);
|
||||||
|
|
||||||
|
// if ( ($otpValueSaisi==$otpValueRequis) && (strlen($otpValueSaisi)=='6') )
|
||||||
|
if ( (password_verify($otpValueSaisi, $otpValueRequis)) && (strlen($otpValueSaisi)=='6') )
|
||||||
|
{
|
||||||
|
$this->utilisateur->set_otp_value($login, '');
|
||||||
|
$_SESSION['menu'] = $this->menu->getMenu($_SESSION['codeProfil']);
|
||||||
|
$this->rediriger("Recherche");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->genererVue(array('msgErreur' => _('Code incorrect!')), "index");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->genererVue(array('msgErreur' => _('Veuillez revoir votre saisie!')), "index");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -91936,4 +91936,13 @@ function gerer_garant_defaut()
|
||||||
|
|
||||||
function toggleSidebar() {
|
function toggleSidebar() {
|
||||||
document.body.classList.toggle('sidebar-collapsed');
|
document.body.classList.toggle('sidebar-collapsed');
|
||||||
|
}
|
||||||
|
|
||||||
|
function init_revoquer_htagcarte(idHtagcarte) {
|
||||||
|
alert("init_revoquer_htagcarte");
|
||||||
|
return;
|
||||||
|
|
||||||
|
$("#idHtagcarte").val(idHtagcarte);
|
||||||
|
$("#div_revoquer_carte").modal({backdrop: 'static', keyboard: false, show: true });
|
||||||
|
$("#div_revoquer_carte").modal("show");
|
||||||
}
|
}
|
||||||
|
|
@ -266,5 +266,13 @@ class Carteassure extends Modele {
|
||||||
$this->executerRequete($sql, array($qrCodePath, $idBeneficiaire));
|
$this->executerRequete($sql, array($qrCodePath, $idBeneficiaire));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function gethtagcartes($idAdherent)
|
||||||
|
{
|
||||||
|
$sql = 'call sp_get_htagcartes(?)';
|
||||||
|
|
||||||
|
$resultat = $this->executerRequete($sql, array($idAdherent));
|
||||||
|
|
||||||
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->titre = "INTER SANTE - Cartes des assurés";
|
$this->titre = "INTER SANTE - ". _("Cartes des assurés");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="div_patienter" ></div>
|
<div id="div_patienter" ></div>
|
||||||
|
|
||||||
<legend> <?= _("CARTES DES ASSURES") . " => " . $this->nettoyer($_SESSION['adherent_C']) ?> </legend>
|
<legend> <?= _("CARTES DES ASSURES") . " => " . $this->nettoyer($_SESSION['adherent_C']) ?> </legend>
|
||||||
|
|
||||||
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "frmcarteassurepolice" >
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "frmcarteassurepolice" >
|
||||||
<input class="sr-only" id="idPolice" name="idPolice" type="text" value= "<?= $_SESSION['idPolice_C'] ?>" >
|
<input class="sr-only" id="idPolice" name="idPolice" type="text" value= "<?= $_SESSION['idPolice_C'] ?>" >
|
||||||
<input class="sr-only" id="idCollege" name="idCollege" type="text" value= "0">
|
<input class="sr-only" id="idCollege" name="idCollege" type="text" value= "0">
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,77 @@
|
||||||
<?php
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||||
// var_dump(array("debutMois_C" => $_SESSION['debutMois_C'] ));
|
<thead>
|
||||||
?>
|
<tr>
|
||||||
|
<th style='text-align:center'> <?= _("Nom") ?> </th>
|
||||||
<input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="<?= _("RECAPITULATIF MOUVEMMENTS RH") ?>" readonly>
|
<th style='text-align:center'> <?= _("Prénoms") ?> </th>
|
||||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
<th style='text-align:center'> <?= _("Matricule") ?> </th>
|
||||||
<tbody>
|
<th style='text-align:center'> <?= _("Date Création") ?> </th>
|
||||||
<tr>
|
<th style='text-align:center'> <?= _("En cours?") ?> </th>
|
||||||
<td width="10%"> <?= _("Période du") ?> </td>
|
<th style='text-align:center'> <?= _("Révoquée par") ?> </th>
|
||||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="debut" NAME="debut" value="<?= dateLang($_SESSION['debutMois_C'], $_SESSION['lang']) ?>" required </td>
|
<th style='text-align:center'> <?= _("Date Révocation") ?> </th>
|
||||||
|
<th style='text-align:center'> <?= _("Motif Révocation") ?> </th>
|
||||||
<td width="3%" align="center"> <?= _("au") ?> </td>
|
<th style='text-align:center'> <?= _("Révoquer") ?> </th>
|
||||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="fin" NAME="fin" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required> </td>
|
|
||||||
|
|
||||||
<td> </td>
|
|
||||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:apercu_mouvement_assures();"> <?= _("Afficher résultats")."..." ?> </button> </td>
|
|
||||||
|
|
||||||
<td> </td>
|
|
||||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:apercu_mouvement_assures_export();"> <?= _("Exporter vers Excel...") ?> </button> </td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($htagcartes as $v):
|
||||||
|
$idHtagcarte = $this->nettoyer($v['idHtagcarte']);
|
||||||
|
?>
|
||||||
|
/*
|
||||||
|
nomBeneficiaire
|
||||||
|
prenomsBene0ficiaire
|
||||||
|
numeroBeneficiaire
|
||||||
|
dateSysteme
|
||||||
|
enCours
|
||||||
|
userRevocation
|
||||||
|
dateRevocation
|
||||||
|
motifRevocation
|
||||||
|
*/
|
||||||
|
<tr valign="top">
|
||||||
|
<td align='center'><?= $this->nettoyer($v['nomBeneficiaire']) ?></td>
|
||||||
|
<td align='center'><?= $this->nettoyer($v['prenomsBeneficiaire']) ?></td>
|
||||||
|
<td align='center'><?= $this->nettoyer($v['numeroBeneficiaire']) ?></td>
|
||||||
|
<td> <button type="button" class="form-control btn btn-primary" onclick="javascript:init_revoquer_htagcarte(<?= $idHtagcarte ?>);"> <?= _("Révoquer") ?> </button> </td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div id="div_mvt">
|
<div id="div_revoquer_carte" class="modal fade" role="dialog">
|
||||||
<?php
|
<div class="modal-dialog" style="max-width: 70%;" role="document" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||||
require 'Vue/Ajaxmouvementsrh/index.php';
|
<div class="modal-content">
|
||||||
?>
|
<div class="modal-header">
|
||||||
</div>
|
<button type="button" class="close" data-bs-dismiss="modal">×</button>
|
||||||
|
<legend class="modal-title text-center"><?= _("Révocation de cartes");?></legend>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="modal-body">
|
||||||
|
<form class="form-horizontal" action="Htagcarte/revoquercarte" method="post" style='font-size:10pt;'>
|
||||||
|
<INPUT class="sr-only" TYPE="text" id="idHtagcarte" name="idHtagcarte" value="">
|
||||||
|
|
||||||
|
<table class="table table-responsive table-condensed" style='font-size:12pt;'>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td width="8%"> <?= _("Motif");?></td>
|
||||||
|
<td >
|
||||||
|
<INPUT class="form-control" name="motifRevocation" id="motifRevocation" ></textarea>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input id="btn_enreg" name="btn_enreg" class="form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="revoquer_htagcarte();" style='font-size:12pt;'>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<button type="button" id="btn-fermer-modal" class="btn btn-default" data-bs-dismiss="modal"><?= _("Fermer") ?></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
@ -976,7 +976,7 @@
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||||
|
|
||||||
<script src="Js/fonctions.js?ver=2025.12.20.12"></script>
|
<script src="Js/fonctions.js?ver=2026.02.18.00"></script>
|
||||||
|
|
||||||
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user