newdesigngestionnaire/Vue/Ficheusergc/index.php
2026-03-16 09:36:31 +00:00

123 lines
7.8 KiB
PHP
Executable File

<?php
$this->titre = "ISA WEB - Modifier Utilisateur Garant";
$codeGcAssureur = $this->nettoyer($user_gc['codeGcAssureur']);
$idUtilisateur = $user_gc['id'];
$codeUtilisateur = $user_gc['codeUtilisateur'];
$actif = $user_gc['actif'];
$actVisible = $user_gc['actVisible'];
$reInit = $user_gc['reInit'];
$codeLangue = $user_gc['codeLangue'];
$AffectionVisible = $user_gc['AffectionVisible'];
?>
<div class="page-content animate__animated animate__fadeIn">
<div class="header-section mb-1">
<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 Utilisateur Garant") ?></h4>
<p class="text-muted small mb-0 d-none d-md-block"><?= _("Login :") ?> <span class="badge bg-light text-muted border"><?= $codeUtilisateur ?></span></p>
</div>
</div>
<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-light" onclick="enregistrer_modif_user_gc();">
<i class="fas fa-save me-1"></i> <?= _("Enregistrer les modifications") ?>
</button>
</div>
</div>
</div>
<form id="form_edit_user_gc">
<input type="hidden" id="idUtilisateur" name="idUtilisateur" value="<?= $idUtilisateur ?>">
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $codeGcAssureur ?>">
<div class="row g-2">
<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"><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>
</div>
</div>
</div>
</div>
</div>
<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"><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"><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>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<style>
.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>