radiantproduction/Vue/Usersrhclient/index.php
2026-01-22 20:09:53 +00:00

73 lines
2.8 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") ?> </h1>
<h5 >
<span ><?= $nomClient ?></span>
</h5>
<div >
<span>
<?= count($users) ?> <?= _("comptes") ?>
</span>
</div>
<div >
<div class="table-responsive">
<table class="table table-hover">
<thead class="table-light">
<tr >
<th class="ps-4" width="12%"><?= _("Identifiant") ?></th>
<th width="20%"><?= _("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 class="text-center pe-4" width="12%"><?= _("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>
<?= $this->nettoyer($user_client['utilisateur']) ?>
</td>
<td class="text-center">
<?= strtoupper($codeLangue) ?>
</td>
<td class="text-center">
<?= $this->nettoyer($libelleProfil) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>