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

40 lines
2.0 KiB
PHP
Executable File

<?php
// $this->titre = "INTER-SANTE - Liste des tarifs Medicaments";
$adminSin = $_SESSION['adminSin'];
?>
<div id="div_lister_table">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th> <?= _("Désignation") ?> </th>
<th style="text-align:center" > <?= _("Modifier") ?> </th>
<!-- <th style="text-align:center" > <?= _("Importer") ?> </th> -->
<th style="text-align:center" > <?= _("Archiver") ?> </th>
<th style="text-align:center" > <?= _("Supprimer") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($tarifs as $tarif):
$idTarif = $this->nettoyer($tarif['id']);
$libelleTarif = $tarif['libelle']." (".$tarif['codeTarifActe'].")";
if (est_anglophone())
{
$libelleTarif = $tarif['libelleEng']." (".$tarif['codeTarifActe'].")";
}
?>
<tr valign="top">
<td><?= $libelleTarif ?></td>
<td align="center"> <input class = "form-control btn btn-primary" style="font-size:10pt;" type="button" value="<?= _("Modifier") ?>" onClick="javascript:modifier_tarif_actes(<?= $idTarif ?>);"> </td>
<?php if($adminSin=="1") : ?>
<td align="center"> <input class = "form-control btn btn-info" style="font-size:10pt;" type="button" value="<?= _("Archiver") ?>" onClick="javascript:archiver_tarif_actes(<?= $idTarif ?>);"> </td>
<td align="center"> <input class = "form-control btn btn-danger" style="font-size:10pt;" type="button" value="<?= _("Supprimer") ?>" onClick="javascript:supprimer_tarif_actes(<?= $idTarif ?>);"> </td>
<?php else: ?>
<td align="center"> <input class = "form-control btn btn-info" style="font-size:10pt;" type="button" value="<?= _("Archiver") ?>" disabled > </td>
<td align="center"> <input class = "form-control btn btn-danger" style="font-size:10pt;" type="button" value="<?= _("Supprimer") ?>" disabled > </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>