This commit is contained in:
KONE SOREL 2026-03-16 09:09:22 +00:00
parent 2b5d50861a
commit d18ace5e9a
3 changed files with 125 additions and 84 deletions

View File

@ -35779,8 +35779,8 @@ function users_gc()
function reinitpaswd_gc(codeUtilisateur)
{
v_msg="Confirmez-vous la réinitialisation?";
v_msgEng="Do you confirm the reset?";
v_msg="Confirmez-vous la réinitialisation du mot de passe ?";
v_msgEng="Do you confirm the password reset?";
confirm_ebene(v_msg, v_msgEng)
@ -35822,8 +35822,8 @@ function reinitpaswd_gc(codeUtilisateur)
function desactiver_user_gc(codeUtilisateur)
{
v_msg="Confirmez-vous la désactivation?";
v_msgEng="Do you confirm the deactivation?";
v_msg="Confirmez-vous le blocage du compte ?";
v_msgEng="Do you confirm the blocking of the account?";
confirm_ebene(v_msg, v_msgEng)
@ -35863,8 +35863,8 @@ function desactiver_user_gc(codeUtilisateur)
function activer_user_gc(codeUtilisateur)
{
v_msg="Confirmez-vous l\'activation?";
v_msgEng="Do you confirm the activation?";
v_msg="Confirmez-vous l\'ouverture du compte ?";
v_msgEng="Do you confirm the account opening?";
@ -37046,10 +37046,8 @@ function creer_user_gc() {
if (actVisible <= " ") { alert_ebene("Indiquez la visibilité des libellés des actes!", "Indicate the visibility of the act labels!"); $("#actVisibleUser").focus(); return; }
if (AffectionVisible <= " ") { alert_ebene("Indiquez la visibilité des libellés des affections!", "Indicate the visibility of the affection labels!"); $("#AffectionVisibleUser").focus(); return; }
if (codeUtilisateur <= " ") { alert_ebene("Indiquez le login!", "Enter the login!"); $("#codeUtilisateur").focus(); return; }
// Validation MDP si mode manuel
if (codeModeGenerationPass == "0") {
if (nvmdp <= " ") { alert_ebene("Mot de passe requis!", "Password required!"); $("#nvmdp").focus(); return; }

View File

@ -1,5 +1,5 @@
<?php
$this->titre = "ISA WEB - Modifier Utilisteur Garant";
$this->titre = "ISA WEB - Modifier Utilisateur Garant";
$codeGcAssureur = $this->nettoyer($user_gc['codeGcAssureur']);
$idUtilisateur = $user_gc['id'];
@ -11,75 +11,118 @@
$AffectionVisible = $user_gc['AffectionVisible'];
?>
<script type="text/javascript">
<div class="page-content animate__animated animate__fadeIn">
</script>
<div class="header-section sticky-top mb-4" style="top: 0; z-index: 1020; margin: -1rem -1rem 1.5rem -1rem; padding: 1rem;">
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow border-start border-warning border-4" style="border-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-warning-light text-warning rounded-circle me-3" style="width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-user-edit fs-4"></i>
</div>
<div>
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase fs-5 text-warning"><?= _("Modifier l'Utilisateur") ?></h4>
<p class="text-muted small mb-0 d-none d-md-block"><?= _("Login :") ?> <span class="badge bg-light text-dark border"><?= $codeUtilisateur ?></span></p>
</div>
</div>
<input class="sr-only" type="text" id="idUtilisateur" name="idUtilisateur" value="<?= $idUtilisateur ?>" >
<input class="sr-only" type="text" id="codeGcAssureur" name="codeGcAssureur" value="<?= $codeGcAssureur ?>" >
<div class="d-flex gap-2">
<button type="button" class="btn btn-light rounded-pill px-3 fw-bold text-muted border shadow-sm btn-sm" onclick="retour_a_users_gc();">
<i class="fas fa-times me-1"></i> <?= _("Annuler") ?>
</button>
<button type="button" id="btn_enreg" class="btn btn-warning rounded-pill px-4 fw-bold shadow-sm btn-sm text-dark" onclick="enregistrer_modif_user_gc();">
<i class="fas fa-save me-1"></i> <?= _("Enregistrer les modifications") ?>
</button>
</div>
</div>
</div>
<legend> <?= _("Modifier Utilisateur") . ": " . $codeUtilisateur ?> </legend>
<form id="form_edit_user_gc">
<input type="hidden" id="idUtilisateur" name="idUtilisateur" value="<?= $idUtilisateur ?>">
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $codeGcAssureur ?>">
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="10%" class="required"> <?= _("Nom") ?> </td>
<td width="40%" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="nom" NAME="nom" value="<?=$this->nettoyer( $user_gc['nom'])?>" required AUTOCOMPLETE="OFF" autofocus ></td>
<td width="12%" align="center" > <?= _("Prénoms") ?> </td>
<td colspan="3" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="prenoms" NAME="prenoms" value="<?=$this->nettoyer( $user_gc['prenoms'])?>" ></td>
</tr>
<tr>
<td class="required"> <?= _("Téléphone") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?=$this->nettoyer( $user_gc['telephone'])?>" required></td>
<td align="center" class="required"> E-mail </td>
<td colspan="3" > <INPUT style='font-size:10pt;' class="form-control" TYPE="email" id="email" NAME="email" value="<?=$this->nettoyer( $user_gc['email'])?>" required> </td>
</tr>
<tr>
<td> <?= _("Assureur") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" value="<?=$this->nettoyer( $user_gc['assureur'])?>" readonly ></td>
<td align="center"> <?= _("Actif?") ?> </td>
<td>
<SELECT style="font-size:10pt;" class="form-control" id="actif" NAME="actif" >
<?php liste_options($user_actif, $actif, true); ?>
</SELECT>
</td>
<td align="center"> <?= _("Actes Visibles?") ?> </td>
<td>
<SELECT style="font-size:10pt;" class="form-select" id="actVisibleUser" NAME="actVisibleUser" >
<?php liste_options($user_actVisible, $actVisible, true); ?>
</SELECT>
</td>
</tr>
<tr>
<td> <?= _("Langue") ?> </td>
<td>
<SELECT style="font-size:10pt;" class="form-select" id="codeLangueUser" NAME="codeLangueUser" >
<div class="row g-4">
<div class="col-lg-8">
<div class="card border-0 shadow-sm h-100">
<div class="card-header bg-white py-3 border-bottom border-2 border-primary-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-id-card me-2"></i><?= _("Profil Utilisateur") ?></h6>
</div>
<div class="card-body p-4">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Nom") ?> <span class="text-danger">*</span></label>
<input class="form-control majuscule border-2 shadow-none" type="text" id="nom" name="nom" value="<?= $this->nettoyer($user_gc['nom']) ?>" required autofocus>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Prénoms") ?></label>
<input class="form-control border-2 shadow-none" type="text" id="prenoms" name="prenoms" value="<?= $this->nettoyer($user_gc['prenoms']) ?>">
</div>
<div class="col-md-7">
<label class="form-label small fw-bold text-muted"><?= _("E-mail") ?> <span class="text-danger">*</span></label>
<input class="form-control border-2 shadow-none" type="email" id="email" name="email" value="<?= $this->nettoyer($user_gc['email']) ?>" required>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Téléphone") ?> <span class="text-danger">*</span></label>
<input class="form-control border-2 shadow-none" type="tel" id="telephone" name="telephone" value="<?= $this->nettoyer($user_gc['telephone']) ?>" required>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Assureur (Garant)") ?></label>
<input class="form-control bg-light border-2" type="text" value="<?= $this->nettoyer($user_gc['assureur']) ?>" readonly>
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Langue de l'interface") ?></label>
<select class="form-select border-2 shadow-none" id="codeLangueUser" name="codeLangueUser">
<?php liste_options($langue, $codeLangue, true); ?>
</SELECT>
</td>
</select>
</div>
</div>
</div>
</div>
</div>
<td align="center"> <?= _("Affections Visibles?") ?> </td>
<td colspan="3" >
<SELECT style="font-size:10pt;" class="form-select" id="AffectionVisibleUser" NAME="AffectionVisibleUser" >
<div class="col-lg-4">
<div class="card border-0 shadow-sm mb-4 border-start border-primary border-4">
<div class="card-header bg-white py-3 border-bottom border-2 border-primary-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-toggle-on me-2"></i><?= _("Statut du Compte") ?></h6>
</div>
<div class="card-body p-4">
<label class="form-label small fw-bold text-muted"><?= _("Compte Actif ?") ?></label>
<select class="form-select border-2 shadow-none" id="actif" name="actif">
<?php liste_options($user_actif, $actif, true); ?>
</select>
</div>
</div>
<div class="card border-0 shadow-sm border-start border-info border-4">
<div class="card-header bg-white py-3 border-bottom border-2 border-primary-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-eye me-2"></i><?= _("Confidentialité Médicale") ?></h6>
</div>
<div class="card-body p-4">
<div class="mb-3">
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Actes ?") ?></label>
<select class="form-select border-2 shadow-none" id="actVisibleUser" name="actVisibleUser">
<?php liste_options($user_actVisible, $actVisible, true); ?>
</select>
</div>
<div>
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Affections ?") ?></label>
<select class="form-select border-2 shadow-none" id="AffectionVisibleUser" name="AffectionVisibleUser">
<?php liste_options($user_AffectionVisible, $AffectionVisible, true); ?>
</SELECT>
</td>
</tr>
</select>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<tr>
<td> </td>
<td> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_modif_user_gc();" style='font-size:10pt;' > </td>
<td> </td>
<td colspan="3" > <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_a_users_gc();" style='font-size:9pt;' > </td>
</tr>
</tbody>
</table>
<style>
.header-section.sticky-top {
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
.bg-warning-light { background-color: rgba(255, 193, 7, 0.15) !important; }
.border-primary-light { border-color: rgba(33, 46, 83, 0.1) !important; }
.majuscule { text-transform: uppercase; }
</style>

View File

@ -105,7 +105,7 @@
<i class="fas fa-key"></i>
</button>
<button class="btn btn-link btn-sm <?= $isActif ? 'text-danger' : 'text-success' ?> p-1 mx-1 action-icon"
title="<?= $isActif ? _("Désactiver l'utilisateur") : _("Activer l'utilisateur") ?>"
title="<?= $isActif ? _("Compte Bloqué") : _("Compte Ouvert") ?>"
onclick="<?= $isActif ? "desactiver_user_gc('$code')" : "activer_user_gc('$code')" ?>;">
<i class="fas <?= $isActif ? 'fa-user-slash' : 'fa-user-check' ?>"></i>
</button>