dr
This commit is contained in:
parent
56911b2589
commit
8154e043d5
81
Vue/Usersrhclient/index.php
Executable file
81
Vue/Usersrhclient/index.php
Executable file
|
|
@ -0,0 +1,81 @@
|
|||
<?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>
|
||||
|
||||
26
radiantproduction/Controleur/ControleurUsersrhclient.php
Executable file
26
radiantproduction/Controleur/ControleurUsersrhclient.php
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Client.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurUsersrhclient extends Controleur {
|
||||
private $menuvue;
|
||||
private $gc;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Usersrhclient");
|
||||
|
||||
$this->client = new Client();
|
||||
|
||||
}
|
||||
public function index() {
|
||||
$idClient = $_SESSION['idClient_C'];
|
||||
|
||||
$client = $this->client->getClientId($idClient);
|
||||
|
||||
$users = $this->client->getusersrhclient($idClient);
|
||||
|
||||
$this->genererVue(array('client' => $client, 'users' => $users));
|
||||
}
|
||||
}
|
||||
|
|
@ -287,4 +287,13 @@ class Client extends Modele {
|
|||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getusersrhclient($idClient)
|
||||
{
|
||||
$sql = 'call sp_c_get_users_rh(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idClient));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user