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

83 lines
3.6 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Importer tarif médicaments";
$idTarif = $this->nettoyer($tarif['idTarif']);
$codeTarifMedicament = $this->nettoyer($tarif['codeTarifMedicament']);
?>
<legend> <?= _("Importer tarif médicaments") ?> </legend>
<input class="sr-only" type="text" id="idTarif" name="idTarif" value="<?= $idTarif ?>" >
<input class="sr-only" type="text" id="codeTarifMedicament" name="idTarif" value="<?= $codeTarifMedicament ?>" >
<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_tarif_medicament();"> <?= _("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($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="<?php echo $fichierimport['etape2'] ; ?>" disabled >
<?php endif; ?>
</td>
<td></td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:importer_modele_tarif_medicament();"> <?= _("3 => Traiter le fichier") ?> </button> </td>
<td>
<?php if($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="<?php echo $fichierimport['etape3'] ; ?>" disabled >
<?php endif; ?>
</td>
<td></td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:traiter_medicaments_importes();"> <?= _("4 => Traiter Importations") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_exporter_tarif">
</div>
<div id="div_form_upload" style="display: none">
<form enctype="multipart/form-data" action="Importertarifmedicament/<?= $idTarif ?>" 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; ?>
<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 >
<input class="sr-only" type="text" id="cheminFichier" name="cheminFichier" value="<?= $this->nettoyer($fichierimport['cheminFichier']) ?>">
<div id="div_erreur_excel">
</div>