101 lines
4.7 KiB
PHP
Executable File
101 lines
4.7 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER SANTE - Utilisateurs RH";
|
|
$idClient = $this->nettoyer($client['idClient']);
|
|
$nomClient = $this->nettoyer($client['nom']);
|
|
?>
|
|
|
|
<input class="sr-only" type="text" id="idClient" value="<?= $idClient ?>">
|
|
|
|
<div id="div_liste">
|
|
<h1 class="text-primary"><?= _("Utilisateurs Portail RH") ?>: <?= $nomClient ?></h1>
|
|
|
|
<div style="margin-bottom:5px;">
|
|
<div>
|
|
<span class="badge bg-white">
|
|
<?= count($users) ?> <?= _("comptes") ?>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div >
|
|
<div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="12%" class="text-center"><?= _("Identifiant") ?></th>
|
|
<th width="20%" class="text-center"><?= _("Nom Complet") ?></th>
|
|
<th class="text-center" width="8%"><?= _("Langue") ?></th>
|
|
<th class="text-center" width="15%"><?= _("Profil / Rôle") ?></th>
|
|
<th class="text-center" width="15%"><?= _("Statut") ?></th>
|
|
<th colspan= "2" class="text-center"><?= _("Actions") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($users as $user_client):
|
|
$idUtilisateur = $user_client['idUtilisateur'];
|
|
$codeUtilisateur = $user_client['codeUtilisateur'];
|
|
$actif = (int)$user_client['actif'];
|
|
$reInit = (int)$user_client['reInit'];
|
|
$codeLangue = $user_client['codeLangue'];
|
|
|
|
// Gestion multilingue du profil
|
|
$libelleProfil = est_anglophone() ? $user_client['profilEng'] : $user_client['profil'];
|
|
?>
|
|
<tr>
|
|
<td class="ps-4">
|
|
<code class="text-primary fw-bold bg-primary bg-opacity-10 px-2 py-1 rounded">
|
|
<?= $this->nettoyer($codeUtilisateur) ?>
|
|
</code>
|
|
</td>
|
|
|
|
<td>
|
|
<div class="fw-bold text-dark"><?= $this->nettoyer($user_client['utilisateur']) ?></div>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<span class="badge border text-dark bg-white shadow-xs fw-bold">
|
|
<?= strtoupper($codeLangue) ?>
|
|
</span>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<span class="badge bg-info-subtle text-info border border-info-subtle px-2 py-1">
|
|
<i class="fas fa-user-shield me-1 small"></i><?= $this->nettoyer($libelleProfil) ?>
|
|
</span>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<?php if($actif === 1): ?>
|
|
<button class="btn btn-success"
|
|
onClick="desactiver_user_rh_client('<?= $codeUtilisateur ?>');">
|
|
<?= _("Actif") ?>
|
|
</button>
|
|
<?php else: ?>
|
|
<button class="btn btn-danger"
|
|
onClick="activer_user_rh_client('<?= $codeUtilisateur ?>');">
|
|
<?= _("Bloqué") ?>
|
|
</button>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<button class="btn btn-warning"
|
|
onClick="afficher_users_client_id(<?= $idUtilisateur ?>);">
|
|
<?= _("Modifier") ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td class="text-center">
|
|
<button class="btn btn-info" style="<?= ($reInit == 1) ? 'color:red' : '' ?>"
|
|
onClick="reinitpaswd_user_rh('<?= $codeUtilisateur ?>');">
|
|
<?= _("Ré-initialiser") ?>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|