newdesigngestionnaire/Vue/Creerusergc/index.php
2026-03-15 18:47:09 +00:00

105 lines
6.7 KiB
PHP
Executable File

<?php
$idUtilisateur = $user_gc['idUtilisateur'];
$codeUtilisateur = $user_gc['codeUtilisateur'];
$nomGcAssureur = $this->nettoyer($gc['libelle']);
?>
<div class="page-content animate__animated animate__fadeIn">
<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"><?= _("Garant :") ?> <span class="fw-bold"><?= $nomGcAssureur ?></span> — Login : <span class="badge bg-light text-dark 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-dark" onclick="maj_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="codeUtilisateur" name="codeUtilisateur" value="<?= $codeUtilisateur ?>">
<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><?= _("Informations de Profil") ?></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") ?></label>
<input class="form-control majuscule border-2 shadow-none" type="text" id="nom" name="nom" value="<?= $this->nettoyer($user_gc['nom']) ?>">
</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") ?></label>
<input class="form-control border-2 shadow-none" type="email" id="email" name="email" value="<?= $this->nettoyer($user_gc['email']) ?>">
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Téléphone") ?></label>
<input class="form-control border-2 shadow-none" type="tel" id="telephone" name="telephone" value="<?= $this->nettoyer($user_gc['telephone']) ?>">
</div>
<div class="col-md-6">
<label class="form-label small fw-bold text-muted"><?= _("Langue") ?></label>
<select class="form-select border-2 shadow-none" id="codeLangueUser" name="codeLangueUser">
<?php liste_options($langue, $user_gc['codeLangue']); ?>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-0 shadow-sm h-100 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><?= _("Visibilité Médicale") ?></h6>
</div>
<div class="card-body p-4">
<div class="mb-4 p-3 bg-light rounded border border-info border-opacity-25">
<label class="form-label small fw-bold text-muted d-block mb-2"><?= _("Libellés des Actes") ?></label>
<select class="form-select border-2 shadow-none" id="actVisibleUser" name="actVisibleUser">
<?php liste_options($user_actVisible, $user_gc['actVisible']); ?>
</select>
</div>
<div class="mb-0 p-3 bg-light rounded border border-info border-opacity-25">
<label class="form-label small fw-bold text-muted d-block mb-2"><?= _("Libellés des Affections") ?></label>
<select class="form-select border-2 shadow-none" id="AffectionVisibleUser" name="AffectionVisibleUser">
<?php liste_options($user_AffectionVisible, $user_gc['AffectionVisible']); ?>
</select>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<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>