150 lines
9.7 KiB
PHP
Executable File
150 lines
9.7 KiB
PHP
Executable File
<?php
|
|
$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 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>
|
|
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Nouvel Utilisateur Garant") ?></h4>
|
|
<p class="text-muted small mb-0"><?= _("Garant :") ?> <span class="fw-bold text-muted"><?= $nomGcAssureur ?></span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<form id="form_new_user_gc">
|
|
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $codeGcAssureur ?>">
|
|
<input type="hidden" id="idGc" name="idGc" value="<?= $idGc ?>">
|
|
|
|
<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><?= _("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") ?> <span class="text-danger">*</span></label>
|
|
<input class="form-control majuscule border-2 shadow-none" 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">
|
|
</div>
|
|
<div class="col-md-7">
|
|
<label class="form-label small fw-bold text-muted"><?= _("Langue") ?> <span class="text-danger">*</span></label>
|
|
<select class="form-select border-2 shadow-none" id="codeLangueUser" name="codeLangueUser" required>
|
|
<?php liste_options($langue, ""); ?>
|
|
</select>
|
|
</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" required>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<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" required placeholder="email@exemple.com">
|
|
</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"><i class="fas fa-eye me-2"></i><?= _("Visibilité Médicale") ?></h6>
|
|
</div>
|
|
<div class="card-body p-4">
|
|
<div class="mb-4">
|
|
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Actes") ?> <span class="text-danger">*</span></label>
|
|
<select class="form-select border-2 shadow-none" id="actVisibleUser" name="actVisibleUser" required>
|
|
<?php liste_options($user_actVisible, ""); ?>
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="form-label small fw-bold text-muted"><?= _("Voir Libellés Affections") ?> <span class="text-danger">*</span></label>
|
|
<select class="form-select border-2 shadow-none" id="AffectionVisibleUser" name="AffectionVisibleUser" required>
|
|
<?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">
|
|
<div class="col-md-4">
|
|
<label class="form-label small fw-bold text-muted"><?= _("Login (Identifiant)") ?> <span class="text-danger">*</span></label>
|
|
<input class="form-control border-2 fw-bold text-lowercase" type="text" id="codeUtilisateur" name="codeUtilisateur"
|
|
onChange="this.value=supprimer_espace_string(this.value);" required placeholder="ex: skone">
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="form-label small fw-bold text-muted"><?= _("Mode de Génération") ?> <span class="text-danger">*</span></label>
|
|
<select class="form-select border-2" id="codeModeGenerationPass" name="codeModeGenerationPass" onChange="ajax_saisir_pass_new_user();" required>
|
|
<?php liste_options($modegenerationpass, $codeModeGenerationPass, false); ?>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="form-label small fw-bold text-muted"><?= _("Mode d'Envoi") ?> <span class="text-danger">*</span></label>
|
|
<select class="form-select border-2" id="codeModeEnvoiPass" name="codeModeEnvoiPass" required>
|
|
<?php liste_options($modeenvoipass, $codeModeEnvoiPass, false); ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div id="div_passwd" class="col-12 mt-3">
|
|
<?php if ($codeModeGenerationPass == "0"): ?>
|
|
<div class="row g-2">
|
|
<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"><?= _("Confirmation") ?></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>
|
|
|
|
<div class="col-lg-12 mb-5">
|
|
<div class="card border-0 shadow-sm bg-light">
|
|
<div class="card-body d-flex justify-content-between align-items-center py-3">
|
|
<div id="div_unicite_login">
|
|
<input type="hidden" id="uniciteLogin" name="uniciteLogin" value="0">
|
|
</div>
|
|
|
|
<div class="d-flex gap-2 ms-auto">
|
|
<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") ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|