production/Vue/Ajaxprestatairetm/index.php
2025-12-01 16:12:12 +00:00

86 lines
3.4 KiB
PHP
Executable File

<div id="div_complet">
<input class="sr-only" id="idCollege" name="idCollege" type="text" value="<?= $_SESSION['idCollege'] ?>">
<table class="table table-condensed table-responsive" style='font-size:10pt;'>
<tbody>
<tr valign="top">
<td width="8%" align='center'> <?= _("TM") ?> </td>
<td><INPUT class="form-control" style='font-size:10pt;' value="<?= $this->nettoyer($college['ticketModerateurCollege']) ?>" readonly ></td>
</tr>
</tbody>
</table>
<div class="row">
<div id="div_reseau" class="col-5" style="padding-right:1px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
<thead>
<tr>
<th width="90%" style='text-align:center'> <?= _("Prestataires du réseau")." (".count($prestatairereseaus).")" ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairereseaus as $prestatairereseau):
$codePrestataire=$this->nettoyer($prestatairereseau['codePrestataire']);
?>
<tr valign="top">
<td ><?= $this->nettoyer($prestatairereseau['prestataire']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_prestataire_tm('<?=$codePrestataire?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_prestataires_en_plus" class="col-7" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:10pt;">
<thead>
<tr>
<th width="5%" style='text-align:center'> <= </th>
<th width="45%" style='text-align:center'> <?= _("Prestataires")." (".count($prestatairetms).")" ?> </th>
<th width="15%" style='text-align:center'> <?= _("Garantie") ?> </th>
<!--<th width="30%" style='text-align:center'> <?= _("Affection") ?> </th>-->
<th width="10%" style='text-align:center'> <?= _("T M") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestatairetms as $prestatairetm):
$idPrestation=$this->nettoyer($prestatairetm['id']);
$codeGarantie=$this->nettoyer($prestatairetm['codeGarantie']);
$codeAffection=$this->nettoyer($prestatairetm['codeAffection']);
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_un_prestataire_tm('<?=$idPrestation?>');" ></td>
<td ><?= $this->nettoyer($prestatairetm['prestataire']) ?></td>
<td>
<select class="form-select" onchange="javascript:ajax_maj_garantie_tm('<?=$idPrestation?>', this.value, this);">
<?= liste_options_consultation($garanties,$codeGarantie) ?>
</select>
</td>
<!--
<td>
<select class="form-select" onchange="javascript:ajax_maj_affection_tm('<?=$idPrestation?>', this.value, this);">
<?= liste_options_consultation($affections,$codeAffection) ?>
</select>
</td>
-->
<td>
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestatairetm['tm']) ?>"
onBlur="javascript:ajax_maj_tm_tm('<?=$idPrestation?>', this.value, this);">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>