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

53 lines
2.0 KiB
PHP
Executable File

<?php $this->titre = "INTER-SANTE - Liste Profils utilisateurs"; ?>
<legend> <?= _("Liste Profils utilisateurs") ?> </legend>
<INPUT class="sr-only" TYPE="text" id="idLigne" name="idLigne">
<INPUT class="sr-only" TYPE="text" id="nomtable" name="nomtable" value="profil">
<table style="padding: 0px" class="table-responsive">
<tbody>
<tr valign="top">
<td>
<form class="form-horizontal col-12" method="post" action="Listeprofil/">
<div class="row">
<div class="form-group">
<label for="codesearch" class="col-1 control-label"> Code </label>
<div class="col-3">
<input type="text" class="form-control" id="codesearch" name="codesearch" value="<?=$codesearch?>">
</div>
<label for="libellesearch" class="col-2 control-label"> <?= _("Libellé") ?> </label>
<div class="col-5">
<input type="text" class="form-control" id="libellesearch" name="libellesearch" value="<?=$libellesearch?>">
</div>
<div class="col-1">
<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> <?= _("Libellé") ?> </th>
<th> </th>
</tr>
</thead>
<tbody>
<?php foreach ($profils as $profil):?>
<tr ondblclick="javascript:selectionner_ligne_Tb(<?= $this->nettoyer($profil['id']) ?>);modifier_profil();" onclick="javascript:selectionner_ligne_Tb(<?= $this->nettoyer($profil['id']) ?>);" valign="top">
<td width="20%" ><?= $this->nettoyer($profil['codeProfil']) ?></td>
<td><?= $this->nettoyer($profil['libelle']) ?></td>
<td><button class = "form-control btn btn-danger btn-xs" type="button" onClick="supprimer_profil('<?= $this->nettoyer($profil['id']) ?>','<?= $this->nettoyer($profil['libelle']) ?>');">X</button></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>