prestation/Vue/Ajaxactesexclusparproduit/afficheractesproduit.php
2025-12-05 10:42:46 +00:00

61 lines
2.2 KiB
PHP
Executable File

<div id="div_actesproduit">
<div id="div_non_exclus">
<legend class="text-center"> <?= _("Non exclu") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Acte ")."(".count($actes_non_exclus).")"; ?> </th>
<th width="10%" style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="2"> <button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_actesexclus_produit();" > <?= _("Ajouter tous"). " ==>" ?> </button></th>
</tr>
</thead>
<tbody>
<?php foreach ($actes_non_exclus as $v):
$codeActe = $v['codeActe'];
?>
<tr valign="top">
<td align='left'><?= $this->nettoyer($v['acte']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_acteexclu_produit('<?=$codeActe?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_exclus">
<legend class="text-center"> <?= _("Exclus") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <= </th>
<th align='center'> <?= _("Acte ")."(".count($actes_exclus).")"; ?> </th>
</tr>
<tr>
<td colspan="6"> <button type="button" style="font-size:10pt; width:100%;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_actesexclus_produit();" > <?= "<== " . _("Retirer tous") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($actes_exclus as $v):
$idActe = $v['id'];
$codeActe = $v['codeActe'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_acteexclu_produit(<?=$idActe?>);" ></td>
<td align='left'><?= $this->nettoyer($v['acte']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>