135 lines
7.1 KiB
PHP
Executable File
135 lines
7.1 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER SANTE - Utilisateurs RH";
|
|
$idClient = $this->nettoyer($client['idClient']);
|
|
$nomClient = $this->nettoyer($client['nom']);
|
|
?>
|
|
|
|
<input type="hidden" id="idClient" value="<?= $idClient ?>">
|
|
|
|
<div id="div_liste" class="container-fluid">
|
|
|
|
<h1 class="text-primary" style="margin-bottom: 20px;">
|
|
<span class="glyphicon glyphicon-user" style="margin-right: 10px;"></span>
|
|
<?= _("Utilisateurs Portail RH") ?>
|
|
</h1>
|
|
|
|
<div class="panel panel-default" style="border-radius: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
|
|
|
<div class="panel-heading" style="background-color: #fff; padding: 15px;">
|
|
<div class="row">
|
|
<div class="col-xs-8">
|
|
<h4 class="panel-title" style="font-weight: bold; font-size: 18px;">
|
|
<span style="color: #777; font-weight: normal;"><?= $nomClient ?></span>
|
|
</h4>
|
|
</div>
|
|
<div class="col-xs-4 text-right">
|
|
<span class="label label-primary" style="padding: 5px 12px; border-radius: 10px; font-size: 12px;">
|
|
<?= count($users) ?> <?= _("comptes") ?>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover table-striped table-bordered" style="font-size: 12px; vertical-align: middle;">
|
|
<thead>
|
|
<tr >
|
|
<th style="padding-left: 20px;" 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" style="padding-right: 20px;" 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'];
|
|
$libelleProfil = est_anglophone() ? $user_client['profilEng'] : $user_client['profil'];
|
|
?>
|
|
<tr>
|
|
<td style="padding-left: 20px; vertical-align: middle;">
|
|
<strong style="color: #337ab7; background: #eef4f9; padding: 2px 6px; border-radius: 3px; font-family: monospace;">
|
|
<?= $this->nettoyer($codeUtilisateur) ?>
|
|
</strong>
|
|
</td>
|
|
|
|
<td style="vertical-align: middle;">
|
|
<div style="font-weight: bold; color: #333;"><?= $this->nettoyer($user_client['utilisateur']) ?></div>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<span class="label label-default" style="border: 1px solid #ccc; color: #333; background: #fff;">
|
|
<?= strtoupper($codeLangue) ?>
|
|
</span>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<span class="label label-info" style="font-weight: normal;">
|
|
<span class="glyphicon glyphicon-eye-open" style="font-size: 10px; margin-right: 4px;"></span>
|
|
<?= $this->nettoyer($libelleProfil) ?>
|
|
</span>
|
|
</td>
|
|
|
|
<td class="text-center" style="vertical-align: middle;">
|
|
<?php if($actif === 1): ?>
|
|
<button class="btn btn-xs btn-success"
|
|
style="border-radius: 15px; padding: 2px 10px; font-weight: bold;"
|
|
onClick="desactiver_user_rh_client('<?= $codeUtilisateur ?>');">
|
|
<span class="glyphicon glyphicon-ok-sign"></span> <?= _("Actif") ?>
|
|
</button>
|
|
<?php else: ?>
|
|
<button class="btn btn-xs btn-danger"
|
|
style="border-radius: 15px; padding: 2px 10px; font-weight: bold;"
|
|
onClick="activer_user_rh_client('<?= $codeUtilisateur ?>');">
|
|
<span class="glyphicon glyphicon-ban-circle"></span> <?= _("Bloqué") ?>
|
|
</button>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td class="text-center" style="padding-right: 20px; vertical-align: middle;">
|
|
<div class="btn-group">
|
|
<button class="btn btn-default btn-sm"
|
|
title="<?= _("Modifier") ?>"
|
|
onClick="afficher_users_client_id(<?= $idUtilisateur ?>);">
|
|
<span class="glyphicon glyphicon-pencil"></span>
|
|
</button>
|
|
<button class="btn btn-default btn-sm"
|
|
style="<?= ($reInit === 1) ? 'color: #a94442; font-weight: bold;' : '' ?>"
|
|
title="<?= _("Ré-initialiser mot de passe") ?>"
|
|
onClick="reinitpaswd_user_rh('<?= $codeUtilisateur ?>');">
|
|
<span class="glyphicon glyphicon-lock"></span>
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="panel-footer" style="background-color: #fff; color: #777; font-size: 12px;">
|
|
<span class="glyphicon glyphicon-info-sign"></span>
|
|
<?= _("Les comptes bloqués ne peuvent plus se connecter au portail.") ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* Correction pour l'alignement vertical Bootstrap 3 */
|
|
.table > tbody > tr > td {
|
|
vertical-align: middle !important;
|
|
}
|
|
|
|
/* Animation simple car animate.css n'était pas standard à l'époque */
|
|
.animate-fade {
|
|
animation: fadeIn 0.4s ease-in;
|
|
}
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; } to { opacity: 1; }
|
|
}
|
|
</style>
|