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

88 lines
3.9 KiB
PHP
Executable File

<?php $this->titre = "INTER SANTE - Modification Produit";
$codeModecalculPrime = $produit['codeModecalculPrime'];
?>
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="modifierproduit" >
<input class="sr-only" type="text" id="idProduit" name="idProduit" value="<?= $this->nettoyer($produit['idProduit']) ?>" >
<input class="sr-only" type="text" id="codeGcAssureur" NAME="codeGcAssureur" value="<?= $this->nettoyer($produit['codeGcAssureur']) ?>" >
<input class="sr-only" type="text" id="codeModecalculPrime" NAME="codeModecalculPrime" value="<?= $this->nettoyer($produit['codeModecalculPrime']) ?>" >
<legend> <?= _("Modifier Produit") ?> </legend>
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="5%"> Code </td>
<td width="15%"><INPUT class="form-control" TYPE="text" id="codeProduit" NAME="codeProduit" value="<?= $this->nettoyer($produit['codeProduit']) ?>" readonly></td>
<td width="8%" align="center" class="required"> <?= _("Nom") ?> </td>
<td ><INPUT style="font-size:10pt;" class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($produit['libelle']) ?>" autofocus></td>
<td align="center" > <?= _("Plafond Famille") ?> </td>
<td ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="plafondAdherent" NAME="plafondAdherent" required AUTOCOMPLETE="OFF" onfocus="javascript:formatNumerique(this);"
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" value="<?= format_N($this->nettoyer($produit['plafondAdherent'])) ?>"></td>
</tr>
<tr>
<td class="required"> <?= _("Etat") ?> </td>
<td >
<SELECT style="font-size:10pt;" class="form-select" id="codeEtatProduit" NAME="codeEtatProduit" required AUTOCOMPLETE="OFF">
<?php liste_options($etatproduit,$this->nettoyer($produit['codeEtatProduit']),true); ?>
</SELECT>
</td>
<td align="center"> <?= _("Garant") ?> </td>
<td width="45%">
<SELECT style="font-size:10pt;" class="form-control" disabled>
<?php liste_options($garant,$this->nettoyer($produit['codeGcAssureur'])); ?>
</SELECT>
</td>
<td align="center"> <?= _("Mode Calcul Prime") ?> </td>
<td width="16%">
<SELECT style="font-size:10pt; height:30px;" class="form-control" disabled>
<?php liste_options($calculprime,$this->nettoyer($produit['codeModecalculPrime']),false); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
<div id="div_modeprime" style="margin-bottom:10px;">
<?php if($codeModecalculPrime=="TA"): ?>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" class="required"><?= _("Type Tranche Âge")?></td>
<td >
<select class="form-control selectpicker" data-live-search="true" id="codeEnteteTrancheAge" NAME="codeEnteteTrancheAge" required AUTOCOMPLETE="OFF" autofocus onChange="javascript:trancheage();" style="font-size:12pt;">
<?php liste_options($typesTranches,$this->nettoyer($produit['codeEnteteTrancheAge'])); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
<div id="div_trancheage" class="col-md-12">
</div>
<?php else: ?>
<div id="div_prime_lienparente" class="col-md-12">
</div>
<?php endif; ?>
</div>
<table class="table table-responsive table-condensed table-bordered" style="font-size:12pt;">
<tbody>
<tr style='background-color:white'>
<td > <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_modif_produit();" style='font-size:10pt;' > </td>
<td > </td>
<td > <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_liste_produits();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>