dr
This commit is contained in:
parent
23f11e6cfb
commit
a6e9259202
|
|
@ -1,66 +1,60 @@
|
|||
<?php
|
||||
$idUtilisateur = $user_gc['idUtilisateur'];
|
||||
$codeUtilisateur = $user_gc['codeUtilisateur'];
|
||||
$nomGcAssureur = $this->nettoyer($gc['libelle']);
|
||||
// On récupère uniquement les infos du Garant et les paramètres système
|
||||
$codeGcAssureur = $this->nettoyer($gc['codeGcAssureur']);
|
||||
$idGc = $this->nettoyer($gc['id']);
|
||||
$nomGcAssureur = $this->nettoyer($gc['libelle']);
|
||||
|
||||
$codeModeGenerationPass = $paramsgenerationpass['codeModeGenerationPass'];
|
||||
$codeModeEnvoiPass = $paramsgenerationpass['codeModeEnvoiPass'];
|
||||
?>
|
||||
|
||||
<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 class="header-section mb-4">
|
||||
<div class="d-flex align-items-center bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
|
||||
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
|
||||
<i class="fas fa-user-plus fs-4"></i>
|
||||
</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>
|
||||
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Nouvel Utilisateur") ?></h4>
|
||||
<p class="text-muted small mb-0"><?= _("Garant :") ?> <span class="fw-bold text-primary"><?= $nomGcAssureur ?></span></p>
|
||||
</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 ?>">
|
||||
<form id="form_new_user_gc">
|
||||
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $codeGcAssureur ?>">
|
||||
<input type="hidden" id="idGc" name="idGc" value="<?= $idGc ?>">
|
||||
<input type="hidden" id="uniciteLogin" name="uniciteLogin" value="0">
|
||||
|
||||
<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>
|
||||
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-id-card me-2"></i><?= _("Informations Personnelles") ?></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']) ?>">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Nom") ?> <span class="text-danger">*</span></label>
|
||||
<input class="form-control majuscule border-2" type="text" id="nom" name="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']) ?>">
|
||||
<input class="form-control border-2" type="text" id="prenoms" name="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']) ?>">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("E-mail") ?> <span class="text-danger">*</span></label>
|
||||
<input class="form-control border-2" type="email" id="email" name="email" required>
|
||||
</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']) ?>">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Téléphone") ?> <span class="text-danger">*</span></label>
|
||||
<input class="form-control border-2" type="tel" id="telephone" name="telephone" required>
|
||||
</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 class="form-select border-2" id="codeLangueUser" name="codeLangueUser">
|
||||
<?php liste_options($langue, ""); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -74,32 +68,77 @@
|
|||
<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']); ?>
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Actes") ?></label>
|
||||
<select class="form-select border-2" id="actVisibleUser" name="actVisibleUser">
|
||||
<?php liste_options($user_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']); ?>
|
||||
<div class="mb-0">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Affections") ?></label>
|
||||
<select class="form-select border-2" id="AffectionVisibleUser" name="AffectionVisibleUser">
|
||||
<?php liste_options($user_AffectionVisible, ""); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="card border-0 shadow-sm bg-primary-ghost-light">
|
||||
<div class="card-body p-4">
|
||||
<div class="row g-3 align-items-end">
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Login") ?> <span class="text-danger">*</span></label>
|
||||
<input class="form-control border-2 text-lowercase fw-bold" type="text" id="codeUtilisateur" name="codeUtilisateur" onChange="this.value=supprimer_espace_string(this.value);" required>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Mode Génération") ?></label>
|
||||
<select class="form-select border-2" id="codeModeGenerationPass" name="codeModeGenerationPass" onChange="ajax_saisir_pass_new_user();">
|
||||
<?php liste_options($modegenerationpass, $codeModeGenerationPass, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Mode Envoi") ?></label>
|
||||
<select class="form-select border-2" id="codeModeEnvoiPass" name="codeModeEnvoiPass">
|
||||
<?php liste_options($modeenvoipass, $codeModeEnvoiPass, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_passwd" class="mt-3">
|
||||
<?php if ($codeModeGenerationPass == "0"): ?>
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Mot de passe") ?></label>
|
||||
<input class="form-control border-2" type="password" id="nvmdp" name="nvmdp" onBlur="controle_longeur_passe(this);">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-bold text-muted"><?= _("Confirmer") ?></label>
|
||||
<input class="form-control border-2" type="password" id="cfnvmdp" name="cfnvmdp" onBlur="controle_new_pass();">
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<input type="hidden" id="nvmdp" name="nvmdp">
|
||||
<input type="hidden" id="cfnvmdp" name="cfnvmdp">
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 mb-5">
|
||||
<div class="card border-0 shadow-sm bg-light">
|
||||
<div class="card-body d-flex justify-content-end gap-2 py-3">
|
||||
<button type="button" class="btn btn-light rounded-pill px-4 fw-bold text-muted border shadow-xs" onclick="retour_a_users_gc();">
|
||||
<i class="fas fa-times me-2"></i> <?= _("Annuler") ?>
|
||||
</button>
|
||||
<button type="button" id="btn_enreg" class="btn btn-primary rounded-pill px-5 fw-bold shadow-sm" onclick="creer_user_gc();">
|
||||
<i class="fas fa-save me-2"></i> <?= _("Enregistrer l'Utilisateur") ?>
|
||||
</button>
|
||||
</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>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user