prestation/Vue/Modifierreseausoins/index.php
2025-12-01 18:54:33 +00:00

92 lines
3.9 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Modification Réseau";
$total = count($prestataires);
?>
<input class="sr-only" type="text" id="idReseau" name="idReseau" value="<?= $this->nettoyer($reseau['id']) ?>" >
<legend> <?= _("Anciennes valeurs") ?> </legend>
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="10%" > Code </td>
<td width="10%" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" value="<?=$this->nettoyer($reseau['codeReseau'])?>" readonly ></td>
<td width="10%" align="center" > <?= _("Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" value="<?=$this->nettoyer($reseau['libelle'])?>" readonly ></td>
<td width="10%" align="center" > <?= _("T M") ?> </td>
<td width="10%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control" type="number" value="<?=$this->nettoyer($reseau['tm'])?>" readonly ></td>
</tr>
</tbody>
</table>
<legend> <?= _("Nouvelles valeurs") ?> </legend>
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="10%" > Code </td>
<td width="10%"><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="codeReseau" NAME="codeReseau" value="<?=$this->nettoyer($reseau['codeReseau'])?>" readonly ></td>
<td width="10%" align="center" > <?= _("Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="libelle" NAME="libelle" value="<?=$this->nettoyer($reseau['libelle'])?>" ></td>
<td width="10%" align="center" > <?= _("T M") ?> </td>
<td width="10%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control" type="number" id="tm" NAME="tm" value="<?= $this->nettoyer($reseau['tm']) ?>" ></td>
</tr>
<tr>
<td> </td>
<td colspan="2" > <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_modif_reseaus();" style='font-size:10pt;' > </td>
<td> </td>
<td colspan="2" > <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_liste_reseaus();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
<div id="div_liste">
<fieldset>
<table class="table table-condensed table-responsive">
<tbody>
<tr>
<td align='center' width="75%"><h3> <?= _("Liste des prestataires du Réseau") ?> </h3></td>
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbligne" name="nbligne" value="Lignes : <?= $total?>" readonly> </td>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt; width:100%">
<thead>
<tr>
<th style='text-align:center'> <?= _("No") ?> </th>
<th style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Nom") ?> </th>
<th style='text-align:center'>Catégorie</th>
<td style='text-align:center'> <?= _("Type") ?> </td>
<th style='text-align:center'> <?= _("Ville") ?> </th>
</tr>
</thead>
<tbody>
<?php
$i = 0;
foreach ($prestataires as $v):
$idData = $this->nettoyer($v['id']);
?>
<tr valign="top">
<td align='center'> <?= ++$i; ?> </td>
<td align='center'><?= $this->nettoyer($v['codePrestataire']) ?></td>
<td><?= $this->nettoyer($v['libelle']) ?></td>
<td align='center'> <?= $this->nettoyer($v['categoriePresataire'])=='C' ? 'Centre' : 'Prestataire'; ?> </td>
<td align='center'> <?= $this->nettoyer($v['typeprestataire']) ?> </td>
<td> <?= $this->nettoyer($v['localite']) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>