prestation/Vue/Ajaxproduitreseau/afficherreseaucategorie.php
2025-12-05 10:42:46 +00:00

73 lines
3.0 KiB
PHP
Executable File

<div id="div_produitreseau">
<div class="row">
<div id="div_adherents_importes_1" class="col-6" >
<legend> <?= _("Réseaux Non Accessibles") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Réseau") ?> </th>
<th width="20%" style='text-align:center'> <?= _("T M") ?> </th>
<th style='text-align:center'> => </th>
</tr>
<tr>
<th colspan="3"> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:ajouter_tous_reseaus_produit();" > <?= _("Ajouter tous"). " ==>" ?> </button> </th>
</tr>
</thead>
<tbody>
<?php foreach ($reseausnonaccessibles as $reseausnonaccessible):
$codeReseau = $reseausnonaccessible['codeReseau'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($reseausnonaccessible['libelle']) ?></td>
<td align='center'><?= $this->nettoyer($reseausnonaccessible['tm']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_reseau_produit('<?=$codeReseau?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_adherents_importes_2" class="col-6" >
<legend> <?= _("Réseaux Accessibles") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Réseau") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("T M") ?> </th>
</tr>
<tr>
<td colspan="4"> <button type="button" style="font-size:10pt;" class="form-control btn btn-danger" onclick="javascript:retirer_tous_reseau_produit();" > <?= "<== " . _("Retirer tous les réseaux") ?> </button> </td>
</tr>
</thead>
<tbody>
<?php foreach ($reseausaccessibles as $reseausaccessible):
$codeReseau = $reseausaccessible['codeReseau'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_reseau_produit('<?=$codeReseau?>');" ></td>
<td align='center'><?= $this->nettoyer($reseausaccessible['reseausoin']) ?></td>
<td <th width="15%" align='center'><?= $this->nettoyer($reseausaccessible['tm']) ?></td>
<td <th width="15%" >
<INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="number" value="<?= $this->nettoyer($reseausaccessible['tm']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_tm_produit_reseau('<?=$codeReseau?>', this.value);}">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>