sert
This commit is contained in:
parent
92c4abcace
commit
4c270f1c31
45
Controleur/ControleurFicheuserrhclient.php
Normal file
45
Controleur/ControleurFicheuserrhclient.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Client.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Ouinon.php';
|
||||
require_once 'Modele/Langue.php';
|
||||
|
||||
class ControleurFicheuserrhclient extends Controleur {
|
||||
private $menuvue;
|
||||
private $client;
|
||||
private $langue;
|
||||
private $oui_non;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Ficheuserrhclient");
|
||||
|
||||
$this->client = new Client();
|
||||
$this->oui_non = new Ouinon();
|
||||
$this->langue = new Langue();
|
||||
}
|
||||
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idUtilisateur = $this->requete->getParametreFormulaire("id");
|
||||
$user_actif = $this->oui_non->getListe();
|
||||
$user_actVisible = $this->oui_non->getListe();
|
||||
$langue = $this->langue->getListe();
|
||||
$user_AffectionVisible = $this->oui_non->getListe();
|
||||
|
||||
$user_rh = $this->client->getunuserrhclient($idUtilisateur);
|
||||
$user_profil = $this->client->getListeProfilRh();
|
||||
|
||||
$this->genererVue(array(
|
||||
'user_rh' => $user_rh,
|
||||
'user_actif' => $user_actif,
|
||||
'user_actVisible' => $user_actVisible,
|
||||
'langue' => $langue,
|
||||
'user_AffectionVisible' => $user_AffectionVisible,
|
||||
'user_profil' => $user_profil
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
@ -44838,4 +44838,9 @@ function activer_user_rh_client(codeUtilisateur)
|
|||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function afficher_users_client_id(idUtilisateur)
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Ficheuserrhclient/"+idUtilisateur+"/");
|
||||
}
|
||||
100
Vue/Ficheuserrhclient/index.php
Normal file
100
Vue/Ficheuserrhclient/index.php
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
<?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'];
|
||||
$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 ?>">
|
||||
|
||||
<h1 class="text-primary"><i class="fas fa-user-edit me-2"></i> <?= _("Modifier l'utilisateur") ?></h1>
|
||||
|
||||
<div >
|
||||
<h5 class="badge bg-secondary mb-0 fw-bold">
|
||||
<span class="fw-normal text-dark-50"><?= $codeUtilisateur ?></span>
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
<div class="card shadow border-0">
|
||||
<div class="card-body p-2">
|
||||
<form id="form_modif_user">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12 mb-2">
|
||||
<h6 class="text-primary text-uppercase small fw-bold border-bottom pb-2">
|
||||
<i class="fas fa-id-card me-2"></i><?= _("Informations Personnelles") ?>
|
||||
</h6>
|
||||
</div>
|
||||
<div class="col-md-6 mb-2">
|
||||
<label class="form-label small fw-bold required text-uppercase"><?= _("Nom") ?></label>
|
||||
<input type="text" id="nom" name="nom" class="form-control shadow-sm"
|
||||
value="<?= $this->nettoyer($user_rh['nom']) ?>" required autocomplete="off" autofocus>
|
||||
</div>
|
||||
<div class="col-md-6 mb-2">
|
||||
<label class="form-label small fw-bold text-uppercase"><?= _("Prénoms") ?></label>
|
||||
<input type="text" id="prenoms" name="prenoms" class="form-control shadow-sm"
|
||||
value="<?= $this->nettoyer($user_rh['prenoms']) ?>">
|
||||
</div>
|
||||
<div class="col-md-6 mb-2">
|
||||
<label class="form-label small fw-bold required text-uppercase"><?= _("Téléphone") ?></label>
|
||||
<div class="input-group shadow-sm">
|
||||
<span class="input-group-text"><i class="fas fa-phone"></i></span>
|
||||
<input type="tel" id="telephone" name="telephone" class="form-control"
|
||||
value="<?= $this->nettoyer($user_rh['telephone']) ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mb-2">
|
||||
<label class="form-label small fw-bold required text-uppercase"><?= _("E-mail") ?></label>
|
||||
<div class="input-group shadow-sm">
|
||||
<span class="input-group-text"><i class="fas fa-envelope"></i></span>
|
||||
<input type="email" id="email" name="email" class="form-control"
|
||||
value="<?= $this->nettoyer($user_rh['email']) ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-2">
|
||||
<div class="col-12 mb-2">
|
||||
<h6 class="text-primary text-uppercase small fw-bold border-bottom pb-2">
|
||||
<i class="fas fa-cog me-2"></i><?= _("Paramètres du Compte") ?>
|
||||
</h6>
|
||||
</div>
|
||||
<div class="col-md-4 mb-2">
|
||||
<label class="form-label small fw-bold text-uppercase"><?= _("Profil / Rôle") ?></label>
|
||||
<select class="form-select shadow-sm fw-bold border-info-subtle" id="codeProfil" name="codeProfil">
|
||||
<?php liste_options($user_profil, $codeProfil, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 mb-2">
|
||||
<label class="form-label small fw-bold text-uppercase"><?= _("En activité ?") ?></label>
|
||||
<select class="form-select shadow-sm" id="actif" name="actif">
|
||||
<?php liste_options($user_actif, $actif, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 mb-2">
|
||||
<label class="form-label small fw-bold text-uppercase"><?= _("Langue préférée") ?></label>
|
||||
<select class="form-select shadow-sm" id="codeLangueUser" name="codeLangueUser">
|
||||
<?php liste_options($langue, $codeLangue, true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-4">
|
||||
<div class="col-12 d-flex justify-content-end gap-2">
|
||||
<button type="button" class="btn btn-light border px-4 shadow-sm fw-bold" onClick="retour_a_users_rh_client();">
|
||||
<i class="fas fa-arrow-left me-2"></i><?= _("Annuler") ?>
|
||||
</button>
|
||||
<button type="button" id="btn_enreg" class="btn btn-primary px-5 shadow-sm fw-bold" onClick="enregistrer_modif_user_rh();">
|
||||
<i class="fas fa-save me-2"></i><?= _("Enregistrer les modifications") ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue
Block a user