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

86 lines
3.5 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Modification Réseau";
$total = count($prestataires);
?>
<input class="sr-only" type="text" id="idGroupe" name="idGroupe" value="<?= $this->nettoyer($groupe['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($groupe['codeGroupePrestataire'])?>" readonly ></td>
<td width="10%" align="center" > <?= _("Libellé") ?> </td>
<td><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" value="<?=$this->nettoyer($groupe['libelle'])?>" 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="codeGroupePrestataire" NAME="codeGroupePrestataire" value="<?=$this->nettoyer($groupe['codeGroupePrestataire'])?>" readonly ></td>
<td width="10%" align="center" class="required" > <?= _("Libellé") ?> </td>
<td colspan="2"><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></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_groupeprestataire();" style='font-size:10pt;' > </td>
<td> </td>
<td width="30%"> <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_liste_groupeprestataire();" 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 Groupe") ?> </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" 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>