prestation/Vue/Ajaxcomposantetarifoptique/listeverres.php
2025-12-05 10:42:46 +00:00

43 lines
1.6 KiB
PHP
Executable File

<?php
$adminSin = $_SESSION['adminSin'];
?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt; paddind:0px;">
<thead>
<tr>
<th colspan="2" style='text-align:center'> <?= _("Désignation") ?> </th>
<th width="8%" style='text-align:center'> <?= _("Actif?") ?> </th>
<th style='text-align:center'> <?= _("Modif") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($verres as $verre):
$idVerre = $this->nettoyer($verre['id']);
$codeOptique = $verre['codeOptique'];
$actif = $verre['actif'];
$libelleVerre = $this->nettoyer($verre['libelle']);
if (est_anglophone())
{
$libelleVerre = $this->nettoyer($verre['libelleEng']);
}
?>
<tr valign="top">
<td width="10%" align='center'><?= $codeOptique ?></td>
<td><?= $libelleVerre ?></td>
<?php if ($actif=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled style='font-size:8pt;' ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled style='font-size:8pt;' ></td>
<?php endif; ?>
<?php if($adminSin=="1") : ?>
<td> <input class = "form-control btn btn-info" type="button" value="<?= _("Modif") ?>" onClick="javascript:modifier_un_verre(<?= $idVerre ?>);" style='font-size:8pt;' > </td>
<?php else: ?>
<td> <input class = "form-control btn btn-info" type="button" value="<?= _("Modif") ?>" disabled style='font-size:8pt;' > </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>