405 lines
19 KiB
PHP
Executable File
405 lines
19 KiB
PHP
Executable File
<?php
|
|
// $this->titre = "INTER SANTE - Modification Police";
|
|
$superUser = $_SESSION['superUser'];
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$typeContrat = $police['typeContratEng'];
|
|
$typeAvenant = $police['typeAvenantEng'];
|
|
$etatPolice = $police['etatPoliceEng'];
|
|
$periodicite = $police['periodicite_en'];
|
|
}
|
|
else
|
|
{
|
|
$typeContrat = $police['typeContrat'];
|
|
$typeAvenant = $police['typeAvenant'];
|
|
$etatPolice = $police['etatPolice'];
|
|
$periodicite = $police['periodicite_fr'];
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="nomForm" NAME="nomForm" value="modifierPolice" readonly>
|
|
|
|
<div id="div_fichepolice">
|
|
<fieldset>
|
|
<legend> <?= _("Informations Police") ?> </legend>
|
|
<table class="table table-responsive table-condensed">
|
|
<tbody>
|
|
<tr>
|
|
<td width="12%"> <?= _("Client") ?> </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" id="nomClient" name="nomClient" value="<?= $_SESSION['nomClient_C'] ?>" readonly ></td>
|
|
|
|
<td width="19%" align="center"> <?= _("No Police") ?> </td>
|
|
<td width="15%"><INPUT class="form-control" TYPE="text" id="numeroPolice" NAME="numeroPolice" value="<?= $this->nettoyer($police['numeroPolice']) ?>" readonly></td>
|
|
|
|
<td width="15%" align="center"><?= _("Tarif Actes") ?></td>
|
|
<td >
|
|
<select class="form-select" disabled>
|
|
<?= liste_options($tarifActe,$police['codeTarifActe'],false) ?>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td> <?= _("Gestionnaire") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control majuscule" TYPE="text" id="codeSocieteOld" NAME="codeSocieteOld" value="<?=$_SESSION['nomSociete']?>" readonly>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Taux Commission Primes (%)") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="number" id="tauxCommissionGerantOld" NAME="tauxCommissionGerantOld" readonly value="<?= $this->nettoyer($police['tauxCommissionGerant']) ?>">
|
|
</td>
|
|
|
|
<td width="11%" align="center"><?= _("Rembourser à")?></td>
|
|
<td width="23%"><select class="form-select" disabled>
|
|
<?= liste_options($arembourser,$police['codeArembourser'],true) ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> <?= _("Garant") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="garantOld" NAME="garantOld" value="<?= $this->nettoyer($police['garant']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Taux Commission Provision/Sinistres (%)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="tauxCommissionGarantOld" NAME="tauxCommissionGarantOld" value="<?= $this->nettoyer($police['tauxCommissionGcAssureur']) ?>" readonly></td>
|
|
|
|
<td width="10%" align="center"><?= _("No Police Garant")?></td>
|
|
<td width="23%"><INPUT class="form-control" TYPE="text" id="numeroPoliceGarantOld" NAME="numeroPoliceGarantOld" value="<?= $this->nettoyer($police['numeroPoliceGarant']) ?>" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Courtier") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="apporteurOld" NAME="apporteurOld" value="<?= $this->nettoyer($police['apporteur']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Taux Courtier (%)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="tauxCommissionOld" NAME="tauxCommissionOld" value="<?= $this->nettoyer($police['tauxCommission']) ?>" readonly></td>
|
|
|
|
<td align="center">Type</td>
|
|
<td width="23%"><INPUT class="form-control" TYPE="text" id="typeContrat" NAME="typeContrat" value="<?= $typeContrat ?>" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Commercial") ?> </td>
|
|
<td> <INPUT class="form-control" TYPE="text" id="commercialOld" NAME="commercialOld" value="<?= $this->nettoyer($police['commercial']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Taux Commercial (%)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="tauxCommissionAutreOld" NAME="tauxCommissionAutreOld" value="<?= $this->nettoyer($police['tauxCommissionAutre']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Rachat TM") ?> </td>
|
|
<td>
|
|
<?php if ($police['rachatTm']=="1"): ?>
|
|
<INPUT class="form-control" TYPE="text" id="rachattmOld" NAME="rachattmOld" value="<?= _("Oui") ?>" readonly>
|
|
<?php else: ?>
|
|
<INPUT class="form-control" TYPE="text" id="rachattmOld" NAME="rachattmOld" value="<?= _("Non") ?>" readonly>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Etat") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="etatPolice" NAME="etatPolice" value="<?= $etatPolice ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Date Effet") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="dateEffet" NAME="dateEffet" value="<?= dateLang($this->nettoyer($police['dateEffet'])) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Echéance") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="dateEcheance" NAME="dateEcheance" value="<?= dateLang($this->nettoyer($police['dateEcheance'])) ?>" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Dernier Avenant") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="typeAvenant" NAME="typeAvenant" value="<?= $typeAvenant ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Date Avenant") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="dateAvenant" NAME="dateAvenant" value="<?= dateLang($this->nettoyer($police['dateAvenant'])) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("No Avenant") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="gestionnaire" NAME="gestionnaire" value="<?= $this->nettoyer($police['numeroAvenant']) ?>" readonly></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> (%) </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="tauxTaxe" NAME="tauxTaxe" value="<?= $this->nettoyer($police['tauxTaxe']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("No Devis") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="dateFin" NAME="dateFin" value="<?= $this->nettoyer($police['numeroDevis']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Délai Carence") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="delaiCarencePoliceOld" NAME="delaiCarencePoliceOld" value="<?= $this->nettoyer($police['delaiCarencePolice']) ?>" readonly ></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Référencement?") ?> </td>
|
|
<td>
|
|
<?php if ($police['avecReferencement']=="1"): ?>
|
|
<INPUT class="form-control" TYPE="text" id="avecReferencementOld" NAME="avecReferencementOld" value="<?= _("Oui") ?>" readonly>
|
|
<?php else: ?>
|
|
<INPUT class="form-control" TYPE="text" id="avecReferencementOld" NAME="avecReferencementOld" value="<?= _("Non") ?>" readonly>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Taux Référencé (%)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="tauxAvecReferencementOld" NAME="tauxAvecReferencementOld" value="<?= $this->nettoyer($police['tauxAvecReferencement']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Taux Non Référencé (%)") ?> </td>
|
|
<td> <INPUT class="form-control" id="tauxSansReferencementOld" NAME="tauxSansReferencementOld" TYPE="text" value="<?= $this->nettoyer($police['tauxSansReferencement']) ?>" readonly ></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td > <?= _("Nom Police") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" id="libellePoliceOld" NAME="libellePoliceOld" readonly value="<?= $this->nettoyer($police['libellePolice']) ?>">
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Appliquer Tarif Garant?") ?> </td>
|
|
<td >
|
|
<select class="form-select" disabled>
|
|
<?php liste_options($ouinontarifgarant,$police['appliquerTarifGarant'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Check up") ?> </td>
|
|
<td >
|
|
<select class="form-select" disabled >
|
|
<?php liste_options($Checkup,$police['Checkup']); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Type Remboursement") ?> </td>
|
|
<td ><INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($police['codeTypeRemboursement']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Seuil RD (%)") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="seuilRdPoliceOld" NAME="seuilRdPoliceOld" TYPE="text" value="<?= $this->nettoyer($police['seuilRdPolice']) ?>" readonly></td>
|
|
|
|
<td align="center"> <?= _("Plafond Police") ?> </td>
|
|
<td><INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($police['plafondPolice'])) ?>" readonly></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="6"> <button type="button" class="form-control btn btn-info" onclick="javascript:texte_cp();" > <?= _("Texte Condition Particulière...") ?> </button> </td>
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<form method="post" action="Modifierpolice/modifier/<?= $this->nettoyer($police['id']) ?>/">
|
|
<INPUT class="sr-only" TYPE="text" id="codeEtape" name="codeEtape" value="<?= $_SESSION['codeEtape_C'] ?>">
|
|
<fieldset>
|
|
<legend> <?= _("Nouvelles valeurs") ?> </legend>
|
|
<table class="table table-responsive table-condensed">
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%"> <?= _("Gestionnaire") ?> </td>
|
|
<td width="10%" >
|
|
<INPUT class="form-control majuscule" TYPE="text" id="codeSociete" NAME="codeSociete" value="<?=$_SESSION['nomSociete']?>" readonly>
|
|
</td>
|
|
|
|
<td align="center" width="22%" class="required"> <?= _("Garant") ?> </td>
|
|
<td colspan="3">
|
|
<select class="form-control selectpicker" data-live-search="true" id="codeGcAssureur" NAME="codeGcAssureur" value="<?= $this->nettoyer($police['codeGcAssureur']) ?>" required AUTOCOMPLETE="OFF" onChange="javascript:selectionTauxGarant();">
|
|
<?php liste_options($garants, $police['codeGcAssureur'],true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="required"> <?= _("Taux Commission Primes (%)") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="number" id="tauxCommissionGerant" NAME="tauxCommissionGerant" required AUTOCOMPLETE="OFF" value="<?= isset($_SESSION['tauxHonoraires']) ? number_format($_SESSION['tauxHonoraires'],2) : 0; ?>" step="1" min="0" max="100">
|
|
</td>
|
|
|
|
|
|
<td width="10%" align="center" > <?= _("Taux Commission Provision/Sinistres (%)") ?> </td>
|
|
<td colspan="3"><INPUT class="form-control" TYPE="number" id="tauxCommissionGcAssureur" NAME="tauxCommissionGcAssureur" value="<?= number_format($this->nettoyer($police['tauxCommissionGcAssureur']),2); ?>" min="0" max="100"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("No Police Garant") ?> </td>
|
|
<td > <INPUT class="form-control" id="numeroPoliceGarant" NAME="numeroPoliceGarant" TYPE="text" value="<?= $this->nettoyer($police['numeroPoliceGarant']) ?>"></td>
|
|
|
|
<td align="center"> <?= _("Mode Prorata") ?> </td>
|
|
<td width="12%">
|
|
<select class="form-select" name="codeModeProrata" id="codeModeProrata">
|
|
<?= liste_options($modeprorata,$police['codeModeProrata'],false) ?>
|
|
</select>
|
|
</td>
|
|
|
|
|
|
<td align="center" width="12%"> <?= _("Plafond") ?> </td>
|
|
<td width="15%">
|
|
<INPUT style='font-size:10pt;' class="form-control" type="text" value="<?= format_N($this->nettoyer($police['plafondPolice'])) ?>" id="plafondPolice" NAME="plafondPolice"
|
|
onfocus="javascript:formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="10%" class="required"> <?= _("Courtier") ?> </td>
|
|
<td width="25%">
|
|
<select class="form-select" id="codeApporteur" NAME="codeApporteur" value="<?= $this->nettoyer($police['codeApporteur']) ?>" required AUTOCOMPLETE="OFF" onChange="ajaxcommission();">
|
|
<?php liste_options($apporteur, $police['codeApporteur'],true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td class="required" align="center"> <?= _("Commercial") ?> </td>
|
|
<td colspan="3">
|
|
<select class="form-select" id="codeCommercial" NAME="codeCommercial" onChange="ajaxcommissionautre()" required AUTOCOMPLETE="OFF">
|
|
<?php liste_options($commercial,$this->nettoyer($police['codeCommercial']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="10%"> <?= _("Taux Courtier (%)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="number" id="tauxCommission" NAME="tauxCommission" value="<?= number_format($this->nettoyer($police['tauxCommission']),2); ?>" min="0" max="100"> </td>
|
|
|
|
<td width="10%" align="center" > <?= _("Taux Commercial (%)") ?> </td>
|
|
<td colspan="3"><INPUT class="form-control" TYPE="number" id="tauxCommissionAutre" NAME="tauxCommissionAutre" value="<?= number_format($this->nettoyer($police['tauxCommissionAutre']),2); ?>" min="0" max="100"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Suspendre si taux atteint?") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="speciale" NAME="speciale" >
|
|
<?php liste_options($police_speciale,$this->nettoyer($police['speciale']), true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align="center"> <?= _("Taux Ristourne (%)") ?> </td>
|
|
<td colspan="3"> <INPUT class="form-control" id="tauxRistourne" NAME="tauxRistourne" TYPE="number" value="<?= $this->nettoyer($police['tauxRistourne']) ?>" min="0" max="100"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Taux suspension (%)") ?> </td>
|
|
<td> <INPUT class="form-control" id="limiteConsommation" NAME="limiteConsommation" TYPE="number" value="<?= $this->nettoyer($police['limiteConsommation']) ?>" min="0" max="100" ></td>
|
|
|
|
<td align="center"> <?= _("Remplacer Famille?") ?> </td>
|
|
<td colspan="3">
|
|
<select class="form-select" id="remplacementAdherent" NAME="remplacementAdherent" >
|
|
<?php liste_options($remplacement_adherent,$this->nettoyer($police['remplacementAdherent']), true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Délai Carence (Jour)") ?> </td>
|
|
<td><INPUT class="form-control" TYPE="text" id="delaiCarencePolice" NAME="delaiCarencePolice" value="<?= $this->nettoyer($police['delaiCarencePolice']) ?>" ></td>
|
|
|
|
<td align="center"> <?= _("Rembourser à") ?> </td>
|
|
<td colspan="3"><select class="form-select" name="codeArembourser" id="codeArembourser" required AUTOCOMPLETE="OFF">
|
|
<?= liste_options($arembourser,$police['codeArembourser'],false) ?>
|
|
</select></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Rachat Ticket Modérateur?") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="rachattm" NAME="rachattm" >
|
|
<?php liste_options($rachattm,$this->nettoyer($police['rachatTm']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"><?= _("Tarif Actes") ?></td>
|
|
<td colspan="3">
|
|
<select name="codeTarifActe" id="codeTarifActe" class="form-control selectpicker" data-live-search="true" >
|
|
<?= liste_options($tarifActe,$police['codeTarifActe'],false) ?>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td > <?= _("Référencement ?") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="avecReferencement" NAME="avecReferencement" onChange="taux_referencement();" >
|
|
<?php liste_options($ouinonreferencement,$this->nettoyer($police['avecReferencement']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align="center"><?= _("Référencé (%)") ?> </td>
|
|
<td width="8%"><INPUT class="form-control" id="tauxAvecReferencement" NAME="tauxAvecReferencement" TYPE="number" value="<?= $this->nettoyer($police['tauxAvecReferencement']) ?>" min="0" max="100"></td>
|
|
<td align="center" ><?= _("Non Référencé (%)") ?> </td>
|
|
<td width="8%"><INPUT class="form-control" id="tauxSansReferencement" NAME="tauxSansReferencement" TYPE="number" value="<?= $this->nettoyer($police['tauxSansReferencement']) ?>" min="0" max="100"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Nom Police") ?> </td>
|
|
<td ><INPUT class="form-control majuscule" TYPE="text" id="libellePolice" NAME="libellePolice" value="<?= $this->nettoyer($police['libellePolice']) ?>"></td>
|
|
|
|
<td align="center"> <?= _("Appliquer Tarif Garant?") ?> </td>
|
|
<td >
|
|
<select class="form-select" id="appliquerTarifGarant" NAME="appliquerTarifGarant" >
|
|
<?php liste_options($ouinontarifgarant,$police['appliquerTarifGarant'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Check up") ?> </td>
|
|
<td >
|
|
<select class="form-select" id="Checkup" NAME="Checkup" >
|
|
<?php liste_options($Checkup,$police['Checkup']); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<td > <?= _("Seuil RD (%)") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="seuilRdPolice" NAME="seuilRdPolice" TYPE="number" value="<?= $this->nettoyer($police['seuilRdPolice']) ?>" min="0" max="100"></td>
|
|
|
|
<td align='center'> <?= _("Type Remboursement") ?> </td>
|
|
<td colspan="3">
|
|
<SELECT style="font-size:10pt;" class="form-control selectpicker" data-live-search="true" id="codeTypeRemboursement" NAME="codeTypeRemboursement">
|
|
<?php liste_options($typeremboursement, $this->nettoyer($police['codeTypeRemboursement']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php if ($superUser=="1"): ?>
|
|
<tr>
|
|
<td >
|
|
<?= _("Encaissement Prime Exigé ?") ?>
|
|
</td>
|
|
<td>
|
|
<select class="form-select" id="encaissementExige" NAME="encaissementExige" >
|
|
<?php liste_options($prestationPossibleOuinon,$this->nettoyer($police['encaissementExige']),true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align="center"></td>
|
|
<td colspan="3"><INPUT class="form-control" disabled></td>
|
|
|
|
</tr>
|
|
<?php else: ?>
|
|
<INPUT class="sr-only" TYPE="text" id="encaissementExige" NAME="encaissementExige" value="<?= $this->nettoyer($police['encaissementExige']) ?>" readonly>
|
|
<?php endif; ?>
|
|
|
|
<tr>
|
|
<td colspan="6" style="height:30px; background-color:white;"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="6"> <input class = "form-control btn btn-primary" type="submit" value="<?= _("Enregistrer") ?>" /> </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
|
|
<div id="gccomm" style="display: none">
|
|
<input type="number" id="tauxCommissionGcAssureur_info" name="tauxCommissionGcAssureur_info" value="<?= $tauxCommissionGcAssureur_info ?>">
|
|
</div>
|
|
|
|
<div id="infocomm" style="display: none">
|
|
<input type="number" id="tauxCommission_info" name="tauxCommission_info" value="<?= $tauxCommission_info ?>">
|
|
<input type="text" id="deduireComm_info" name="deduireComm_info" value="<?= $deduireComm_info ?>">
|
|
</div>
|
|
|
|
<div id="infocommautre" style="display: none">
|
|
<input type="number" id="tauxCommissionautre_info" name="tauxCommissionautre_info" value="0">
|
|
</div>
|
|
</form>
|