production/Vue/Importassuredevis/index.php
2025-12-02 11:29:44 +00:00

116 lines
5.3 KiB
PHP
Executable File

<?php $this->titre = "INTER-SANTE - Import assurés"; ?>
<div id="div_listeprospects" style="height:100%; background-color: #ff00ff; text-align:center; color: white; font-weight:bold; font-size: 14pt;">
<?= _("GESTION DES COTATIONS") ?>
</div>
<div id="div_police">
<fieldset>
<legend> <?= _("Cotation") . " N° : " . $this->nettoyer($police['numeroPolice']) . " => ID : ". $this->nettoyer($police['idPolice'])?> </legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" > <?= _("Prospect") ?> </td>
<td colspan="3" > <INPUT class="form-control" TYPE="text" id="nomClient" name="nomClient" value="<?= $_SESSION['nomClient_d_C'] ?>" readonly ></td>
<td width="10%" align="center"> <?= _("No Cotation") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="numeroPolice" NAME="numeroPolice" value="<?= $this->nettoyer($police['numeroPolice']) ?>" readonly></td>
</tr>
<tr>
<td> <?= _("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>
<td align="center"> <?= _("Système") ?> </td>
<td><INPUT class="form-control" TYPE="text" id="dateCre" NAME="dateCre" value="<?= dateheureLang($this->nettoyer($police['dateSysteme']), $_SESSION['lang']) ?>" readonly></td>
</tr>
</tbody>
</table>
</fieldset>
</div>
<input class="sr-only" type="text" id="numeroOptionTarif" name="numeroOptionTarif" value="<?= $_SESSION['numeroOptionTarif'] ?>">
<legend> Actions => Option <?= $_SESSION['numeroOptionTarif']." => "._("Importation des assurés à partir d'un fichier Excel") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:exporter_modele_assure();"> <?= _("1 => Obtenir Fichier Modèle") ?> </button> </td>
<td></td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:charger_fichier_modele_assure();"> <?= _("2 => Charger Fichier Renseigné") ?> </button> </td>
<td>
<?php if(isset($fichierimport['etape2']) && $fichierimport['etape2']=='1'): ?>
<input id="etape2" NAME="etape2" style='width: 28px; height: 28px;' type="checkbox" checked value="<?php echo $fichierimport['etape2'] ; ?>" disabled >
<?php else: ?>
<input id="etape2" NAME="etape2" style='width: 28px; height: 28px;' type="checkbox" value="0" disabled >
<?php endif; ?>
</td>
<td></td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:importer_modele_assure_d();"> <?= _("3 => Importer") ?> </button> </td>
<td>
<?php if(isset($fichierimport['etape3']) && $fichierimport['etape3']=='1'): ?>
<input id="etape3" NAME="etape3" style='width: 28px; height: 28px;' type="checkbox" checked value="<?php echo $fichierimport['etape3'] ; ?>" disabled >
<?php else: ?>
<input id="etape3" NAME="etape3" style='width: 28px; height: 28px;' type="checkbox" value="0" disabled >
<?php endif; ?>
</td>
<td></td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:traiter_lignes_importees_d();"> <?= _("4 => Traiter Importations") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_exporter_liste_assures">
</div>
<div id="div_form_upload" style="display: none">
<form enctype="multipart/form-data" action="Importassuredevis" method="post">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Document") ?> </td>
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
<td> </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
</tr>
</tbody>
</table>
</form>
</div>
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
<INPUT style='font-size:14pt; color:green; text-align:center;' class="form-control" type="text" value="<?= $msgErreur ?>" readonly >
<?php endif; ?>
<?php if(isset($fichierimport['nomOrigine'])): ?>
<INPUT style='font-size:14pt; color:green; text-align:center;' class="form-control" type="text" value="<?= _('FICHIER A UTILISER').' => '.$this->nettoyer($fichierimport['nomOrigine']) ?>" readonly disabled >
<?php endif; ?>
<?php if(isset($fichierimport['cheminFichier'])): ?>
<input class="sr-only" type="text" id="cheminFichier" name="cheminFichier" value="<?= $this->nettoyer($fichierimport['cheminFichier']) ?>">
<?php endif; ?>
<div id="div_erreur_excel" class="alert alert-danger" >
<input class="sr-only" type="text" id="succes_impot_execl" name="succes_impot_execl" value="0">
</div>