86 lines
3.7 KiB
PHP
86 lines
3.7 KiB
PHP
<?php
|
|
$this->titre = "INTER SANTE - Modifier Utilisateur";
|
|
|
|
$idClient = $this->nettoyer($user_rh['idClient']);
|
|
$idUtilisateur = $user_rh['id'];
|
|
$codeUtilisateur = $user_rh['codeUtilisateur'];
|
|
$actif = $user_rh['actif'];
|
|
|
|
//var_dump($actif);
|
|
$codeProfil = $user_rh['codeProfil'];
|
|
$codeLangue = $user_rh['codeLangue'];
|
|
?>
|
|
|
|
<div id="div_liste" class="container-fluid py-2 animate__animated animate__fadeIn">
|
|
<input class="sr-only" type="text" id="idUtilisateur" value="<?= $idUtilisateur ?>">
|
|
<input class="sr-only" type="text" id="idClient" value="<?= $idClient ?>">
|
|
<input class="sr-only" type="text" id="actif" value="<?= $actif ?>">
|
|
|
|
<legend>
|
|
<?= _("Modifier l'utilisateur") . " : " . $codeUtilisateur ?>
|
|
|
|
<?php if($actif == "1"): ?>
|
|
<span class="badge" style="background-color:green; color:white;">
|
|
<?= _("Actif") ?>
|
|
</span>
|
|
<?php else: ?>
|
|
<span class="badge" style="background-color:red; color:white;">
|
|
<?= _("Bloqué") ?>
|
|
</span>
|
|
<?php endif; ?>
|
|
</legend>
|
|
|
|
|
|
<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_rh['nom']) ?>" required autofocus AUTOCOMPLETE="OFF"></td>
|
|
|
|
<td width="10%" align="center" class="required"> <?= _("Prénoms") ?> </td>
|
|
<td ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="prenoms" NAME="prenoms" value="<?= $this->nettoyer($user_rh['prenoms']) ?>" required AUTOCOMPLETE="OFF"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Profil") ?> </td>
|
|
<td>
|
|
<SELECT style="font-size:10pt;" class="form-control" id="codeProfil" NAME="codeProfil" autofocus >
|
|
<?php liste_options($user_profil, $codeProfil, true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center" class="required"> <?= _("Langue") ?> </td>
|
|
<td>
|
|
<select class="form-control" id="codeLangueUser" name="codeLangueUser">
|
|
<?php liste_options($langue, $codeLangue, true); ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="required"> <?= _("Portable") ?> </td>
|
|
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?= $this->nettoyer($user_rh['telephone']) ?>" AUTOCOMPLETE="OFF" required></td>
|
|
|
|
<td align="center" class="required"> E-mail </td>
|
|
<td ><INPUT style='font-size:10pt;' class="form-control" TYPE="email" id="email" NAME="email" value="<?= $this->nettoyer($user_rh['email']) ?>" placeholder="E-mail" AUTOCOMPLETE="OFF" required></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td></td>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-warning" onClick="retour_a_users_rh_client();">
|
|
<?= _("Annuler") ?>
|
|
</button>
|
|
</td>
|
|
<td></td>
|
|
<td>
|
|
<button type="button" id="btn_enreg" class="form-control btn btn-primary" onClick="enregistrer_modif_user_rh();">
|
|
<?= _("Enregistrer les modifications") ?>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|