prestation/Vue/Listeutilisateur/index.php
2025-12-05 10:42:46 +00:00

63 lines
2.4 KiB
PHP
Executable File

<?php $this->titre = "INTER-SANTE - Liste Utilisateurs"; ?>
<legend> <?= _("Liste Utilisateurs") ?> </legend>
<INPUT class="sr-only" TYPE="text" id="idLigne" name="idLigne">
<INPUT class="sr-only" TYPE="text" id="nomtable" name="nomtable" value="utilisateur">
<table style="padding: 0px" class="table-responsive">
<tbody>
<tr valign="top">
<td>
<form class="form-horizontal col-12" method="post" action="Listeutilisateur/">
<div class="row">
<div class="form-group">
<label for="codesearch" class="col-1 control-label"> Code </label>
<div class="col-2">
<input type="text" class="form-control" id="codesearch" name="codesearch" value="<?=$codesearch?>">
</div>
<label for="nomsearch" class="col-1 control-label"> <?= _("Nom") ?> </label>
<div class="col-3">
<input type="text" class="form-control" id="nomsearch" name="nomsearch" value="<?=$nomsearch?>">
</div>
<label for="prenomsearch" class="col-1 control-label"> <?= _("Prénoms") ?> </label>
<div class="col-2">
<input type="text" class="form-control" id="prenomsearch" name="prenomsearch" value="<?=$prenomsearch?>">
</div>
<div class="col-2">
<input type="submit" value="<?= _("Rechercher") ?>" >
</div>
</div>
</div>
</form>
</td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive">
<thead>
<tr>
<th>Code</th>
<th> <?= _("Nom") ?> </th>
<th> <?= _("Prénoms") ?> </th>
<th> </th>
</tr>
</thead>
<tbody>
<?php foreach ($utilisateurs as $utilisateur):?>
<tr ondblclick="javascript:selectionner_ligne_Tb(<?= $this->nettoyer($utilisateur['id']) ?>);modifier_utilisateur();" onclick="javascript:selectionner_ligne_Tb(<?= $this->nettoyer($utilisateur['id']) ?>);" valign="top">
<td width="10%" ><?= $this->nettoyer($utilisateur['codeUtilisateur']) ?></td>
<td><?= $this->nettoyer($utilisateur['nom']) ?></td>
<td><?= $this->nettoyer($utilisateur['prenoms']) ?></td>
<td><button class = "form-control btn btn-danger btn-xs" type="button" onClick="supprimer_utilisateur('<?= $this->nettoyer($utilisateur['id']) ?>','<?= $this->nettoyer($utilisateur['nom']).' '.$this->nettoyer($utilisateur['prenoms']) ?>');">X</button></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>