radiantrh/Vue/Usersrhclient/index.php
2026-01-13 18:11:46 +00:00

82 lines
4.2 KiB
PHP
Executable File

<?php
$this->titre = "INTER SANTE - Liste Utilisateurs portail RH";
$idClient = $this->nettoyer($client['idClient']);
$nomClient = $this->nettoyer($client['nomClient']);
?>
<script type="text/javascript">
</script>
<input class="sr-only" type="text" id="idClient" name="idClient" value="<?= $idClient ?>" >
<div id="div_liste">
<fieldset>
<legend> <?= _("Utilisateurs du portail RH") . " : " . $nomClient ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center' width="15%">Login</th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center' width="8%"> <?= _("Langue") ?> </th>
<th style='text-align:center'> <?= _("Ré-Init Mot de Passe") ?> </th>
<th style='text-align:center'> <?= _("Activer / Désactiver") ?> </th>
<th style='text-align:center'> <?= _("Actes visibles?") ?> </th>
<th style='text-align:center'> <?= _("Affections Visibles?") ?> </th>
<th style='text-align:center' width="10%"> <?= _("Action") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($users as $user_client):
$idUtilisateur = $user_client['idUtilisateur'];
$codeUtilisateur = $user_client['codeUtilisateur'];
$actif = $user_client['actif'];
$actVisible = $user_client['actVisible'];
$AffectionVisible = $user_client['AffectionVisible'];
$reInit = $user_client['reInit'];
$codeLangue = $user_client['codeLangue'];
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($user_client['codeUtilisateur']) ?> </td>
<td align='center'> <?= $this->nettoyer($user_client['utilisateur']) ?></td>
<td align='center'> <?= $codeLangue ?> </td>
<?php if($reInit==1): ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Ré-Init Mot de Passe") ?>" onClick="javascript:reinitpaswd_client('<?= $codeUtilisateur ?>');"></td>
<?php else: ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Ré-Init Mot de Passe") ?>" onClick="javascript:reinitpaswd_client('<?= $codeUtilisateur ?>');"></td>
<?php endif; ?>
<?php if($actif==1): ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Désactiver") ?>" onClick="javascript:desactiver_user_client('<?= $codeUtilisateur ?>');"></td>
<?php else: ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Activer") ?>" onClick="javascript:activer_user_client('<?= $codeUtilisateur ?>');"></td>
<?php endif; ?>
<?php if($actVisible==1): ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Oui => Désactiver?") ?>" onClick="javascript:gerer_acces_actes_client('<?= $codeUtilisateur ?>', '<?= $actVisible ?>');"></td>
<?php else: ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Non => Activer?") ?>" onClick="javascript:gerer_acces_actes_client('<?= $codeUtilisateur ?>', '<?= $actVisible ?>');"></td>
<?php endif; ?>
<?php if($AffectionVisible==1): ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= _("Oui => Désactiver?") ?>" onClick="javascript:gerer_acces_affection_client('<?= $codeUtilisateur ?>', '<?= $AffectionVisible ?>');"></td>
<?php else: ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Non => Activer?") ?>" onClick="javascript:gerer_acces_affection_client('<?= $codeUtilisateur ?>', '<?= $AffectionVisible ?>');"></td>
<?php endif; ?>
<td>
<input class = "form-control btn btn-info" type="button" value="<?= _("Modifier") ?>" onClick="javascript:afficher_users_client_id(<?= $idUtilisateur ?>);" style='font-size:9pt;' >
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id ="div_export_a">
</div>