radiantprestation/Vue/Feuillemaladie/index.php

535 lines
26 KiB
PHP

<div id="div_feuillemaladie">
<?php
$this->titre = "INTER-SANTE - Feuille Maladie";
$facture = $feuillemaladie['facture'];
$numeroDerogation = $feuillemaladie['numeroDerogation'];
$numeroDerogationFinger = $feuillemaladie['numeroDerogationFinger'];
$nb_notefeuillemaladie = $feuillemaladie['nb_notefeuillemaladie'];
$idFactureFeuille = $feuillemaladie['idFactureFeuille'];
$agePrescription = $this->nettoyer($feuillemaladie['agePrescription']);
$bonCaduc = $this->nettoyer($feuillemaladie['bonCaduc']);
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
if($modeSaisieFacture=="1")
{
$bonCaduc = "0";
}
$actVisible = $_SESSION['p_actVisible'];
$AffectionVisible = $_SESSION['p_AffectionVisible'];
$codeTypeAffection = $this->nettoyer($feuillemaladie['codeTypeAffection']);
$codeAffection = $this->nettoyer($feuillemaladie['codeAffection']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffectionEng'])." => ".$codeAffection;
}
else
{
$libelleAffection = $this->nettoyer($feuillemaladie['libelleAffection'])." => ".$codeAffection;
}
if($AffectionVisible!="1")
{
$libelleAffection = $codeAffection;
}
$controlerPlafondAdherent = ($_SESSION['p_controlerPlafondAdherent']>0);
$controlerPlafondBeneficiaire = ($_SESSION['p_controlerPlafondBeneficiaire']>0);
$faceRegistered = $this->nettoyer($feuillemaladie['faceRegistered']);
$fingerActif = $_SESSION['p_fingerActif'];
$faceActif = $_SESSION['p_faceActif'];
?>
<script type="text/javascript">
</script>
<INPUT class="sr-only" TYPE="text" id="facturerConsommable" name="facturerConsommable" value="<?= $_SESSION['p_facturerConsommable'] ?>">
<INPUT class="sr-only" TYPE="text" id="affectionObligatoire" name="affectionObligatoire" value="<?= $_SESSION['p_affectionObligatoire'] ?>">
<input class="sr-only" type="text" id="codeAffection" name="codeAffection" value="<?= $this->nettoyer($feuillemaladie['codeAffection']) ?>" >
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($feuillemaladie['fraisRetenu']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($feuillemaladie['fraisReel']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($feuillemaladie['montantTm']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?>" >
<input class="sr-only" type="text" id="codeutilisateur" name="codeutilisateur" value="<?= $_SESSION['p_login'] ?>" >
<input class="sr-only" type="text" id="numOrd" name="numOrd" value="<?= $this->nettoyer($feuillemaladie['numeroBonOrdonnance']) ?>" >
<input class="sr-only" type="text" id="noPrescription" name="noPrescription" value="<?= $this->nettoyer($feuillemaladie['noPrescription']) ?>" >
<button class="sr-only" id="btn_imprimer_feuille_maladie" name="btn_imprimer_feuille_maladie" type="button" data-toggle="modal" data-target="#pop_imprimer_feuille_maladie" style='font-size:10pt;' > </button>
<input class="sr-only" type="text" id="idFactureFeuille" name="idFactureFeuille" value="<?= $this->nettoyer($feuillemaladie['idFactureFeuille']) ?>" >
<input class="sr-only" type="text" id="faceRegistered" name="faceRegistered" value="<?= $this->nettoyer($feuillemaladie['faceRegistered']) ?>" >
<button class="sr-only" id="btn_pop_confirm_face" name="btn_pop_confirm_face" type="button" data-toggle="modal" data-target="#pop_rec_faciale" > </button>
<div id="div_wait_face">
</div>
<input style='text-align:center; font-size:11pt;' class="form-control" type="text"
value= "<?= _("Feuille Maladie"). " No : " . $feuillemaladie['numeroFeuilleMaladie'] . " => Notes => " . $nb_notefeuillemaladie . " => User => " . $feuillemaladie['codeUtilisateur'] ?>" readonly >
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
<tbody>
<tr>
<td width="8%" > <?= _("Consultation") ?> </td>
<td width="17%" > <INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($feuillemaladie['dateConsultation'])) ?>" readonly> </td>
<td width="8%" align="center"> <?= _("Date Surv") ?> </td>
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($feuillemaladie['dateSurvenance'])) ?>" readonly></td>
<td width="8%" align="center"> <?= _("Date Système") ?> </td>
<td width="17%" ><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= dateheureLang($this->nettoyer($feuillemaladie['dateSysteme']), $_SESSION['p_lang']) ?>" readonly ></td>
<td width="8%" align="center"> <?= _("Cons / Ord") ?> </td>
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonConsultation'] ?> </td>
<td width="1%"> </td>
<td width="8%" align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonOrdonnance'] ?> </td>
</tr>
<tr>
<td> <?= _("Méd Consul") ?> </td>
<td colspan="3"><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['medecinConsultation'] ?>" readonly ></td>
<td align="center"> <?= _("Raison Cons") ?> </td>
<td><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $feuillemaladie['raisonconsultation'] ?>" readonly ></td>
<td align="center"> <?= _("Exam / Kine") ?> </td>
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonExamen'] ?> </td>
<td width="1%"> </td>
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonKine'] ?> </td>
</tr>
<tr>
<td> <?= _("Frais") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?>" readonly ></td>
<td align="center" > <?= _("T M") ?> </td>
<td><INPUT style='font-size:10pt; color:red;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?>" readonly ></td>
<td align="center"> <?= _("A Remb") ?> </td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?>" readonly ></td>
<td align="center"> <?= _("Opt / Hosp") ?> </td>
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonOptique'] ?> </td>
<td width="1%"> </td>
<td align="center" style='font-size:10pt; background-color:blue;color:white;'> <?= $feuillemaladie['numeroBonHospitalisation'] ?> </td>
</tr>
<tr>
<td> <?= _("Retenu") ?> </td>
<td><INPUT style='font-size:10pt; color:blue;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisRetenu'])) ?>" readonly ></td>
<td align="center"> <?= _("Observat") ?> </td>
<td colspan="3"><INPUT style='font-size:8pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($feuillemaladie['observations']) ?>" readonly ></td>
<td align="center"> <?= _("Dép / Ass") ?> </td>
<td><INPUT style='font-size:10pt; color:red;text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisExclu'])) ?>" readonly ></td>
<td width="1%"> </td>
<td><INPUT style='font-size:10pt; color:red;text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($feuillemaladie['fraisAssure'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("Affection") ?> </td>
<td colspan="5">
<?php if ($facture=="1"): ?>
<INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= $libelleAffection ?>" readonly >
<?php elseif($bonCaduc!="1"): ?>
<?php if($codeAffection<="0000"): ?>
<button id="btn_pop_affection" name="btn_pop_affection" type="button" class="form-control btn btn-warning" data-toggle="modal" data-target="#popRechercheAffection" style='font-size:10pt;' ><span id="libelleAffection" name="libelleAffection"> <?= $libelleAffection ?> </span></button>
<?php else: ?>
<button id="btn_pop_affection" name="btn_pop_affection" type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popRechercheAffection" style='font-size:10pt;' ><span id="libelleAffection" name="libelleAffection"> <?= $libelleAffection ?> </span></button>
<?php endif; ?>
<?php else: ?>
<INPUT type="text" disabled class="form-control" style='font-size:10pt;' value="<?= $libelleAffection ?>" readonly>
<?php endif; ?>
</td>
<td align="center"> <?= _("IdFacture") ?> </td>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= $feuillemaladie['idFactureFeuille'] ?>" readonly > </td>
<td> </td>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= $feuillemaladie['userFacturation'] ?>" readonly > </td>
</tr>
</tbody>
</table>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<?php if ($facture=="1"): ?>
<!--
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4><?= _("Dejà facturée !") ?></H4>
</div>
-->
<button style='font-size:12pt;' type="button" class="form-control btn btn-primary" onclick="javascript:imprimer_facture_feuille_maladie('<?= $idFactureFeuille ?>',);"> <?= _("Dejà facturée !") . " => " . _("Imprimer la facture") ?> </button>
<?php else: ?>
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;">
<tbody>
<tr>
<?php if($controlerPlafondAdherent): ?>
<td width="8%"> <?= _("Limite Fam") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondAdherent']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td> <INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentNew']) ?>" readonly ></td>
<?php endif; ?>
<?php if($controlerPlafondBeneficiaire): ?>
<td align="center" width="8%"> <?= _("Limite Indiv") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondBeneficiaire']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireNew']) ?>" readonly ></td>
<?php endif; ?>
</tr>
</tbody>
</table>
<?php if($bonCaduc=="0" or $modeSaisieFacture==1) : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4><?= _("Non facturée !") ?></H4>
</div>
<?php else: ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= _("Non facturée !")." Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php endif; ?>
<?php endif; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th width="10%" style="text-align:center"> Date </th>
<th width="38%" colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
<th width="20%" style="text-align:center" > <?= _("Médecin") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="3%" style="text-align:center"> <?= _("Suppr") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="6" style='text-align:center'> <?= _("Total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?></td>
<td></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($prestations as $prestation):
$idPrestationactes = $this->nettoyer($prestation['id']);
$supprimable = $prestation['supprimable'];
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
$autorisation = $this->nettoyer($prestation['autorisation']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
}
else
{
$libelleActe = $this->nettoyer($prestation['libelleActe']);
}
$codeActe = $this->nettoyer($prestation['codeActe']);
if($actVisible!="1")
{
$libelleActe = $codeActe;
}
?>
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
<td align='center'> <?= $codeTypePrestation ?> </td>
<td align='center'> <?= $libelleActe ?> </td>
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
<?php if ($supprimable=="0"): ?>
<td> </td>
<?php else: ?>
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_acte_medical('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="10" height="8"></td>
</tr>
</tbody>
</table>
<?php if ($facture=="0"): ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Par tête?") ?> </th>
</tr>
<tr>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantieadherent_temp as $garantieadherent):
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
<?php if($champApplication=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<div id="div_fraisExclu">
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="<?= $this->nettoyer($feuillemaladie['fraisExclu']) ?>" >
</div>
<div id="loadingDiv" style="display: none">
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?> </span></div></div>
</div>
<?php if ($numeroDerogation>"0"): ?>
<div id ="msgDerogation" class="alert alert-danger">
<H4> <?= _("No de dérogation soins hors réseau") . " : ". $numeroDerogation ?></H4>
</div>
<?php endif; ?>
<?php if ($numeroDerogationFinger>"0"): ?>
<div id ="msgDerogation" class="alert alert-danger" style="height:30px; padding:5px;">
<H4> <?= _("No de dérogation défaut FingerPrint") . " : ". $numeroDerogationFinger ?></H4>
</div>
<?php endif; ?>
<div class="modal fade" id="pop_imprimer_feuille_maladie" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Imprimer Feuille Maladie...") ?> </h4>
</div>
<div class="modal-body">
<div id ="div_export_a">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popRechercheAffection" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_affection" name="btn_close_pop_affection" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Sélectionner une affection") ?></h4>
</div>
<div class="modal-body">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="20%" align="center" > <?= _("Famille Affections") ?> </td>
<td>
<SELECT class="form-control" id="codeTypeAffection" NAME="codeTypeAffection" required onChange="javascript:ajaxaffectionspossibles();" style='font-size:10pt;' >
<?php liste_options($typeaffections, $codeTypeAffection); ?>
</SELECT>
</td>
</tr>
<tr>
<td align="center"> <?= _("Affection") ?> </td>
<td>
<div id="listeaffections">
<SELECT class="form-control" id="codeAffectionPop" NAME="codeAffectionPop" required style='font-size:10pt;' >
<?php liste_options($affections, $codeAffection); ?>
</SELECT>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<input id="btn_enreg_affection" name="btn_enreg_affection" class = "form-control btn btn-primary" type="button" value="<?= _("Ajouter") ?>" onClick="javascript:enregistreraffection();" style='font-size:10pt;' >
</td>
</tr>
</tbody>
</table>
<div id="div_dianostics">
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th rowspan="2" width="15%" style="text-align:center"> Date </th>
<th rowspan="2" style="text-align:center"> Diagnostic </th>
<th rowspan="2" width="15%" style="text-align:center"> User </th>
<th colspan="3" style='text-align:center'> <?= _("Suppression") ?> </th>
</tr>
<tr>
<th style="text-align:center"> X </th>
<th style="text-align:center"> User </th>
<th style="text-align:center"> Date </th>
</tr>
</thead>
<tbody>
<?php foreach ($diagnostics as $diagnostic):
$idDiagnostic = $this->nettoyer($diagnostic['id']);
$supprime = $this->nettoyer($diagnostic['supprime']);
$codeAffection = $this->nettoyer($diagnostic['codeAffection']);
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleAffection = $this->nettoyer($diagnostic['libelleAffectionEng'])." => ".$codeAffection;
}
else
{
$libelleAffection = $this->nettoyer($diagnostic['libelleAffection'])." => ".$codeAffection;
}
$AffectionVisible = $_SESSION['p_AffectionVisible'];
if($AffectionVisible!="1")
{
$libelleAffection = $codeAffection;
}
?>
<?php if($supprime=='1'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= dateheureLang($this->nettoyer($diagnostic['dateSysteme'])) ?></td>
<td align='center'> <?= $libelleAffection ?> </td>
<td align='center'> <?= $this->nettoyer($diagnostic['codeUtilisateur']) ?> </td>
<td align='center'>
<?php if($supprime!='1'): ?>
<input type="button" value="X" onClick="javascript:supprimer_affections('<?= $idDiagnostic ?>');">
<?php endif; ?>
</td>
<td align='center'> <?= $this->nettoyer($diagnostic['userSuppression']) ?> </td>
<td align='center'><?= dateheureLang($this->nettoyer($diagnostic['heueSuppression'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop_affection" name="close_pop_affection" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<button id="btn_pop_imprimer_facture" name="btn_pop_imprimer_facture" type="button" class="sr-only" data-toggle="modal" data-target="#pop_imprimer_facture" style='font-size:10pt;' > </button>
<div class="modal fade" id="pop_imprimer_facture" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_facture" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Imprimer Feuille Maladie...") ?> </h4>
</div>
<div class="modal-body">
<div id ="div_imprimer_facture">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
</div>
<?php if($faceActif=='1') : ?>
<?php include 'faceebene/ebenetraitementimagefacturation.php'; ?>
<?php endif; ?>