6904 lines
268 KiB
PHP
Executable File
6904 lines
268 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleurrequete.php'; // OK
|
|
require_once 'Modele/Requetesperso.php';
|
|
require_once 'Modele/Statistique.php';
|
|
require_once $_SESSION['dossierSociete'].'/Html2pdf/lib/html2pdf.php'; //pdf
|
|
|
|
|
|
|
|
$html2pdf = new HTML2PDF("p","A4","fr");
|
|
$html2pdf->AddFont('newyorktimes', 'newyorktimes', 'newyorktimes.php');
|
|
$html2pdf->setDefaultFont('newyorktimes');
|
|
|
|
|
|
class ControleurAjaxetatpersopdf extends Controleurrequete
|
|
{
|
|
private $requetesperso;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->requetesperso = new Requetesperso();
|
|
$this->detailsp = new Statistique();
|
|
|
|
}
|
|
|
|
|
|
public function index()
|
|
{
|
|
$paramrequetes = $this->requete->getParametreDonnees();
|
|
|
|
$codeGcAssureur = $_SESSION['codeGcAssureurStat'];
|
|
// $idPolice = $this->requete->getParametreFormulaire("idPolice");
|
|
|
|
$outputString = substr($paramrequetes['p_idBenef'], 0, 10);
|
|
|
|
|
|
// $paramrequetes['p_idBenef'] = preg_replace('/[^0-9]/', '', $outputString);
|
|
if($idPolice_C=='' || $idPolice_C=='22' ){
|
|
$idPolice_C = NULL;
|
|
}
|
|
if($codeGcAssureur=='AUC'){
|
|
$codeGcAssureur = NULL;
|
|
}
|
|
|
|
|
|
|
|
|
|
// $paramrequetes['p_idPolice'] = $idPolice_C;
|
|
// $paramrequetes['p_garant'] = $codeGcAssureur;
|
|
|
|
$codeRequete = $_SESSION['codeRequete'];
|
|
if (isset( $paramrequetes['idPolice']) && ($paramrequetes['idPolice']=='0' ||$paramrequetes['idPolice']=='22'|| $paramrequetes['idPolice']=='')){
|
|
$paramrequetes['idPolice'] = NULL;
|
|
}
|
|
if($paramrequetes['codeGcAssureur']=='0' ||$paramrequetes['codeGcAssureur']=='AUC'){
|
|
$paramrequetes['codeGcAssureur'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idClient']=='0'){
|
|
$paramrequetes['p_idClient'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idClient']=='0'){
|
|
$paramrequetes['p_idClient'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idCollege']=='0'){
|
|
$paramrequetes['p_idCollege'] = NULL;
|
|
}
|
|
if($paramrequetes['p_matricule']=='0'){
|
|
$paramrequetes['p_matricule'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idBenef']=='0'){
|
|
$paramrequetes['p_idBenef'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idAdherent']=='0'){
|
|
$paramrequetes['p_idAdherent'] = NULL;
|
|
}
|
|
//highlight_string("<?php\n\$datas =\n" . var_export( $paramrequetes , true) . ";\n>");
|
|
|
|
//die();
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($codeRequete , true) . ";\n>");
|
|
//die();
|
|
$donnees = $this->requetesperso->executerrequeteperso($paramrequetes);
|
|
|
|
|
|
$p_garant ="";
|
|
$p_id_clients="";
|
|
$p_id= "";
|
|
$p_id_college= "";
|
|
$p_debutStat= "";
|
|
$p_finStat= "";
|
|
$recapcolleges = array();
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
$nbLignes = count($donnees);
|
|
switch($codeRequete){
|
|
/////////////////////////////////////////////////////////////////////////////////////////
|
|
//////////////
|
|
case "vitalis0001":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_mois = $paramrequetes['p_codeMois'];
|
|
$p_annee = $paramrequetes['p_codeExercice'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 5px 4px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Décomptes périodique par prestataire
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
DECOMPTES PERIODIQUES PAR PRESTATAIRE, PAR POLICE et PAR GARANT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo ($p_mois.' / '.$p_annee); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<thead>
|
|
<tr>
|
|
<th class="30p">Prestataire</th>
|
|
<th class="25p">Police</th>
|
|
<th class="15p">Garant</th>
|
|
<th class="10p">Montant A payer Total</th>
|
|
<th class="10p">Montant Payé Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codePrestataire'] = $donnee['codePrestataire'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['police'] = $donnee['police'];
|
|
$datas['garant'] = $donnee['garant'];
|
|
$datas['montantApayerTotal'] = $donnee['montantApayerTotal'];
|
|
$datas['montantPayeTotal'] = $donnee['montantPayeTotal'];
|
|
?>
|
|
<tr>
|
|
<td class="30p" style="text-align: left;"><?php echo($datas['prestataire']);?></td>
|
|
<td class="25p" style="text-align: left;"><?php echo($datas['police']);?></td>
|
|
<td class="15p" style="text-align: left;"><?php echo($datas['garant']);?></td>
|
|
<td class="10p"><?php echo(format_N($datas['montantApayerTotal']));?></td>
|
|
<td class="10p"><?php echo(format_N($datas['montantPayeTotal'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
} ?>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0002":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.30p { width: 30%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Récapitulatif des depenses
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
RECAPITULATIF DES DEPENSES PAR PRESTATAIRE,PAR POLICE ET PAR GARANT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<thead>
|
|
<tr>
|
|
<th class="30p">Prestataire</th>
|
|
<th class="25p">Police</th>
|
|
<th class="15p">Garant</th>
|
|
<th class="15p">Nombre de Factures</th>
|
|
<th class="15p">Montant A payer</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['typePrestataire'] = $donnee['typePrestataire'];
|
|
$datas['codePrestataire'] = $donnee['codePrestataire'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['police'] = $donnee['police'];
|
|
$datas['garant'] = $donnee['garant'];
|
|
$datas['nbFactures'] = $donnee['nbFactures'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
?>
|
|
<tr>
|
|
<td style="text-align: left;"><?php echo($datas['prestataire']);?></td>
|
|
<td style="text-align: left;"><?php echo($datas['police']);?></td>
|
|
<td style="text-align: left;"><?php echo($datas['garant']);?></td>
|
|
<td><?php echo(format_N($datas['nbFactures']));?></td>
|
|
<td><?php echo(format_N($datas['montantApayer'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0003":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.30p { width: 30%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Récapitulatif des depenses
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
RECAPITULATIF DES DEPENSES PAR PRESTATAIRE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<thead>
|
|
<tr>
|
|
<th class="30p">Prestataire</th>
|
|
<th class="10p">Nombre de facture</th>
|
|
<th class="15p">Montant reclamé</th>
|
|
<th class="15p">Base Reglement</th>
|
|
<th class="15p">Montant Débit</th>
|
|
<th class="15p">Montant crédit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['nbFactures'] = $donnee['nbFactures'];
|
|
$datas['MontantReclame'] = $donnee['MontantReclame'];
|
|
$datas['BaseReglement'] = $donnee['BaseReglement'];
|
|
$datas['MontantDebit'] = $donnee['MontantDebit'];
|
|
$datas['Montantcredit'] = $donnee['Montantcredit'];
|
|
?>
|
|
<tr>
|
|
<td style="text-align: left;"><?php echo($datas['prestataire']);?></td>
|
|
<td><?php echo(format_N($datas['nbFactures']));?></td>
|
|
<td><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td><?php echo(format_N($datas['BaseReglement']));?></td>
|
|
<td><?php echo(format_N($datas['MontantDebit']));?></td>
|
|
<td><?php echo(format_N($datas['Montantcredit'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0004":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_codeMois'];
|
|
$p_finStat = $paramrequetes['p_codeExercice'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Décompte périodique par prestataire
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
DECOMPTES PERIODIQUE PAR PRESTATAIRE ET PAR GARANT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo ($p_debutStat .'/'.$p_finStat); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$garant_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['CodeGarant'] = $donnee['CodeGarant'];
|
|
$datas['garant'] = $donnee['garant'];
|
|
$datas['DatePaiement'] = $donnee['DatePaiement'];
|
|
$datas['codePrestataire'] = $donnee['codePrestataire'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['MontantReclame'] = $donnee['MontantReclame'];
|
|
$datas['BaseReglement'] = $donnee['BaseReglement'];
|
|
$datas['MontantDebit'] = $donnee['MontantDebit'];
|
|
$datas['Montantcredit'] = $donnee['Montantcredit'];
|
|
|
|
if ($garant_old != $datas['CodeGarant']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo($datas['CodeGarant']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="10p">Date Paiement</th>
|
|
<th class="10p">code Prestataire</th>
|
|
<th class="20p">Prestataire</th>
|
|
<th class="15p">Montant Reclame</th>
|
|
<th class="10p">Base Réglement</th>
|
|
<th class="15p">Montant Débit</th>
|
|
<th class="15p">Montant crédit</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><?php echo($datas['DatePaiement']);?></td>
|
|
<td><?php echo($datas['codePrestataire']);?></td>
|
|
<td style="text-align: left;"><?php echo($datas['prestataire']);?></td>
|
|
<td><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td><?php echo(format_N($datas['BaseReglement']));?></td>
|
|
<td><?php echo(format_N($datas['MontantDebit'])); ?></td>
|
|
<td> <?php echo(format_N($datas['Montantcredit'])); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$garant_old = $datas['CodeGarant'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0005":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Liste des Pharmacies
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
RECAPITULATIF DES DEPENSES PAR GARANT ET PAR PRESTATAIRE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$garant_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['garant'] = $donnee['garant'];
|
|
$datas['DatePaiement'] = $donnee['DatePaiement'];
|
|
$datas['Compte'] = $donnee['Compte'];
|
|
$datas['Beneficiaire'] = $donnee['Beneficiaire'];
|
|
$datas['MontantReclame'] = $donnee['MontantReclame'];
|
|
$datas['BaseReglement'] = $donnee['BaseReglement'];
|
|
$datas['MontantDebit'] = $donnee['MontantDebit'];
|
|
$datas['Montantcredit'] = $donnee['Montantcredit'];
|
|
|
|
if ($garant_old != $datas['codeGarant']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo($datas['codeGarant']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="10p">Date Paiement</th>
|
|
<th class="10p">Compte</th>
|
|
<th class="25p">Bénéficiaire</th>
|
|
<th class="15p">Montant Reclame</th>
|
|
<th class="10p">Base Réglement</th>
|
|
<th class="15p">Montant Débit</th>
|
|
<th class="15p">Montant crédit</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="10p"><?php echo($datas['DatePaiement']);?></td>
|
|
<td class="10p"><?php echo($datas['Compte']);?></td>
|
|
<td class="25p" style="text-align: left;"><?php echo($datas['Beneficiaire']);?></td>
|
|
<td class="15p"><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td class="10p"><?php echo(format_N($datas['BaseReglement']));?></td>
|
|
<td class="15p"><?php echo(format_N($datas['MontantDebit'])); ?></td>
|
|
<td class="15p"> <?php echo(format_N($datas['Montantcredit'])); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$garant_old = $datas['codeGarant'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0006":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_codeMois'];
|
|
$p_finStat = $paramrequetes['p_codeExercice'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Décomptes périodiques des remboursement directs
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
DECOMPTES PERIODIQUES DES REMBOURSEMENT DIRECTS
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo ($p_debutStat.' / '.$p_finStat) ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$garant_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['garant'] = $donnee['garant'];
|
|
$datas['DatePaiement'] = $donnee['DatePaiement'];
|
|
$datas['Matricule'] = $donnee['Matricule'];
|
|
$datas['Beneficiaire'] = $donnee['Beneficiaire'];
|
|
$datas['MontantReclame'] = $donnee['MontantReclame'];
|
|
$datas['BaseReglement'] = $donnee['BaseReglement'];
|
|
$datas['MontantDebit'] = $donnee['MontantDebit'];
|
|
$datas['Montantcredit'] = $donnee['Montantcredit'];
|
|
|
|
if ($garant_old != $datas['codeGarant']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo($datas['codeGarant']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="10p">Date Paiement</th>
|
|
<th class="10p">Matricule</th>
|
|
<th class="20p">Bénéficiaire</th>
|
|
<th class="15p">Montant Reclame</th>
|
|
<th class="15p">Base Réglement</th>
|
|
<th class="15p">Montant Débit</th>
|
|
<th class="15p">Montant crédit</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><?php echo($datas['DatePaiement']);?></td>
|
|
<td style="text-align: left;"><?php echo($datas['Matricule']);?></td>
|
|
<td style="text-align: left;"><?php echo($datas['Beneficiaire']);?></td>
|
|
<td><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td><?php echo(format_N($datas['BaseReglement']));?></td>
|
|
<td><?php echo(format_N($datas['MontantDebit'])); ?></td>
|
|
<td> <?php echo(format_N($datas['Montantcredit'])); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$garant_old = $datas['codeGarant'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0007":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$codePrestataire_rp = "";
|
|
$montantPrestatiare_rp = 0;
|
|
|
|
$p_debutStat = $paramrequetes['p_debut'];
|
|
$p_finStat = $paramrequetes['p_fin'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
padding: 5px 4px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Listes des factures non décomptées
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
LISTE DES PRESTATAIRES EST DES FACTURES NON DECOMPTEES
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codePrestataire'] = $donnee['codePrestataire'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['nbFacture'] = $donnee['nbFacture'];
|
|
//highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n>");
|
|
?>
|
|
<thead style="border-top: double;">
|
|
<tr style="border-top: double;">
|
|
<th class="25">Code Prestataire</th>
|
|
<th class="50p">Prestataire</th>
|
|
<th class="25p">Nombre de facture</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="25p"><?php echo($datas['codePrestataire']); ?></td>
|
|
<td class="50p" style="text-align: left;"><?php echo($datas['prestataire']); ?></td>
|
|
<td class="25p"><?php echo($datas['nbFacture']); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
//$prestataire_old= $g['Compte'];
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0008":
|
|
|
|
if (isset($paramrequetes['p_type']) and !empty($paramrequetes['p_type']) and isset($paramrequetes['p_limite']) and isset($paramrequetes['p_limite'])) {
|
|
//echo '<pre>'; var_dump($paramrequetes['p_type']); echo '</pre>';
|
|
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
$p_type = $paramrequetes['p_type'];
|
|
$p_limite = $paramrequetes['p_limite'];
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
foreach ($donnees as $donnee) {
|
|
|
|
$codePrestataire_rp = $donnee['Compte'];
|
|
$datas['DatePaiement'] = $donnee['DatePaiement'];
|
|
$datas['Compte'] = $donnee['Compte'];
|
|
$datas['TypeP'] = $donnee['TypeP'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['montantFacture'] = $donnee['montantFacture'];
|
|
$datas['apresDecompte'] = $donnee['apresDecompte'];
|
|
$datas['montantPaye'] = $donnee['montantPaye'];
|
|
|
|
$donneesDetails = $this->requetesperso->getPrestataireTypeDetail($p_debutStat, $p_finStat, $p_type, $codePrestataire_rp);
|
|
|
|
foreach ($donneesDetails as $donneesDetail) {
|
|
highlight_string("<?php\n\$datas =\n" . var_export($donneesDetails , true) . ";\n>");
|
|
$datas['DatePrescription'] = (new DateTime($donneesDetail['datePrescription']))->format('d/m/Y');
|
|
$datas['CodeG'] = $donneesDetail['CodeG'];
|
|
$datas['Garant'] = $donneesDetail['Garant'];
|
|
$datas['NumeroPolice'] = $donneesDetail['NumeroPolice'];
|
|
$datas['libellePolice'] = $donneesDetail['libellePolice'];
|
|
$datas['Compte'] = $donneesDetail['Compte'];
|
|
$datas['TypeP'] = $donneesDetail['TypeP'];
|
|
$datas['prestataire'] = $donneesDetail['prestataire'];
|
|
$datas['numeroBeneficiaire'] = $donneesDetail['numeroBeneficiaire'];
|
|
$datas['beneficaire'] = $donneesDetail['beneficaire'];
|
|
$datas['CodeM'] = $donneesDetail['CodeM'];
|
|
$datas['Medicament'] = $donneesDetail['Medicament'];
|
|
$datas['MontantReclame'] = $donneesDetail['MontantReclame'];
|
|
$datas['MontantRembourser'] = $donneesDetail['MontantRembourser'];
|
|
array_push($grand, $datas);
|
|
}
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
padding: 2px 0px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Liste des Pharmacies
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
LISTE DES PHARMACIES AYANT UN CONSOMMATION SUPERIEUR A <?php echo(format_N($p_limite));?> F CFA
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
if ($codeRequete = "vitalis0008") {
|
|
$prestataire_old= "";
|
|
foreach ($grand as $g) {
|
|
highlight_string("<?php\n\$data =\n" . var_export($g, true) . ";\n>");
|
|
if ($prestataire_old != $g['Compte']) {
|
|
?>
|
|
<tr style="color: black; background: #f1f2ff;" >
|
|
<th colspan=2><?php echo($g['prestataire']); ?></th>
|
|
<th colspan=2> Montant Total facture <?php echo($g['montantFacture']);?></th>
|
|
<th colspan=6> Consommations Supérieures à <?php echo($p_limite);?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">Date Prescription</th>
|
|
<th class="5p">CodeG</th>
|
|
<th class="10p">Police</th>
|
|
<th class="8p">NumBeneficiaire</th>
|
|
<th class="20p">Bénéficiaire</th>
|
|
<th class="20p">Médicaments</th>
|
|
<th class="10p">Montant reclammé</th>
|
|
<th class="10p">Montant remboursé</th>
|
|
</tr>
|
|
<?php
|
|
} ?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="8p"><?php echo($g['DatePrescription']); ?></td>
|
|
<td class="10p"><?php echo($g['CodeG']); ?></td>
|
|
<td class="10p"><?php echo($g['libellePolice']); ?></td>
|
|
<td class="10p"><?php echo($g['numeroBeneficiaire']); ?></td>
|
|
<td class="10p"><?php echo($g['beneficaire']); ?></td>
|
|
<td class="10p"><?php echo($g['Medicament']); ?></td>
|
|
<td class="10p"><?php echo(format_N($g['MontantReclame'])); ?></td>
|
|
<td class="10p" style="text-align:left;"><?php echo(format_N($g['MontantRembourser'])); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$prestataire_old= $g['Compte'];
|
|
}
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
|
|
}
|
|
break;
|
|
case "vitalis0009":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$codePrestataire_rp = "";
|
|
$montantPrestatiare_rp = 0;
|
|
|
|
$p_debutStat = $paramrequetes['p_codeMois'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Factures mensuelles en doublon
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
LISTE DES FACTURES MENSUELLES EN DOUBLON
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo ($p_debutStat)?> MOIS
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['numeroFeuilleMaladie'] = $donnee['numeroFeuilleMaladie'];
|
|
$datas['idBeneficiaire'] = $donnee['idBeneficiaire'];
|
|
$datas['fraisReel'] = $donnee['fraisReel'];
|
|
$datas['montantArembourser'] = $donnee['montantArembourser'];
|
|
$datas['dateSysteme'] = $donnee['dateSysteme'];
|
|
//highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n>");
|
|
?>
|
|
<thead style="border-top: double;">
|
|
<tr style="border-top: double;">
|
|
<th class="">Prestataire</th>
|
|
<th class="15p">No Feuille Maladie</th>
|
|
<th class="15p">id Beneficiaire</th>
|
|
<th class="15p">frais Reel</th>
|
|
<th class="15p">Montant A rembourser</th>
|
|
<th class="15p">date Systeme</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="25p" style="text-align: left;"><?php echo($datas['prestataire']); ?></td>
|
|
<td class="15p"><?php echo($datas['numeroFeuilleMaladie']); ?></td>
|
|
<td class="15p"><?php echo($datas['idBeneficiaire']); ?></td>
|
|
<td class="15p"><?php echo(format_N($datas['fraisReel'])); ?></td>
|
|
<td class="15p"><?php echo(format_N($datas['montantArembourser'])); ?></td>
|
|
<td class="15p"><?php echo dateLang($datas['dateSysteme'], $_SESSION['lang']); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
//$prestataire_old= $g['Compte'];
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0010":// NOMBRE DE BON ORDONNANCE CONSULTATION
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$codePrestataire_rp = "";
|
|
$montantPrestatiare_rp = 0;
|
|
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
padding: 5px 5px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Nombre de consultation par assuré
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
NOMBRE DE CONSULTATION PAR ASSURE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
PERIODE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
<table style="margin-top: 30px;" class="border">
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numero'] = $donnee['numero'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
//highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n>");
|
|
?>
|
|
<thead style="border-top: double;">
|
|
<tr style="border-top: double;">
|
|
<th > Police</th>
|
|
<!-- <th class="10p"> Garantie</th> -->
|
|
<th >Numéro Bénéficiaire</th>
|
|
<th>Bénéficiaire</th>
|
|
<th >Quantité</th>
|
|
<th >Montant à payer</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: left;"> <?php echo($datas['libellePolice']); ?></td>
|
|
<!-- <td class="10p" style="text-align: left;"> <?php echo($datas['codeGarantie']); ?></td> -->
|
|
<td ><?php echo($datas['numero']); ?></td>
|
|
<td style="width: 40%;text-align: left;"><?php echo($datas['beneficaire']); ?></td>
|
|
<td ><?php echo($datas['Quantite']); ?></td>
|
|
<td ><?php echo(number_format($datas['montantApayer'], 0, '', ' ')); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
//$prestataire_old= $g['Compte'];
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0011": // NOMBRE DE BON ORDONNANCE PHARMACIE
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Nombre de bons ordonnances par assuré
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
NOMBRE DE BONS ORDONNANCES PAR ASSURE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$idPolice_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numeroBeneficiaire'] = $donnee['numeroBeneficiaire'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
|
|
if ($idPolice_old != $datas['idPolice']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('id Police : '.$datas['idPolice']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['libellePolice']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="20p">Numéro bénéficiaire</th>
|
|
<th class="40p">Bénéficiaire</th>
|
|
<th class="20p">Quantité</th>
|
|
<th class="20p">Montant à payer</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="20p"><?php echo($datas['numeroBeneficiaire']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['beneficaire']);?></td>
|
|
<td class="20p"><?php echo(format_N($datas['Quantite']));?></td>
|
|
<td class="20p" ><?php echo(format_N($datas['montantApayer']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$idPolice_old = $datas['idPolice'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0012":
|
|
|
|
highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_limite = $paramrequetes['p_limite'];
|
|
highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Ordannace de plus de <?php echo($p_limite) ?> par semaine en cours
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ORDANNANCE DE PLUS DE <?php echo($p_limite) ?> PAR SEMAINE EN COURS
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$idPolice_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numero'] = $donnee['numero'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
|
|
if ($idPolice_old != $datas['idPolice']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('id Police : '.$datas['idPolice']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['libellePolice']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="20p">Numéro bénéficiaire</th>
|
|
<th class="40p">Bénéficiaire</th>
|
|
<th class="20p">Quantité</th>
|
|
<th class="20p">Montant à payer</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="20p"><?php echo($datas['numero']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['beneficaire']);?></td>
|
|
<td class="20p"><?php echo(format_N($datas['Quantite']));?></td>
|
|
<td class="20p" ><?php echo(format_N($datas['montantApayer']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$idPolice_old = $datas['idPolice'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0013":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Nombre de bons ordonnance par assuré avec entente préalable
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
NOMBRE DE BONS ORDONNANCE PAR ASSURE AVEC ENTENTE PREALABLE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$idPolice_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numero'] = $donnee['numero'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
|
|
if ($idPolice_old != $datas['idPolice']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('id Police : '.$datas['idPolice']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['libellePolice']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="20p">Numéro bénéficiaire</th>
|
|
<th class="40p">Bénéficiaire</th>
|
|
<th class="20p">Quantité</th>
|
|
<th class="20p">Montant à payer</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="20p"><?php echo($datas['numero']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['beneficaire']);?></td>
|
|
<td class="20p"><?php echo(format_N($datas['Quantite']));?></td>
|
|
<td class="20p" ><?php echo(format_N($datas['montantApayer']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$idPolice_old = $datas['idPolice'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis00013":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Nombre de bons ordonnance par assuré avec entente préalable
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
NOMBRE DE BONS ORDONNANCE PAR ASSURE AVEC ENTENTE PREALABLE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$idPolice_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numero'] = $donnee['numero'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
|
|
if ($idPolice_old != $datas['idPolice']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('id Police : '.$datas['idPolice']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['libellePolice']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="20p">Numéro bénéficiaire</th>
|
|
<th class="40p">Bénéficiaire</th>
|
|
<th class="20p">Quantité</th>
|
|
<th class="20p">Montant à payer</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="20p"><?php echo($datas['numero']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['beneficaire']);?></td>
|
|
<td class="20p"><?php echo(format_N($datas['Quantite']));?></td>
|
|
<td class="20p" ><?php echo(format_N($datas['montantApayer']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$idPolice_old = $datas['idPolice'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0014":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Etat optique mensuel par contrat
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT OPTIQUE MENSUEL PAR CONTRAT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$idPolice_old= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libellePolice'] = $donnee['libellePolice'];
|
|
$datas['codeGarantie'] = $donnee['codeGarantie'];
|
|
$datas['numero'] = $donnee['numero'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['Quantite'] = $donnee['Quantite'];
|
|
$datas['montantApayer'] = $donnee['montantApayer'];
|
|
|
|
if ($idPolice_old != $datas['idPolice']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('id Police : '.$datas['idPolice']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['libellePolice']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="20p">Numéro bénéficiaire</th>
|
|
<th class="40p">Bénéficiaire</th>
|
|
<th class="20p">Quantité</th>
|
|
<th class="20p">Montant à payer</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="20p"><?php echo($datas['numero']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['beneficaire']);?></td>
|
|
<td class="20p"><?php echo(format_N($datas['Quantite']));?></td>
|
|
<td class="20p" ><?php echo(format_N($datas['montantApayer']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$idPolice_old = $datas['idPolice'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0017":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>")
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Effectif des assurés principaux par police et par college
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
EFFECTIF DES ASSURES PRINCIPAUX PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
</p>
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
$codeGarant= "";
|
|
foreach ($donnees as $donnee) {
|
|
$datas['dateEffet'] = $donnee['dateEffet'];
|
|
$datas['dateEcheance'] = $donnee['dateEcheance'];
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['nomGarant'] = $donnee['nomGarant'];
|
|
$datas['police'] = $donnee['police'];
|
|
$datas['college'] = $donnee['college'];
|
|
$datas['effectifAssure'] = $donnee['effectifAssure'];
|
|
|
|
if ($codeGarant != $datas['codeGarant']) {
|
|
?>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: solid; border-left: none; padding: 8px;" ><?php echo('Garant : '.$datas['codeGarant']); ?></th>
|
|
<th colspan=6 style="text-align: left; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['nomGarant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="10p">Date effet</th>
|
|
<th class="10p">Date Echeance</th>
|
|
<th class="25p">Police</th>
|
|
<th class="40p">College</th>
|
|
<th class="10p">Effectif Assures</th>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="10p"><?php echo dateLang($datas['dateEffet'] , $_SESSION['lang']);?></td>
|
|
<td class="10p"><?php echo dateLang($datas['dateEcheance'], $_SESSION['lang']);?></td>
|
|
<td class="25p" style="text-align: left;"><?php echo($datas['police']);?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['college']);?></td>
|
|
<td class="10p" ><?php echo(format_N($datas['effectifAssure']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$codeGarant = $datas['codeGarant'];
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0016":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$codePrestataire_rp = "";
|
|
$montantPrestatiare_rp = 0;
|
|
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 11px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 4px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.30p { width: 30%; }.6p { width: 6%; }
|
|
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Centres ayant eu des hospitalisations
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
CENTRES AYANT EU DES HOSPITALISATIONS
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['Garant'] = $donnee['Garant'];
|
|
$datas['numeroPolice'] = $donnee['numeroPolice'];
|
|
$datas['Police'] = $donnee['Police'];
|
|
$datas['DateDeSoin'] = $donnee['DateDeSoin'];
|
|
$datas['Compte'] = $donnee['Compte'];
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['numeroBeneficiaire'] = $donnee['numeroBeneficiaire'];
|
|
$datas['beneficaire'] = $donnee['beneficaire'];
|
|
$datas['numeroAdherent'] = $donnee['numeroAdherent'];
|
|
$datas['Adherent'] = $donnee['Adherent'];
|
|
$datas['DebutHospit'] = $donnee['DebutHospit'];
|
|
$datas['FinHospit'] = $donnee['FinHospit'];
|
|
//highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n>");
|
|
?>
|
|
<thead style="border-top: double;">
|
|
<tr style="border-top: double;">
|
|
<th class="5p">code Garant</th>
|
|
<th class="5p">numero Police </th>
|
|
<th class="10p">Police</th>
|
|
<th class="15p">Adherent</th>
|
|
<th class="8p">numero Bénéficiaire</th>
|
|
<th class="15p">Bénéficiaire</th>
|
|
<th class="10p">Compte</th>
|
|
<th class="20p">Prestataire</th>
|
|
<th class="6p">Date Debut</th>
|
|
<th class="6p">Date Fin</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="5p" ><?php echo($datas['codeGarant']); ?></td>
|
|
<td class="5p" ><?php echo($datas['numeroPolice']); ?></td>
|
|
<td class="10p" ><?php echo($datas['Police']); ?></td>
|
|
<td class="15p" ><?php echo($datas['Adherent']); ?></td>
|
|
<td class="8p" ><?php echo($datas['numeroBeneficiaire']); ?></td>
|
|
<td class="15p" style="text-align: left;"><?php echo($datas['beneficaire']); ?></td>
|
|
<td class="5p" ><?php echo($datas['Compte']); ?></td>
|
|
<td class="20p" style="text-align: left;"><?php echo($datas['prestataire']); ?></td>
|
|
<td class="6p" ><?php echo($datas['DebutHospit']); ?></td>
|
|
<td class="6p" ><?php echo($datas['FinHospit']); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
//$prestataire_old= $g['Compte'];
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0029":
|
|
?>
|
|
<script type="text/javascript">
|
|
alert("La prescription pharmacie a été réinitialisée");
|
|
</script>
|
|
<?php
|
|
$p_numeroFeuilleMaladie=0;
|
|
$p_utilisateur="";
|
|
$p_utilisateur=$_SESSION['login'];
|
|
$p_numeroFeuilleMaladie = $paramrequetes['p_numeroFeuilleMaladie'];
|
|
$enregistrerusers = $this->detailsp->getenregistrerusers($p_utilisateur,$p_numeroFeuilleMaladie);
|
|
//highlight_string("<?php\n\ =\n" . var_export($enregistrerusers, true) . ";\n>");
|
|
break;
|
|
case "vitalis0042":
|
|
?>
|
|
<script type="text/javascript">
|
|
alert("Les prestations de la feuille maladie ont été réinitialisées");
|
|
</script>
|
|
<?php
|
|
$p_numeroFeuilleMaladie=0;
|
|
$p_utilisateur="";
|
|
$p_utilisateur=$_SESSION['login'];
|
|
$p_numeroFeuilleMaladie = $paramrequetes['p_numeroFeuilleMaladie'];
|
|
$enregistrerusers = $this->detailsp->getenregistrerusers($p_utilisateur,$p_numeroFeuilleMaladie);
|
|
//highlight_string("<?php\n\ =\n" . var_export($enregistrerusers, true) . ";\n>");
|
|
break;
|
|
case "vitalis0043":
|
|
?>
|
|
<script type="text/javascript">
|
|
alert("Veuillez actualiser le décompte");
|
|
</script>
|
|
<?php
|
|
break;
|
|
case "vitalis0058":
|
|
?>
|
|
<script type="text/javascript">
|
|
alert("La mise a jour de la date de prestation a été effectuée avec success");
|
|
</script>
|
|
<?php
|
|
break;
|
|
case "vitalis0031": //etat des assurés et beneficiaire effet
|
|
|
|
$p_garant = $paramrequetes['p_garant'];
|
|
$p_id_clients= $paramrequetes['p_idClient'];
|
|
$p_id= $paramrequetes['p_idPolice'];
|
|
$p_id_college= $paramrequetes['p_idCollege'];
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
|
|
$recapcolleges = $this->detailsp->getrecapbeneficierecollegeEffet($p_garant, $p_id_clients, $p_id, $p_id_college, $p_debutStat, $p_finStat);
|
|
$beneficiaires = $this->detailsp->etatrecapbeneficierecollegeEffet($p_garant, $p_id_clients, $p_id, $p_id_college, $p_debutStat, $p_finStat);
|
|
$datas = array();
|
|
|
|
$nbLignes = count($beneficiaires);
|
|
if ($nbLignes>0) {
|
|
ob_start();
|
|
?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 3px 3px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
}
|
|
.border2 td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 6px 3px;
|
|
text-align: left;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
font-weight: bold;
|
|
}
|
|
.border2
|
|
{
|
|
color: black;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.33p { width: 33%; }.12p { width: 12%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 9px;
|
|
text-align: left;
|
|
padding: 5px 3px;
|
|
}
|
|
.entete{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
color: black;
|
|
text-align: left;
|
|
|
|
padding: 10px 6px;
|
|
}
|
|
.entete td{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
padding:8px 6px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<?php
|
|
|
|
$idPoliceold="";
|
|
$idcollegeold ="";
|
|
$idcollegenew="";
|
|
$numeroAdherentold = "";
|
|
|
|
foreach($recapcolleges as $recapcollege){
|
|
|
|
foreach ($beneficiaires as $donnee) {
|
|
|
|
if ($recapcollege['idCollege'] == $donnee['idCollege']){
|
|
if ( $idPoliceold != $donnee['idPolice'] or $idcollegeold != $donnee['idCollege']) {
|
|
?>
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
ETAT DES ASSURES ET DEPENDANTS
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES ASSURES ET DEPENDANTS PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<table class="entete">
|
|
<tr style=" border-top: 1px solid #000; color: crimson;">
|
|
<td>
|
|
Garant :
|
|
</td>
|
|
<td >
|
|
<?php echo($donnee['codeGarant'])?>
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['Garant'])?>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000;">
|
|
<td>
|
|
Période du :
|
|
</td>
|
|
<td>
|
|
<?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</td>
|
|
<td>
|
|
Statut(s) concerné(s): ('A','C','D','E','G','K','X')
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: indigo;">
|
|
<td>
|
|
Souscripteur :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['nomClient'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: mediumseagreen;">
|
|
<td>
|
|
Police :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelle_police'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: hotpink;">
|
|
<td>
|
|
Collège :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelleCollege'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<table class="border2" >
|
|
<tr>
|
|
<td colspan=6 style=" font-size: 12px; padding: 10px 6px; text-align: left; border-bottom: none; color: hotpink;">Effectif collège : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr >
|
|
<tr style=" font-size: 12px; padding: 10px 6px;">
|
|
<td class="25p" style=" border-bottom: none; border-right: none; ">Assuré(e)s principal(e)s </td>
|
|
<td class="10p" style=" border: none; color: #4871E8; ">'A' : <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p" style=" border: none ;">Géniteur(Ascendant)</td>
|
|
<td class="10p"style=" border: none; color: indigo;"> : <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p" style=" border: none;">Autre(s) parent(s)</td>
|
|
<td class="5p"style=" border-bottom: none;">: 0</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style=" border-bottom: none; border-right: none">Conjoint(e)s </td>
|
|
<td class="10p"style=" border: none ; color: hotpink;">'C': <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p" style=" border: none;">Autres conjoint(e)s:</td>
|
|
<td class="10p"style=" border: none;">: <?php echo($recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p" style=" border: none;"></td>
|
|
<td class="5p"style=" border-bottom: none;" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style="border-right: none;">Enfants: </td>
|
|
<td class="10p" style="border-right: none; color: mediumseagreen;">'E': <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p" style="border-right: none;">Enfants supplementaire(s): </td>
|
|
<td class="10p" style="border-right: none;">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"style="border-right: none;"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
|
|
}
|
|
?>
|
|
<table class="border">
|
|
|
|
<?php
|
|
if ($numeroAdherentold !=$donnee['numeroAdherent']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=8 style="border-left: none; border-right: none;"></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">Assuré(e)</th>
|
|
<th class="10p">Matricule</th>
|
|
<th class="12p">Souscripteur</th>
|
|
<th class="35p">Bénéficiaire</th>
|
|
<th class="8p">Statut</th>
|
|
<th class="8p">Genre</th>
|
|
<th class="8p">Age</th>
|
|
<th class="10p">Date effet</th>
|
|
</tr>
|
|
<thead >
|
|
<!-- <tr>
|
|
<th colspan=8 style="border-left=none;border-right=none;"></th>
|
|
</tr> -->
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
} ?>
|
|
<tbody>
|
|
<tr >
|
|
<td class="10p"><?php echo($donnee['numeroAdherent']);?> </td>
|
|
<td class="10p" ><?php echo($donnee['numeroBeneficiaire'])?></td>
|
|
<td class="12p"><?php echo($donnee['numeroPolice'])?></td>
|
|
<td class="33p" style=" text-align:left"><?php echo($donnee['Beneficiaire'])?></td>
|
|
<td class="8p"><?php echo($donnee['codeLienParente'])?></td>
|
|
<td class="8p"><?php echo($donnee['sexe'])?></td>
|
|
<td class="8p"><?php echo($donnee['ageBeneficiaire'])?></td>
|
|
<td class="10p"><?php echo dateLang($donnee['dateEffetBeneficiaire'], $_SESSION['lang'])?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
$effectif= 0;
|
|
$effectif = count($donnee['Beneficiaire']);
|
|
$idcollegeold = $donnee['idCollege'];
|
|
$numeroAdherentold = $donnee['numeroAdherent'];
|
|
$idPoliceold = $donnee['idPolice'];
|
|
?>
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0032": //etat des assurés et beneficiaire effet
|
|
|
|
$p_garant = $paramrequetes['p_garant'];
|
|
$p_id_clients= $paramrequetes['p_idClient'];
|
|
$p_id= $paramrequetes['p_idPolice'];
|
|
$p_id_college= $paramrequetes['p_idCollege'];
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
|
|
$recapcolleges = $this->detailsp->getrecapbeneficierecollegeentree($p_garant, $p_id_clients, $p_id, $p_id_college, $p_debutStat, $p_finStat);
|
|
$beneficiaires = $this->detailsp->etatrecapbeneficierecollegeentree($p_garant, $p_id_clients, $p_id, $p_id_college, $p_debutStat, $p_finStat);
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($beneficiaires , true) . ";\n>");
|
|
//die();
|
|
$datas = array();
|
|
|
|
$nbLignes = count($beneficiaires);
|
|
if ($nbLignes>0) {
|
|
ob_start();
|
|
?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 3px 3px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
}
|
|
.border2 td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 6px 3px;
|
|
text-align: left;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
font-weight: bold;
|
|
}
|
|
.border2
|
|
{
|
|
color: black;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.33p { width: 33%; }.12p { width: 12%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 9px;
|
|
text-align: left;
|
|
padding: 5px 3px;
|
|
}
|
|
.entete{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
color: black;
|
|
text-align: left;
|
|
|
|
padding: 10px 6px;
|
|
}
|
|
.entete td{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
padding:8px 6px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<?php
|
|
|
|
$idPoliceold="";
|
|
$idcollegeold ="";
|
|
$idcollegenew="";
|
|
$numeroAdherentold = "";
|
|
|
|
foreach($recapcolleges as $recapcollege){
|
|
|
|
foreach ($beneficiaires as $donnee) {
|
|
|
|
if ($recapcollege['idCollege'] == $donnee['idCollege']){
|
|
if ( $idPoliceold != $donnee['idPolice'] or $idcollegeold != $donnee['idCollege']) {
|
|
?>
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
ETAT DES ASSURES ET DEPENDANTS
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES ASSURES ET DEPENDANTS PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<table class="entete">
|
|
<tr style=" border-top: 1px solid #000; color: crimson;">
|
|
<td>
|
|
Garant :
|
|
</td>
|
|
<td >
|
|
<?php echo($donnee['codeGarant'])?>
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['Garant'])?>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000;">
|
|
<td>
|
|
Période du :
|
|
</td>
|
|
<td>
|
|
<?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</td>
|
|
<td>
|
|
Statut(s) concerné(s): ('A','C','D','E','G','K','X')
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: indigo;">
|
|
<td>
|
|
Souscripteur :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['nomClient'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: mediumseagreen;">
|
|
<td>
|
|
Police :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelle_police'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: hotpink;">
|
|
<td>
|
|
Collège :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelleCollege'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<table class="border2" >
|
|
<tr>
|
|
<td colspan=6 style=" font-size: 12px; padding: 10px 6px; text-align: left; border-bottom: none; color: hotpink;">Effectif collège : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr >
|
|
<tr style=" font-size: 12px; padding: 10px 6px;">
|
|
<td class="25p" style=" border-bottom: none; border-right: none; ">Assuré(e)s principal(e)s </td>
|
|
<td class="10p" style=" border: none; color: #4871E8; ">'A' : <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p" style=" border: none ;">Géniteur(Ascendant)</td>
|
|
<td class="10p"style=" border: none; color: indigo;"> : <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p" style=" border: none;">Autre(s) parent(s)</td>
|
|
<td class="5p"style=" border-bottom: none;">: 0</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style=" border-bottom: none; border-right: none">Conjoint(e)s </td>
|
|
<td class="10p"style=" border: none ; color: hotpink;">'C': <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p" style=" border: none;">Autres conjoint(e)s:</td>
|
|
<td class="10p"style=" border: none;">: <?php echo($recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p" style=" border: none;"></td>
|
|
<td class="5p"style=" border-bottom: none;" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style="border-right: none;">Enfants: </td>
|
|
<td class="10p" style="border-right: none; color: mediumseagreen;">'E': <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p" style="border-right: none;">Enfants supplementaire(s): </td>
|
|
<td class="10p" style="border-right: none;">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"style="border-right: none;"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
|
|
}
|
|
?>
|
|
<table class="border">
|
|
|
|
<?php
|
|
if ($numeroAdherentold !=$donnee['numeroAdherent']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=8 style="border-left: none; border-right: none;"></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">Assuré(e)</th>
|
|
<th class="10p">Matricule</th>
|
|
<th class="12p">Souscripteur</th>
|
|
<th class="35p">Bénéficiaire</th>
|
|
<th class="8p">Statut</th>
|
|
<th class="8p">Genre</th>
|
|
<th class="8p">Age</th>
|
|
<th class="10p">Date effet</th>
|
|
</tr>
|
|
<thead >
|
|
<!-- <tr>
|
|
<th colspan=8 style="border-left=none;border-right=none;"></th>
|
|
</tr> -->
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
} ?>
|
|
<tbody>
|
|
<tr >
|
|
<td class="10p"><?php echo($donnee['numeroAdherent']);?> </td>
|
|
<td class="10p" ><?php echo($donnee['numeroBeneficiaire'])?></td>
|
|
<td class="12p"><?php echo($donnee['numeroPolice'])?></td>
|
|
<td class="33p" style=" text-align:left"><?php echo($donnee['Beneficiaire'])?></td>
|
|
<td class="8p"><?php echo($donnee['codeLienParente'])?></td>
|
|
<td class="8p"><?php echo($donnee['sexe'])?></td>
|
|
<td class="8p"><?php echo($donnee['ageBeneficiaire'])?></td>
|
|
<td class="10p"><?php echo dateLang($donnee['dateEffetBeneficiaire'], $_SESSION['lang'])?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
$effectif= 0;
|
|
$effectif = count($donnee['Beneficiaire']);
|
|
$idcollegeold = $donnee['idCollege'];
|
|
$numeroAdherentold = $donnee['numeroAdherent'];
|
|
$idPoliceold = $donnee['idPolice'];
|
|
?>
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0033": //etat des assurés et beneficiaire RETIRE effet
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
|
|
// highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
|
|
$p_garant = $paramrequetes['p_garant'];
|
|
$p_id_clients= $paramrequetes['p_idClient'];
|
|
$p_id= $paramrequetes['p_idPolice'];
|
|
$p_id_college= $paramrequetes['p_idCollege'];
|
|
$p_datedebut= $paramrequetes['p_debutStat'];
|
|
$p_datefin= $paramrequetes['p_finStat'];
|
|
$recapcolleges = $this->detailsp->getrecapbeneficierecollegeEffet($p_garant, $p_id_clients, $p_id, $p_id_college, $p_datedebut, $p_datefin);
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($recapcolleges , true) . ";\n>");
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 3px 3px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
}
|
|
.border2 td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 6px 3px;
|
|
text-align: left;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
font-weight: bold;
|
|
}
|
|
.border2
|
|
{
|
|
color: black;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.33p { width: 33%; }.12p { width: 12%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 9px;
|
|
text-align: left;
|
|
padding: 5px 3px;
|
|
}
|
|
.entete{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
color: black;
|
|
text-align: left;
|
|
|
|
padding: 10px 6px;
|
|
}
|
|
.entete td{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
padding:8px 6px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<?php
|
|
$idPoliceold="";
|
|
$idcollegeold ="";
|
|
$idcollegenew="";
|
|
$numeroAdherentold = "";
|
|
foreach($recapcolleges as $recapcollege){
|
|
foreach ($donnees as $donnee) {
|
|
if ($recapcollege['idCollege']== $donnee['idCollege']){
|
|
if ( $idPoliceold != $donnee['idPolice'] or $idcollegeold != $donnee['idCollege']) {
|
|
?>
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
ETAT DES ASSURES ET DEPENDANTS RETIRES
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES ASSURES ET DEPENDANTS RETIRES PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<table class="entete">
|
|
<tr style=" border-top: 1px solid #000; color: crimson;">
|
|
<td>
|
|
Garant :
|
|
</td>
|
|
<td >
|
|
<?php echo($donnee['codeGarant'])?>
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['Garant'])?>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000;">
|
|
<td>
|
|
Période du :
|
|
</td>
|
|
<td>
|
|
<?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</td>
|
|
<td>
|
|
Statut(s) concerné(s): ('A','C','D','E','G','K','X')
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: indigo;">
|
|
<td>
|
|
Souscripteur :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['nomClient'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: mediumseagreen;">
|
|
<td>
|
|
Police :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelle_police'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: hotpink;">
|
|
<td>
|
|
Collège :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelleCollege'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<table class="border2" >
|
|
<tr>
|
|
<td colspan=6 style=" font-size: 12px; padding: 10px 6px; text-align: left; border-bottom: none; color: hotpink;">Effectif collège : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr >
|
|
<tr style=" font-size: 12px; padding: 10px 6px;">
|
|
<td class="25p" style=" border-bottom: none; border-right: none; ">Assuré(e)s principal(e)s </td>
|
|
<td class="10p" style=" border: none; color: #4871E8; ">'A' : <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p" style=" border: none ;">Géniteur(Ascendant)</td>
|
|
<td class="10p"style=" border: none; color: indigo;"> : <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p" style=" border: none;">Autre(s) parent(s)</td>
|
|
<td class="5p"style=" border-bottom: none;">: 0</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style=" border-bottom: none; border-right: none">Conjoint(e)s </td>
|
|
<td class="10p"style=" border: none ; color: hotpink;">'C': <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p" style=" border: none;">Autres conjoint(e)s:</td>
|
|
<td class="10p"style=" border: none;">: <?php echo($recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p" style=" border: none;"></td>
|
|
<td class="5p"style=" border-bottom: none;" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style="border-right: none;">Enfants: </td>
|
|
<td class="10p" style="border-right: none; color: mediumseagreen;">'E': <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p" style="border-right: none;">Enfants supplementaire(s): </td>
|
|
<td class="10p" style="border-right: none;">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"style="border-right: none;"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
/* $idcollegeold =$donnee['idCollege'];
|
|
$idcollegenew="";*/
|
|
|
|
//foreach ($donnees as $data) {
|
|
//$idcollegenew = $data['idCollege']
|
|
// if ($idcollegeold!=$idcollegenew) {
|
|
?>
|
|
<table class="border">
|
|
|
|
<?php
|
|
if ($numeroAdherentold !=$donnee['numeroAdherent']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=8 style="border-left: none; border-right: none;"></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">Assuré(e)</th>
|
|
<th class="10p">Matricule</th>
|
|
<th class="12p">Souscripteur</th>
|
|
<th class="35p">Bénéficiaire</th>
|
|
<th class="8p">Statut</th>
|
|
<th class="8p">Genre</th>
|
|
<th class="8p">Age</th>
|
|
<th class="10p">Date effet</th>
|
|
</tr>
|
|
<thead >
|
|
<!-- <tr>
|
|
<th colspan=8 style="border-left=none;border-right=none;"></th>
|
|
</tr> -->
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
} ?>
|
|
<tbody>
|
|
<tr >
|
|
<td class="10p"><?php echo($donnee['numeroAdherent']);?> </td>
|
|
<td class="10p" ><?php echo($donnee['numeroBeneficiaire'])?></td>
|
|
<td class="12p"><?php echo($donnee['numeroPolice'])?></td>
|
|
<td class="33p" style=" text-align:left"><?php echo($donnee['Beneficiaire'])?></td>
|
|
<td class="8p"><?php echo($donnee['codeLienParente'])?></td>
|
|
<td class="8p"><?php echo($donnee['sexe'])?></td>
|
|
<td class="8p"><?php echo($donnee['ageBeneficiaire'])?></td>
|
|
<td class="10p"><?php echo dateLang($donnee['dateEffetBeneficiaire'], $_SESSION['lang'])?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php
|
|
$effectif= 0;
|
|
$effectif = count($donnee['Beneficiaire']);
|
|
$idcollegeold = $donnee['idCollege'];
|
|
$numeroAdherentold = $donnee['numeroAdherent'];
|
|
$idPoliceold = $donnee['idPolice'];
|
|
// }
|
|
//}
|
|
|
|
|
|
// if ($recapcollege['idCollege']== $idcollegeold) {
|
|
?>
|
|
<!-- <table class="border">
|
|
<tr>
|
|
<td colspan=6 >Effectif collège : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Assuré(e)s principal(e)s</td>
|
|
<td class="10p">: <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p">Géniteur(Ascendant)</td>
|
|
<td class="10p">: <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p">Autre(s) parent(s)</td>
|
|
<td class="5p">: <?php echo($recapcollege['ASSUREE'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Conjoint(e)s </td>
|
|
<td class="10p">: <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p">Autres conjoint(e)s:</td>
|
|
<td class="10p">: <?php echo($recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Enfants: </td>
|
|
<td class="10p">: <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p">Enfants supplementaire(s): </td>
|
|
<td class="10p">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table> -->
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0040": //RECAP POLICE EFFET
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
|
|
// highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
|
|
$p_garant = $paramrequetes['p_garant'];
|
|
$p_id_clients= $paramrequetes['p_idClient'];
|
|
$p_id= $paramrequetes['p_idPolice'];
|
|
$p_id_college= $paramrequetes['p_idCollege'];
|
|
$p_datedebut= $paramrequetes['p_debutStat'];
|
|
$p_datefin= $paramrequetes['p_finStat'];
|
|
$recapcolleges = $this->detailsp->getrecapbeneficierecollegeEffet($p_garant, $p_id_clients, $p_id, $p_id_college, $p_datedebut, $p_datefin);
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($recapcolleges , true) . ";\n>");
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 3px 3px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 3px;
|
|
text-align: center;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
}
|
|
.border2 td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 6px 3px;
|
|
text-align: left;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
word-wrap:break-word;
|
|
overflow-wrap:break-word;
|
|
font-weight: bold;
|
|
}
|
|
.border2
|
|
{
|
|
color: black;
|
|
margin-top:30px;
|
|
margin-bottom:100px;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 12%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.33p { width: 33%; }.12p { width: 12%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 9px;
|
|
text-align: left;
|
|
padding: 5px 3px;
|
|
}
|
|
.entete{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
color: black;
|
|
text-align: left;
|
|
|
|
padding: 10px 6px;
|
|
}
|
|
.entete td{
|
|
margin-top:30px;
|
|
margin-bottom:30px;
|
|
text-align: left;
|
|
font-size: 13px;
|
|
padding:8px 6px;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<?php
|
|
$idPoliceold="";
|
|
$idcollegeold ="";
|
|
$idcollegenew="";
|
|
$numeroAdherentold = "";
|
|
foreach($recapcolleges as $recapcollege){
|
|
foreach ($donnees as $donnee) {
|
|
if ($recapcollege['idPolice']== $donnee['idPolice']){
|
|
if ( $idPoliceold != $donnee['idPolice']) {
|
|
?>
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
ETAT DES ASSURES ET DEPENDANTS
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES ASSURES ET DEPENDANTS PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
|
|
|
|
<table class="entete">
|
|
<tr style=" border-top: 1px solid #000; color: crimson;">
|
|
<td>
|
|
Garant :
|
|
</td>
|
|
<td >
|
|
<?php echo($donnee['codeGarant'])?>
|
|
</td>
|
|
<!-- <td>
|
|
<?php echo($donnee['Garant'])?>
|
|
</td> -->
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000;">
|
|
<td>
|
|
Période du :
|
|
</td>
|
|
<td>
|
|
<?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</td>
|
|
<td>
|
|
Statut(s) concerné(s): ('A','C','D','E','G','K','X')
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: indigo;">
|
|
<td>
|
|
Souscripteur :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['idClient'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<tr style=" border-top: 1px solid #000; color: mediumseagreen;">
|
|
<td>
|
|
<br> Police :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelle_police'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
<!-- <tr style=" border-top: 1px solid #000; color: hotpink;">
|
|
<td>
|
|
Collège :
|
|
</td>
|
|
<td>
|
|
<?php echo($donnee['libelleCollege'])?>
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
|
|
</tr> -->
|
|
</table>
|
|
<table class="border2" >
|
|
<tr>
|
|
<td colspan=6 style=" font-size: 12px; padding: 10px 6px; text-align: left; border-bottom: none; color: hotpink;">Effectif Police : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr >
|
|
<tr style=" font-size: 12px; padding: 10px 6px;">
|
|
<td class="25p" style=" border-bottom: none; border-right: none; ">Assuré(e)s principal(e)s </td>
|
|
<td class="10p" style=" border: none; color: #4871E8; ">'A' : <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p" style=" border: none ;">Géniteur(Ascendant)</td>
|
|
<td class="10p"style=" border: none; color: indigo;"> : <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p" style=" border: none;">Autre(s) parent(s)</td>
|
|
<td class="5p"style=" border-bottom: none;">: <?php echo($recapcollege['ASSUREE'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style=" border-bottom: none; border-right: none">Conjoint(e)s </td>
|
|
<td class="10p"style=" border: none ; color: hotpink;">'C': <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p" style=" border: none;">Autres conjoint(e)s:</td>
|
|
<td class="10p"style=" border: none;">: 0 <?php //echo(//$recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p" style=" border: none;"></td>
|
|
<td class="5p"style=" border-bottom: none;" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style="border-right: none;">Enfants: </td>
|
|
<td class="10p" style="border-right: none; color: mediumseagreen;">'E': <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p" style="border-right: none;">Enfants supplementaire(s): </td>
|
|
<td class="10p" style="border-right: none;">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"style="border-right: none;"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table>
|
|
<table class="border2" >
|
|
<tr>
|
|
<td colspan=6 style=" font-size: 12px; padding: 10px 6px; text-align: left; border-bottom: none; color: hotpink;">Effectif Police : <?php echo($donnee['libelle_police'])?></td>
|
|
</tr >
|
|
<tr style=" font-size: 12px; padding: 10px 6px;">
|
|
<td class="25p" style=" border-bottom: none; border-right: none; ">Assuré(e)s principal(e)s </td>
|
|
<td class="10p" style=" border: none; color: #4871E8; ">'A' : <?php echo($donnee['ASSURE(E)'])?></td>
|
|
<td class="25p" style=" border: none ;">Géniteur(Ascendant)</td>
|
|
<td class="10p"style=" border: none; color: indigo;"> : <?php echo($donnee['ASCENDANT(E)'])?></td>
|
|
<td class="25p" style=" border: none;">Autre(s) parent(s)</td>
|
|
<td class="5p"style=" border-bottom: none;">: <?php echo($donnee['AUTRE DEPNDANT(E)'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style=" border-bottom: none; border-right: none">Conjoint(e)s </td>
|
|
<td class="10p"style=" border: none ; color: hotpink;">'C': <?php echo($donnee['CONJOINT(E)'])?> </td>
|
|
<td class="25p" style=" border: none;">Autres conjoint(e)s:</td>
|
|
<td class="10p"style=" border: none;">: <?php echo($donnee['AUTRE CONJOINT(E)'])?></td>
|
|
<td class="25p" style=" border: none;"></td>
|
|
<td class="5p"style=" border-bottom: none;" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p" style="border-right: none;">Enfants: </td>
|
|
<td class="10p" style="border-right: none; color: mediumseagreen;">'E': <?php echo($donnee['ENFANT(E)'])?> </td>
|
|
<td class="25p" style="border-right: none;">Enfants supplementaire(s): </td>
|
|
<td class="10p" style="border-right: none;">: <?php echo($donnee['AUTRE DEPNDANT(E)'])?></td>
|
|
<td class="25p"style="border-right: none;"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
/* $idcollegeold =$donnee['idCollege'];
|
|
$idcollegenew="";*/
|
|
|
|
//foreach ($donnees as $data) {
|
|
//$idcollegenew = $data['idCollege']
|
|
// if ($idcollegeold!=$idcollegenew) {
|
|
/* ?>
|
|
<table class="border">
|
|
|
|
<?php
|
|
if ($numeroAdherentold !=$donnee['numeroAdherent']) {
|
|
?>
|
|
<tr>
|
|
<td colspan=8 style="border-left: none; border-right: none;"></td>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">Assuré(e)</th>
|
|
<th class="10p">Matricule</th>
|
|
<th class="12p">Souscripteur</th>
|
|
<th class="35p">Bénéficiaire</th>
|
|
<th class="8p">Statut</th>
|
|
<th class="8p">Genre</th>
|
|
<th class="8p">Age</th>
|
|
<th class="10p">Date effet</th>
|
|
</tr>
|
|
<thead >
|
|
<!-- <tr>
|
|
<th colspan=8 style="border-left=none;border-right=none;"></th>
|
|
</tr> -->
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
} ?>
|
|
<tbody>
|
|
<tr >
|
|
<td class="10p"><?php echo($donnee['numeroAdherent']);?> </td>
|
|
<td class="10p" ><?php echo($donnee['numeroBeneficiaire'])?></td>
|
|
<td class="12p"><?php echo($donnee['numeroPolice'])?></td>
|
|
<td class="33p" style=" text-align:left"><?php echo($donnee['Beneficiaire'])?></td>
|
|
<td class="8p"><?php echo($donnee['codeLienParente'])?></td>
|
|
<td class="8p"><?php echo($donnee['sexe'])?></td>
|
|
<td class="8p"><?php echo($donnee['ageBeneficiaire'])?></td>
|
|
<td class="10p"><?php echo dateLang($donnee['dateEffetBeneficiaire'], $_SESSION['lang'])?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php */
|
|
$effectif= 0;
|
|
// $effectif = count($donnee['Beneficiaire']);
|
|
//$idcollegeold = $donnee['idCollege'];
|
|
// $numeroAdherentold = $donnee['numeroAdherent'];
|
|
$idPoliceold = $donnee['idPolice'];
|
|
// }
|
|
//}
|
|
|
|
|
|
// if ($recapcollege['idCollege']== $idcollegeold) {
|
|
?>
|
|
<!-- <table class="border">
|
|
<tr>
|
|
<td colspan=6 >Effectif collège : <?php echo($recapcollege['libelleCollege'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Assuré(e)s principal(e)s</td>
|
|
<td class="10p">: <?php echo($recapcollege['ASSUREE'])?></td>
|
|
<td class="25p">Géniteur(Ascendant)</td>
|
|
<td class="10p">: <?php echo($recapcollege['ASCENDANT'])?></td>
|
|
<td class="25p">Autre(s) parent(s)</td>
|
|
<td class="5p">: <?php echo($recapcollege['ASSUREE'])?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Conjoint(e)s </td>
|
|
<td class="10p">: <?php echo($recapcollege['CONJOINT'])?> </td>
|
|
<td class="25p">Autres conjoint(e)s:</td>
|
|
<td class="10p">: <?php echo($recapcollege['AUTRECOINJOINT'])?></td>
|
|
<td class="25p"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="25p">Enfants: </td>
|
|
<td class="10p">: <?php echo($recapcollege['ENFANT'])?> </td>
|
|
<td class="25p">Enfants supplementaire(s): </td>
|
|
<td class="10p">: <?php echo($recapcollege['AUTREDEPENDANT'])?></td>
|
|
<td class="25p"></td>
|
|
<td class="5p"></td>
|
|
</tr>
|
|
</table> -->
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0035": // evolution mensuelle des assurés par police effet
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
$datas =array();
|
|
ob_start();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8fce8f;
|
|
padding: 5px 0px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.22p { width: 22%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.6p { width: 6%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.7p { width: 7%; }
|
|
.5p { width: 5%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<page backtop="15mm" backleft="2mm" backright="2mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Evolution mensuelle des assurés par police
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
|
|
<table>
|
|
<tr>
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #8fce8f; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
EVOLUTION MENSUELLE DES ASSURE(E)S PAR POLICE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
</p>
|
|
<table style="margin-top: 30px;" class="border">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="22p">Police</th>
|
|
<th class="6p">Janvier</th>
|
|
<th class="6p">Février</th>
|
|
<th class="6p">Mars</th>
|
|
<th class="6p">Avril</th>
|
|
<th class="6p">Mai</th>
|
|
<th class="6p">Juin</th>
|
|
<th class="6p">Juillet</th>
|
|
<th class="6p">Août</th>
|
|
<th class="6p">Septembre</th>
|
|
<th class="6p">Octobre</th>
|
|
<th class="6p">Novembre</th>
|
|
<th class="6p">Décembre</th>
|
|
<th class="6p">Totaux</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$total_JANVIER = 0;
|
|
$total_FEVRIER = 0;
|
|
$total_MARS = 0;
|
|
$total_AVRIL = 0;
|
|
$total_MAI = 0;
|
|
$total_JUIN = 0;
|
|
$total_JUILLET = 0;
|
|
$total_AOUT = 0;
|
|
$total_SEPTEMBRE = 0;
|
|
$total_OCTOBRE = 0;
|
|
$total_NOVEMBRE = 0;
|
|
$total_DECEMBRE = 0;
|
|
$total_TOTAUX = 0;
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['idClient'] = $donnee['idClient'];
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libelle_police'] = $donnee['libelle_police'];
|
|
$datas['JANVIER'] = $donnee['JANVIER'];
|
|
$datas['FEVRIER'] = $donnee['FEVRIER'];
|
|
$datas['MARS'] = $donnee['MARS'];
|
|
$datas['AVRIL'] = $donnee['AVRIL'];
|
|
$datas['MAI'] = $donnee['MAI'];
|
|
$datas['JUIN'] = $donnee['JUIN'];
|
|
$datas['JUILLET'] = $donnee['JUILLET'];
|
|
$datas['AOUT'] = $donnee['AOUT'];
|
|
$datas['SEPTEMBRE'] = $donnee['SEPTEMBRE'];
|
|
$datas['OCTOBRE'] = $donnee['OCTOBRE'];
|
|
$datas['NOVEMBRE'] = $donnee['NOVEMBRE'];
|
|
$datas['DECEMBRE'] = $donnee['DECEMBRE'];
|
|
$datas['TOTAUX'] = $donnee['TOTAUX'];
|
|
|
|
$total_JANVIER = $total_JANVIER + $datas['JANVIER'];
|
|
$total_FEVRIER = $total_FEVRIER + $datas['FEVRIER'];
|
|
$total_MARS = $total_MARS + $datas['MARS'];
|
|
$total_AVRIL = $total_AVRIL + $datas['AVRIL'];
|
|
$total_MAI = $total_MAI + $datas['MAI'];
|
|
$total_JUIN = $total_JUIN + $datas['JUIN'];
|
|
$total_JUILLET = $total_JUILLET + $datas['JUILLET'];
|
|
$total_AOUT = $total_AOUT + $datas['AOUT'];
|
|
$total_SEPTEMBRE = $total_SEPTEMBRE + $datas['SEPTEMBRE'];
|
|
$total_OCTOBRE = $total_OCTOBRE + $datas['OCTOBRE'];
|
|
$total_NOVEMBRE = $total_NOVEMBRE + $datas['NOVEMBRE'];
|
|
$total_DECEMBRE = $total_DECEMBRE + $datas['DECEMBRE'];
|
|
$total_TOTAUX = $total_TOTAUX + $datas['TOTAUX'];
|
|
?>
|
|
<tr>
|
|
<td class="22p"style="text-align: left;"><?php echo($datas['libelle_police']); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['JANVIER']));?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['FEVRIER'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['MARS'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['AVRIL'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['MAI'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['JUIN'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['JUILLET'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['AOUT'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['SEPTEMBRE'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['OCTOBRE'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['NOVEMBRE'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['DECEMBRE'])); ?></td>
|
|
<td class="6p" style="text-align: right;"><?php echo(format_N($datas['TOTAUX'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr style=" font-weight: bold; font-size: 10px; border: 2px solid #000; background: #8fce8f;">
|
|
<td style="text-align: left;">TOTAL GENERAL</td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JANVIER));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_FEVRIER)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MARS)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AVRIL)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MAI)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUIN)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUILLET)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AOUT)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_SEPTEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_OCTOBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_NOVEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_DECEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_TOTAUX)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</page>
|
|
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('EVOLUTION MENSUELLE DES BENEFICIAIRES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_EVOLUTION_MENSUELLE_DES_BENEFICIAIRES"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
|
|
|
|
break;
|
|
case "vitalis0036": // evolution mensuelle des assurés par police entrée
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
$datas =array();
|
|
ob_start();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8fce8f;
|
|
padding: 5px 0px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.6p { width: 6%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.7p { width: 7%; }
|
|
.5p { width: 5%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<page backtop="15mm" backleft="2mm" backright="2mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Evolution mensuelle des assurés par police
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
|
|
<table>
|
|
<tr>
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #8fce8f; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
EVOLUTION MENSUELLE DES ASSURE(E)S PAR POLICE (entrée)
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
</p>
|
|
<table style="margin-top: 30px;" class="border">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="6p">Police</th>
|
|
<th class="6p">Janvier</th>
|
|
<th class="6p">Février</th>
|
|
<th class="6p">Mars</th>
|
|
<th class="6p">Avril</th>
|
|
<th class="5p">Mai</th>
|
|
<th class="6p">Juin</th>
|
|
<th class="6p">Juillet</th>
|
|
<th class="6p">Août</th>
|
|
<th class="6p">Septembre</th>
|
|
<th class="6p">Octobre</th>
|
|
<th class="6p">Novembre</th>
|
|
<th class="6p">Décembre</th>
|
|
<th class="5p">Totaux</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$total_JANVIER = 0;
|
|
$total_FEVRIER = 0;
|
|
$total_MARS = 0;
|
|
$total_AVRIL = 0;
|
|
$total_MAI = 0;
|
|
$total_JUIN = 0;
|
|
$total_JUILLET = 0;
|
|
$total_AOUT = 0;
|
|
$total_SEPTEMBRE = 0;
|
|
$total_OCTOBRE = 0;
|
|
$total_NOVEMBRE = 0;
|
|
$total_DECEMBRE = 0;
|
|
$total_TOTAUX = 0;
|
|
foreach ($donnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['idClient'] = $donnee['idClient'];
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libelle_police'] = $donnee['libelle_police'];
|
|
$datas['JANVIER'] = $donnee['JANVIER'];
|
|
$datas['FEVRIER'] = $donnee['FEVRIER'];
|
|
$datas['MARS'] = $donnee['MARS'];
|
|
$datas['AVRIL'] = $donnee['AVRIL'];
|
|
$datas['MAI'] = $donnee['MAI'];
|
|
$datas['JUIN'] = $donnee['JUIN'];
|
|
$datas['JUILLET'] = $donnee['JUILLET'];
|
|
$datas['AOUT'] = $donnee['AOUT'];
|
|
$datas['SEPTEMBRE'] = $donnee['SEPTEMBRE'];
|
|
$datas['OCTOBRE'] = $donnee['OCTOBRE'];
|
|
$datas['NOVEMBRE'] = $donnee['NOVEMBRE'];
|
|
$datas['DECEMBRE'] = $donnee['DECEMBRE'];
|
|
$datas['TOTAUX'] = $donnee['TOTAUX'];
|
|
|
|
$total_JANVIER = $total_JANVIER + $datas['JANVIER'];
|
|
$total_FEVRIER = $total_FEVRIER + $datas['FEVRIER'];
|
|
$total_MARS = $total_MARS + $datas['MARS'];
|
|
$total_AVRIL = $total_AVRIL + $datas['AVRIL'];
|
|
$total_MAI = $total_MAI + $datas['MAI'];
|
|
$total_JUIN = $total_JUIN + $datas['JUIN'];
|
|
$total_JUILLET = $total_JUILLET + $datas['JUILLET'];
|
|
$total_AOUT = $total_AOUT + $datas['AOUT'];
|
|
$total_SEPTEMBRE = $total_SEPTEMBRE + $datas['SEPTEMBRE'];
|
|
$total_OCTOBRE = $total_OCTOBRE + $datas['OCTOBRE'];
|
|
$total_NOVEMBRE = $total_NOVEMBRE + $datas['NOVEMBRE'];
|
|
$total_DECEMBRE = $total_DECEMBRE + $datas['DECEMBRE'];
|
|
$total_TOTAUX = $total_TOTAUX + $datas['TOTAUX'];
|
|
?>
|
|
<tr>
|
|
<td style="text-align: left;"><?php echo($datas['libelle_police']); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JANVIER']));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['FEVRIER'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MARS'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AVRIL'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MAI'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUIN'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUILLET'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AOUT'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['SEPTEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['OCTOBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['NOVEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['DECEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['TOTAUX'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr style=" font-weight: bold; font-size: 10px; border: 2px solid #000; background: #8fce8f;">
|
|
<td style="text-align: left;">TOTAL GENERAL</td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JANVIER));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_FEVRIER)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MARS)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AVRIL)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MAI)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUIN)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUILLET)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AOUT)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_SEPTEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_OCTOBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_NOVEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_DECEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_TOTAUX)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</page>
|
|
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('Etat des hopitalisations par affections');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_SP_FICHE10"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
|
|
|
|
break;
|
|
case "vitalis0037": // evolution mensuelle des assurés par college effet
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
$datas =array();
|
|
ob_start();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8fce8f;
|
|
padding: 5px 0px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 3px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.6p { width: 6%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.7p { width: 7%; }
|
|
.5p { width: 5%; }.14p { width: 14%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<page backtop="15mm" backleft="2mm" backright="2mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Evolution mensuelle des assurés par police
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
|
|
<table>
|
|
<tr>
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #8fce8f; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
EVOLUTION MENSUELLE DES ASSURE(E)S PAR POLICE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE CONSIDEREE <?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
<p style=" margin-top: 15px; font-weight: bold; font-size: 14px; text-align: left;">
|
|
<i>
|
|
<?php
|
|
foreach($donnees as $donnee){
|
|
|
|
}
|
|
|
|
?>
|
|
<u>GARANT</u>
|
|
: <?php echo($donnee['Garant'])?> <br><br>
|
|
</i>
|
|
</p>
|
|
|
|
<table style="margin-top: 30px;" class="border">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="14p">Police</th>
|
|
<th class="6p">Colleges</th>
|
|
<th class="5p">Janvier</th>
|
|
<th class="5p">Février</th>
|
|
<th class="5p">Mars</th>
|
|
<th class="5p">Avril</th>
|
|
<th class="5p">Mai</th>
|
|
<th class="5p">Juin</th>
|
|
<th class="5p">Juillet</th>
|
|
<th class="5p">Août</th>
|
|
<th class="6p">Septembre</th>
|
|
<th class="5p">Octobre</th>
|
|
<th class="5p">Novembre</th>
|
|
<th class="5p">Décembre</th>
|
|
<th class="5p">Totaux</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$total_JANVIER = 0;
|
|
$total_FEVRIER = 0;
|
|
$total_MARS = 0;
|
|
$total_AVRIL = 0;
|
|
$total_MAI = 0;
|
|
$total_JUIN = 0;
|
|
$total_JUILLET = 0;
|
|
$total_AOUT = 0;
|
|
$total_SEPTEMBRE = 0;
|
|
$total_OCTOBRE = 0;
|
|
$total_NOVEMBRE = 0;
|
|
$total_DECEMBRE = 0;
|
|
$total_TOTAUX = 0;
|
|
foreach ($donnees as $donnee) {
|
|
$datas['libellePolice'] = $donnee['codeGarant'];
|
|
$datas['libellePolice'] = $donnee['idClient'];
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libelleCollege'] = $donnee['libelleCollege'];
|
|
$datas['libelle_police'] = $donnee['libelle_police'];
|
|
$datas['JANVIER'] = $donnee['JANVIER'];
|
|
$datas['FEVRIER'] = $donnee['FEVRIER'];
|
|
$datas['MARS'] = $donnee['MARS'];
|
|
$datas['AVRIL'] = $donnee['AVRIL'];
|
|
$datas['MAI'] = $donnee['MAI'];
|
|
$datas['JUIN'] = $donnee['JUIN'];
|
|
$datas['JUILLET'] = $donnee['JUILLET'];
|
|
$datas['AOUT'] = $donnee['AOUT'];
|
|
$datas['SEPTEMBRE'] = $donnee['SEPTEMBRE'];
|
|
$datas['OCTOBRE'] = $donnee['OCTOBRE'];
|
|
$datas['NOVEMBRE'] = $donnee['NOVEMBRE'];
|
|
$datas['DECEMBRE'] = $donnee['DECEMBRE'];
|
|
$datas['TOTAUX'] = $donnee['TOTAUX'];
|
|
|
|
$total_JANVIER = $total_JANVIER + $datas['JANVIER'];
|
|
$total_FEVRIER = $total_FEVRIER + $datas['FEVRIER'];
|
|
$total_MARS = $total_MARS + $datas['MARS'];
|
|
$total_AVRIL = $total_AVRIL + $datas['AVRIL'];
|
|
$total_MAI = $total_MAI + $datas['MAI'];
|
|
$total_JUIN = $total_JUIN + $datas['JUIN'];
|
|
$total_JUILLET = $total_JUILLET + $datas['JUILLET'];
|
|
$total_AOUT = $total_AOUT + $datas['AOUT'];
|
|
$total_SEPTEMBRE = $total_SEPTEMBRE + $datas['SEPTEMBRE'];
|
|
$total_OCTOBRE = $total_OCTOBRE + $datas['OCTOBRE'];
|
|
$total_NOVEMBRE = $total_NOVEMBRE + $datas['NOVEMBRE'];
|
|
$total_DECEMBRE = $total_DECEMBRE + $datas['DECEMBRE'];
|
|
$total_TOTAUX = $total_TOTAUX + $datas['TOTAUX'];
|
|
?>
|
|
<tr>
|
|
<td class="14p" style="text-align: left;"><?php echo($datas['libelle_police']); ?></td>
|
|
<td style="text-align: left;"><?php echo($datas['libelleCollege']); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JANVIER']));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['FEVRIER'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MARS'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AVRIL'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MAI'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUIN'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUILLET'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AOUT'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['SEPTEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['OCTOBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['NOVEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['DECEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['TOTAUX'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr style=" font-weight: bold; font-size: 10px; border: 2px solid #000; background: #8fce8f;">
|
|
<td colspan=2 style="text-align: left;">TOTAL GENERAL</td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JANVIER));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_FEVRIER)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MARS)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AVRIL)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MAI)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUIN)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUILLET)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AOUT)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_SEPTEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_OCTOBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_NOVEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_DECEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_TOTAUX)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</page>
|
|
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('Etat des hopitalisations par affections');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_SP_FICHE10"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
|
|
|
|
break;
|
|
case "vitalis0038": // evolution mensuelle des assurés par college entrée
|
|
$debutStat= $paramrequetes['p_debutStat'];
|
|
$finStat = $paramrequetes['p_finStat'];
|
|
$datas =array();
|
|
$data =array();
|
|
ob_start();
|
|
|
|
if($paramrequetes['p_idClient'] =='0'){
|
|
$paramrequetes['p_idClient'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idPolice'] =='0'){
|
|
$paramrequetes['p_idPolice'] = NULL;
|
|
}
|
|
if($paramrequetes['p_idCollege'] =='0'){
|
|
$paramrequetes['p_idCollege'] = NULL;
|
|
}
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes['p_idClient'], true) . ";\n>");
|
|
|
|
$requetedonnees = $this->detailsp->getevolutionmenspolicecollegeentre($paramrequetes['p_garant'], $paramrequetes['p_idClient'], $paramrequetes['p_idPolice'], $paramrequetes['p_idCollege'], $debutStat, $finStat);
|
|
highlight_string("<?php\n\$datas =\n" . var_export($requetedonnees , true) . ";\n>");
|
|
// highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
die();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8fce8f;
|
|
padding: 5px 0px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.6p { width: 6%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.7p { width: 7%; }
|
|
.5p { width: 5%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<page backtop="15mm" backleft="2mm" backright="2mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Evolution mensuelle des assurés par police
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
</page_footer>
|
|
<table>
|
|
<tr>
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #8fce8f; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
EVOLUTION MENSUELLE DES ASSURE(E)S PAR POLICE ET PAR COLLEGE
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
PERIODE CONSIDEREE <?php echo dateLang($debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
<?php
|
|
foreach ($requetedonnees as $donnee){
|
|
|
|
$data['codeGarant'] = $donnee['codeGarant'];
|
|
$data['Garant'] = $donnee['Garant'];
|
|
}
|
|
?>
|
|
|
|
|
|
<p style=" margin-top: 15px; font-weight: bold; font-size: 14px; text-align: left;">
|
|
<i><u>GARANT</u> : <?php echo($data['codeGarant'].' / '.$data['Garant'])?> <br><br>
|
|
</i>
|
|
</p>
|
|
|
|
<table style="margin-top: 30px;" class="border">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="6">Police</th>
|
|
<th class="6p">Collège</th>
|
|
<th class="6p">Janvier</th>
|
|
<th class="5p">Février</th>
|
|
<th class="5p">Mars</th>
|
|
<th class="5p">Avril</th>
|
|
<th class="5p">Mai</th>
|
|
<th class="5p">Juin</th>
|
|
<th class="5p">Juillet</th>
|
|
<th class="5p">Août</th>
|
|
<th class="5p">Septembre</th>
|
|
<th class="5p">Octobre</th>
|
|
<th class="5p">Novembre</th>
|
|
<th class="5p">Décembre</th>
|
|
<th class="5p">Totaux</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$total_JANVIER = 0;
|
|
$total_FEVRIER = 0;
|
|
$total_MARS = 0;
|
|
$total_AVRIL = 0;
|
|
$total_MAI = 0;
|
|
$total_JUIN = 0;
|
|
$total_JUILLET = 0;
|
|
$total_AOUT = 0;
|
|
$total_SEPTEMBRE = 0;
|
|
$total_OCTOBRE = 0;
|
|
$total_NOVEMBRE = 0;
|
|
$total_DECEMBRE = 0;
|
|
$total_TOTAUX = 0;
|
|
foreach ($requetedonnees as $donnee) {
|
|
$datas['codeGarant'] = $donnee['codeGarant'];
|
|
$datas['idClient'] = $donnee['idClient'];
|
|
$datas['numeroPolice'] = $donnee['numeroPolice'];
|
|
$datas['idPolice'] = $donnee['idPolice'];
|
|
$datas['libelle_police'] = $donnee['libelle_police'];
|
|
$datas['idCollege'] = $donnee['idCollege'];
|
|
$datas['libelleCollege'] = $donnee['libelleCollege'];
|
|
$datas['JANVIER'] = $donnee['JANVIER'];
|
|
$datas['FEVRIER'] = $donnee['FEVRIER'];
|
|
$datas['MARS'] = $donnee['MARS'];
|
|
$datas['AVRIL'] = $donnee['AVRIL'];
|
|
$datas['MAI'] = $donnee['MAI'];
|
|
$datas['JUIN'] = $donnee['JUIN'];
|
|
$datas['JUILLET'] = $donnee['JUILLET'];
|
|
$datas['AOUT'] = $donnee['AOUT'];
|
|
$datas['SEPTEMBRE'] = $donnee['SEPTEMBRE'];
|
|
$datas['OCTOBRE'] = $donnee['OCTOBRE'];
|
|
$datas['NOVEMBRE'] = $donnee['NOVEMBRE'];
|
|
$datas['DECEMBRE'] = $donnee['DECEMBRE'];
|
|
$datas['TOTAUX'] = $donnee['TOTAUX'];
|
|
|
|
$total_JANVIER = $total_JANVIER + $datas['JANVIER'];
|
|
$total_FEVRIER = $total_FEVRIER + $datas['FEVRIER'];
|
|
$total_MARS = $total_MARS + $datas['MARS'];
|
|
$total_AVRIL = $total_AVRIL + $datas['AVRIL'];
|
|
$total_MAI = $total_MAI + $datas['MAI'];
|
|
$total_JUIN = $total_JUIN + $datas['JUIN'];
|
|
$total_JUILLET = $total_JUILLET + $datas['JUILLET'];
|
|
$total_AOUT = $total_AOUT + $datas['AOUT'];
|
|
$total_SEPTEMBRE = $total_SEPTEMBRE + $datas['SEPTEMBRE'];
|
|
$total_OCTOBRE = $total_OCTOBRE + $datas['OCTOBRE'];
|
|
$total_NOVEMBRE = $total_NOVEMBRE + $datas['NOVEMBRE'];
|
|
$total_DECEMBRE = $total_DECEMBRE + $datas['DECEMBRE'];
|
|
$total_TOTAUX = $total_TOTAUX + $datas['TOTAUX'];
|
|
?>
|
|
<tr>
|
|
<td style="text-align: left;"><?php echo($datas['libelle_police']); ?></td>
|
|
<td style="text-align: left;"><?php echo($datas['libelleCollege']); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JANVIER']));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['FEVRIER'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MARS'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AVRIL'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['MAI'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUIN'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['JUILLET'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['AOUT'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['SEPTEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['OCTOBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['NOVEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['DECEMBRE'])); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($datas['TOTAUX'])); ?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr style=" font-weight: bold; font-size: 10px; border: 2px solid #000; background: #8fce8f;">
|
|
<td colspan=2 style="text-align: left;">TOTAL GENERAL</td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JANVIER));?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_FEVRIER)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MARS)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AVRIL)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_MAI)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUIN)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_JUILLET)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_AOUT)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_SEPTEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_OCTOBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_NOVEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_DECEMBRE)); ?></td>
|
|
<td style="text-align: right;"><?php echo(format_N($total_TOTAUX)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</page>
|
|
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('Etat des hopitalisations par affections');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/Requetepersoevolution"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
case "vitalis0022": // RECAP PAR PRESTATAIRE
|
|
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.12p { width: 12%; }
|
|
.7p { width: 7%; }.35p { width: 35%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="25mm" backleft="10mm" backright="10mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="50p" style="text-align: left;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:90px;height:80px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: center;">
|
|
|
|
</td>
|
|
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo dateCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style="margin-top: 15px; border: 1px solid #000; color: black; background: #90EE90; padding: 8px 15px; font-weight: bold; font-size: 20px; text-align: center;">
|
|
BORDEREAUX DE REGLEMENT EN TIERS PAYANT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_finStat)?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
|
|
<thead>
|
|
<!-- <?php foreach ($donnees as $donnee) {
|
|
|
|
}?> -->
|
|
<tr>
|
|
<th colspan=2 style="text-align: left; font-size: 14px;padding: 8px 8px; ">GARANT : <?php echo($donnee['codeGarant']); ?></th>
|
|
<th colspan=5 style="text-align: left;font-size: 14px;"><?php echo($donnee['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th colspan=7 style="text-align: right;padding: 8px 8px;font-size: 14px;font-weight: normal; background: white; " >Date comptable :<?php echo dateLang($p_finStat)?> </th>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="12p" >DATE PAIEMENT</th>
|
|
<th class="7p" >COMPTE</th>
|
|
<th class="35p">BENEFICIAIRE</th>
|
|
<th class="12p">MONTANT RECLAME</th>
|
|
<th class="12p">BASE DE REGLEMENT</th>
|
|
<th class="12p">MONTANT DEBIT</th>
|
|
<th class="12p">MONTANT CREDIT</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$total_montantFacture=
|
|
$total_apresDecompte=
|
|
$total_Coutmoyen=
|
|
$total_Taux= 0;
|
|
|
|
foreach ($donnees as $donnee) {
|
|
?>
|
|
<tr>
|
|
<td class="12p" ><?php echo dateLang($p_finStat, $_SESSION['lang']); ?></td>
|
|
<td class="7p"><?php echo($donnee['Compte']); ?></td>
|
|
<td class="35p"style="text-align: left;"><?php echo($donnee['Beneficiaire']); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo(format_N($donnee['MontantReclame'])); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo(format_N($donnee['BaseReglement'])); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo (format_N($donnee['MontantDebit']));?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo (format_N($donnee['Montantcredit']));?></td>
|
|
</tr>
|
|
<?php
|
|
$total_montantFacture= $total_montantFacture + $donnee['MontantReclame'];
|
|
$total_apresDecompte= $total_apresDecompte + $donnee['BaseReglement'];
|
|
$total_Coutmoyen= $total_Coutmoyen + $donnee['MontantDebit'];
|
|
$total_Taux= $total_Taux + $donnee['Montantcredit'];
|
|
}
|
|
$nblignes = count($donnees);
|
|
?>
|
|
<tr style=" padding: 8px 8px;font-size: 14px; font-weight: bold; border: 2px solid #000; background: #90EE90;">
|
|
<td colspan=3 style="font-size: 14px; padding: 8px 8px;"><?php echo ($donnee['garant'])?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_montantFacture));?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_apresDecompte)); ?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_Taux)); ?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_Coutmoyen)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p style=" margin-top: 20px; padding: 10px; font-weight: bold; font-size: 11px; "> Nombre de ligne :    <?php echo ($nblignes);?></p>
|
|
<p style=" margin-top: 20px; padding: 20px; font-weight: bold; font-size: 13px; "> <u>Pour le departement des prestation</u>
|
|
|
|
<u>Pour la Direction Financière</u>
|
|
|
|
<u>Pour la Direction Générale</u> </p>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0044": // RECAP PAR CONTRAT
|
|
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 12px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.12p { width: 12%; }
|
|
.7p { width: 7%; }.35p { width: 35%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="25mm" backleft="10mm" backright="10mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="50p" style="text-align: left;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:90px;height:80px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: center;">
|
|
|
|
</td>
|
|
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo dateCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style="margin-top: 15px; border: 1px solid #000; color: black; background: #90EE90; padding: 8px 15px; font-weight: bold; font-size: 20px; text-align: center;">
|
|
RECAPITULATIF DES DEPENSES PAR CONTRAT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_finStat)?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
|
|
<thead>
|
|
<!-- <?php foreach ($donnees as $donnee) {
|
|
|
|
}?> -->
|
|
<tr>
|
|
<th colspan=2 style="text-align: left; font-size: 14px;padding: 8px 8px; ">GARANT : <?php echo($donnee['codeGarant']); ?></th>
|
|
<th colspan=5 style="text-align: left;font-size: 14px;"><?php echo($donnee['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th colspan=7 style="text-align: right;padding: 8px 8px;font-size: 14px;font-weight: normal; background: white; " >Date comptable :<?php echo dateLang($p_finStat)?> </th>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="12p">DATE PAIEMENT</th>
|
|
<th class="7p">NUMERO POLICE</th>
|
|
<th class="35p">POLICE</th>
|
|
<th class="12p">MONTANT RECLAME</th>
|
|
<th class="12p">BASE DE REGLEMENT</th>
|
|
<th class="12p">MONTANT DEBIT</th>
|
|
<th class="12p">MONTANT CREDIT</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$total_montantFacture=
|
|
$total_apresDecompte=
|
|
$total_Coutmoyen=
|
|
$total_Taux= 0;
|
|
|
|
foreach ($donnees as $donnee) {
|
|
?>
|
|
<tr>
|
|
<td class="12p" ><?php echo dateLang($p_debutStat, $_SESSION['lang']); ?></td>
|
|
<td class="7p"><?php echo($donnee['numeroPolice']); ?></td>
|
|
<td class="35p"style="text-align: left;"><?php echo($donnee['Police']); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo(format_N($donnee['MontantReclame'])); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo(format_N($donnee['BaseRemboursement'])); ?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo (format_N($donnee['MontantDebit']));?></td>
|
|
<td class="12p"style="text-align: right;"><?php echo (format_N($donnee['MontantCredit']));?></td>
|
|
</tr>
|
|
<?php
|
|
$total_montantFacture= $total_montantFacture + $donnee['MontantReclame'];
|
|
$total_apresDecompte= $total_apresDecompte + $donnee['BaseRemboursement'];
|
|
$total_Coutmoyen= $total_Coutmoyen + $donnee['MontantDebit'];
|
|
$total_Taux= $total_Taux + $donnee['MontantCredit'];
|
|
}
|
|
$nblignes = count($donnees);
|
|
?>
|
|
<tr style=" padding: 8px 8px;font-size: 14px; font-weight: bold; border: 2px solid #000; background: #90EE90;">
|
|
<td colspan=3 style="font-size: 14px; padding: 8px 8px;"><?php echo ($donnee['garant'])?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_montantFacture));?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_apresDecompte)); ?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_Taux)); ?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_Coutmoyen)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p style=" margin-top: 20px; padding: 10px; font-weight: bold; font-size: 11px; "> Nombre de ligne :    <?php echo ($nblignes);?></p>
|
|
<p style=" margin-top: 20px; padding: 20px; font-weight: bold; font-size: 13px; "> <u>Pour le departement des prestation</u>
|
|
|
|
<u>Pour la Direction Financière</u>
|
|
|
|
<u>Pour la Direction Générale</u> </p>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0025": // RECAP PAR des remboursements directs
|
|
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 3px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.12p { width: 12%; }
|
|
.8p { width: 8%; } .24p { width: 24%; }
|
|
.7p { width: 7%; } .22p { width: 22%; }
|
|
.6p { width: 6%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="25mm" backleft="2mm" backright="2mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="50p" style="text-align: left;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:90px;height:80px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: center;">
|
|
|
|
</td>
|
|
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo dateCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style="margin-top: 15px; border: 1px solid #000; color: black; background: #90EE90; padding: 8px 15px; font-weight: bold; font-size: 20px; text-align: center;">
|
|
BORDEREAUX DE REGLEMENTS EN REMBOURSEMENT DIRECT
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS SANTE<br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_finStat)?>
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
|
|
<thead>
|
|
<!-- <?php foreach ($donnees as $donnee) {
|
|
|
|
}?> -->
|
|
<tr>
|
|
<th colspan=3 style="text-align: left; font-size: 14px;padding: 8px 8px; ">GARANT : <?php echo($donnee['codeGarant']); ?></th>
|
|
<th colspan=7 style="text-align: left;font-size: 14px;"><?php echo($donnee['garant']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th colspan=10 style="text-align: right;padding: 8px 8px;font-size: 14px;font-weight: normal; background: white; " >Date comptable :<?php echo dateLang($p_finStat)?> </th>
|
|
|
|
</tr>
|
|
<tr>
|
|
<th class="6p">DATE PAIEMENT</th>
|
|
<th class="15p">POLICE</th>
|
|
<th class="6p">MATRICULE ADHERENT</th>
|
|
<th class="20p">ADHERENT</th>
|
|
<th class="7p">MATRICULE BENEFICIAIRE</th>
|
|
<th class="20p">BENEFICIAIRE</th>
|
|
<th class="8p">MONTANT RECLAME</th>
|
|
<th class="8p">BASE DE REGLEMENT</th>
|
|
<th class="8p">MONTANT CREDIT</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$total_montantFacture=
|
|
$total_apresDecompte=
|
|
$total_Coutmoyen=
|
|
$total_Taux= 0;
|
|
|
|
foreach ($donnees as $donnee) {
|
|
?>
|
|
<tr>
|
|
<td class="6p" ><?php echo ($donnee['DatePaiement']); ?></td>
|
|
<td class="15p" style="text-align: left;"><?php echo($donnee['Police']); ?></td>
|
|
<td class="6p"><?php echo($donnee['MatriculeAdherent']); ?></td>
|
|
<td class="20p"style="text-align: left;"><?php echo($donnee['Adherent']); ?></td>
|
|
<td class="7p"><?php echo($donnee['MatriculeBeneficiaire']); ?></td>
|
|
<td class="20p"style="text-align: left;"><?php echo($donnee['Beneficiaire']); ?></td>
|
|
<td class="8p"style="text-align: right;"><?php echo(format_N($donnee['MontantReclame'])); ?></td>
|
|
<td class="8p"style="text-align: right;"><?php echo(format_N($donnee['BaseReglement'])); ?></td>
|
|
<td class="8p"style="text-align: right;"><?php echo (format_N($donnee['Montantcredit']));?></td>
|
|
</tr>
|
|
<?php
|
|
$total_montantFacture= $total_montantFacture + $donnee['MontantReclame'];
|
|
$total_apresDecompte= $total_apresDecompte + $donnee['BaseReglement'];
|
|
$total_Coutmoyen= $total_Coutmoyen + $donnee['MontantDebit'];
|
|
$total_Taux= $total_Taux + $donnee['Montantcredit'];
|
|
}
|
|
$nblignes = count($donnees);
|
|
?>
|
|
<tr style=" padding: 8px 8px;font-size: 14px; font-weight: bold; border: 2px solid #000; background: #90EE90;">
|
|
<td colspan=6 style="font-size: 14px; padding: 8px 8px;"><?php echo ($donnee['garant'])?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_montantFacture));?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_apresDecompte)); ?></td>
|
|
<td style="text-align: right; font-size: 14px; padding: 8px 8px;"><?php echo(format_N($total_Taux)); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p style=" margin-top: 20px; padding: 10px; font-weight: bold; font-size: 11px; "> Nombre de ligne :    <?php echo ($nblignes);?></p>
|
|
<p style=" margin-top: 20px; padding: 20px; font-weight: bold; font-size: 13px; "> <u>Pour le departement des prestation</u>
|
|
|
|
<u>Pour la Direction Financière</u>
|
|
|
|
<u>Pour la Direction Générale</u> </p>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("l", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0047": // RECAP PAR GARANT PAR PRESTATAIRE
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8ecd8e;
|
|
padding: 2px 2px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 2px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.30p { width: 30%; }.12p { width: 12%; }.11p { width: 11%; }.13p { width: 13%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Etat des dépenses garant par prestataire
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES DEPENSES GARANT PAR PRESTATAIRE
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
|
|
<?php
|
|
$total_depenses = 0 ;
|
|
$prestataire_old= "";
|
|
foreach($donnees as $donnee){
|
|
|
|
$depensesprestatires = $this->requetesperso->depensePrestataire($paramrequetes['p_debutStat'],$paramrequetes['p_finStat'],$donnee['Compte']);
|
|
//var_dump($depensesprestatire);
|
|
//die();
|
|
$total_depenses = 0;
|
|
?>
|
|
|
|
|
|
<tr >
|
|
<td colspan=6 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left;background: #f1f2ff; border-right: solid; border-left: none; padding: 3px;" ><?php echo('Prestataire : '.$donnee['Compte']); ?></th>
|
|
<th colspan=5 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;" ><?php echo($donnee['Beneficiaire']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="11p">Code</th>
|
|
<th class="40p">Garant</th>
|
|
<th class="13p">Montant réclamé</th>
|
|
<th class="12p">Base reglement</th>
|
|
<th class="11p">Montant débit</th>
|
|
<th class="12p">Montant crédit</th>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($depensesprestatires as $key => $depensesprestatire) {
|
|
$datas['Compte'] = $depensesprestatire['Compte'];
|
|
$datas['garant'] = $depensesprestatire['garant'];
|
|
$datas['codeGarant'] = $depensesprestatire['codeGarant'];
|
|
$datas['Beneficiaire'] = $depensesprestatire['Beneficiaire'];
|
|
$datas['MontantReclame'] = $depensesprestatire['MontantReclame'];
|
|
$datas['BaseReglement'] = $depensesprestatire['BaseReglement'];
|
|
$datas['MontantDebit'] = $depensesprestatire['MontantDebit'];
|
|
$datas['Montantcredit'] = $depensesprestatire['Montantcredit'];
|
|
|
|
/* if ($prestataire['Compte'] == $datas['Compte']) { */
|
|
|
|
$total_depenses = $total_depenses + $datas['Montantcredit'];
|
|
|
|
?>
|
|
|
|
<tr>
|
|
|
|
<td class="11p"><?php echo($datas['codeGarant']);?></td>
|
|
<td class="40p"style="text-align: left;"><?php echo($datas['garant']);?></td>
|
|
<td class="13p" ><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td class="12p"><?php echo(format_N($datas['BaseReglement']));?></td>
|
|
<td class="11p" ><?php echo(format_N($datas['MontantDebit']));?></td>
|
|
<td class="12p" ><?php echo(format_N($datas['Montantcredit']));?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
/* } */
|
|
}
|
|
|
|
?> </tbody>
|
|
<tr>
|
|
<td colspan=6 style="text-align: left; font-weight: bold;background: #8ecd8e;"> TOTAL DEPENSES : <?php echo(format_N($total_depenses));?></td>
|
|
</tr>
|
|
<?php }
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
//die();
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0040":
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$codePrestataire_rp = "";
|
|
$montantPrestatiare_rp = 0;
|
|
|
|
$p_debutStat = $paramrequetes['p_codeMois'];
|
|
// highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #39304a;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 2px solid #000;
|
|
color: black;
|
|
background: #90EE90;
|
|
padding: 4px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 11px;
|
|
padding: 5px 2px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Factures mensuelles en doublon
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
VitalisSanté
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
LISTE DES FACTURES MENSUELLES EN DOUBLON
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
VITALIS <br><br>
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo ($p_debutStat)?> MOIS
|
|
</p>
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
<?php
|
|
foreach ($donnees as $donnee) {
|
|
$datas['prestataire'] = $donnee['prestataire'];
|
|
$datas['numeroFeuilleMaladie'] = $donnee['numeroFeuilleMaladie'];
|
|
$datas['idBeneficiaire'] = $donnee['idBeneficiaire'];
|
|
$datas['fraisReel'] = $donnee['fraisReel'];
|
|
$datas['montantArembourser'] = $donnee['montantArembourser'];
|
|
$datas['dateSysteme'] = $donnee['dateSysteme'];
|
|
//highlight_string("<?php\n\$data =\n" . var_export($data, true) . ";\n>");
|
|
?>
|
|
<thead style="border-top: double;">
|
|
<tr style="border-top: double;">
|
|
<th class="">Prestataire</th>
|
|
<th class="15p">No Feuille Maladie</th>
|
|
<th class="15p">id Beneficiaire</th>
|
|
<th class="15p">frais Reel</th>
|
|
<th class="15p">Montant A rembourser</th>
|
|
<th class="15p">date Systeme</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="25p" style="text-align: left;"><?php echo($datas['prestataire']); ?></td>
|
|
<td class="15p"><?php echo($datas['numeroFeuilleMaladie']); ?></td>
|
|
<td class="15p"><?php echo($datas['idBeneficiaire']); ?></td>
|
|
<td class="15p"><?php echo(format_N($datas['fraisReel'])); ?></td>
|
|
<td class="15p"><?php echo(format_N($datas['montantArembourser'])); ?></td>
|
|
<td class="15p"><?php echo dateLang($datas['dateSysteme'], $_SESSION['lang']); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
//$prestataire_old= $g['Compte'];
|
|
|
|
} ?>
|
|
</table>
|
|
|
|
<?php
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0048": // RECAP PAR famille PAR PRESTATAIRE
|
|
|
|
highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start(); ?>
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8ecd8e;
|
|
padding: 2px 2px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 2px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.30p { width: 30%; }.12p { width: 12%; }.11p { width: 11%; }.13p { width: 13%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
Etat des dépenses par famille
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES DEPENSES PAR FAMILLE D'ASSURES
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
|
|
</p>
|
|
<p style=" margin-top: 15px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
|
|
|
|
<table style="margin-top: 40px;" class="border">
|
|
|
|
<?php
|
|
$total_depenses = 0 ;
|
|
$prestataire_old= "";
|
|
|
|
foreach($donnees as $donnee){
|
|
|
|
$depensesfamilles = $this->requetesperso->depensefamille($paramrequetes['p_debutStat'],$paramrequetes['p_finStat'],$donnee['MatriculeAssurePrincipal']);
|
|
|
|
|
|
//var_dump($depensesprestatire);
|
|
//die();
|
|
$total_depenses =
|
|
$total_TM =
|
|
$total_factures= 0;
|
|
?>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left;background: #f1f2ff; border-right: solid; border-left: none; padding: 3px;" ><?php echo('Famille: '.$donnee['MatriculeAssurePrincipal']); ?></th>
|
|
<th colspan=6 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;" ><?php echo($donnee['NomAssurePrincipal']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
|
|
<th class="25p">Bénéficiaire</th>
|
|
<th class="8p">Date de soin</th>
|
|
<th class="25p">Prestataire</th>
|
|
<th class="12p">Prestation</th>
|
|
<th class="10p">Montant réclamé</th>
|
|
<th class="10p">Tm</th>
|
|
<th class="10p">Montant remboursé</th>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($depensesfamilles as $key => $depensesfamille) {
|
|
$datas['codeGarant'] = $depensesfamille['codeGarant'];
|
|
$datas['Garant'] = $depensesfamille['Garant'];
|
|
$datas['Souscripteur'] = $depensesfamille['Souscripteur'];
|
|
$datas['MatriculeAssurePrincipal'] = $depensesfamille['MatriculeAssurePrincipal'];
|
|
$datas['NomAssurePrincipal'] = $depensesfamille['NomAssurePrincipal'];
|
|
$datas['MatriculeAssureBeneficiaire'] = $depensesfamille['MatriculeAssureBeneficiaire'];
|
|
$datas['NomBeneficiairePrincipal'] = $depensesfamille['NomBeneficiairePrincipal'];
|
|
$datas['LienParente'] = $depensesfamille['LienParente'];
|
|
$datas['DatedeSoins'] = $depensesfamille['DatedeSoins'];
|
|
$datas['Prestataire'] = $depensesfamille['Prestataire'];
|
|
$datas['FamillePrestation'] = $depensesfamille['FamillePrestation'];
|
|
$datas['Quantité'] = $depensesfamille['Quantité'];
|
|
$datas['MontantReclame'] = $depensesfamille['MontantReclame'];
|
|
$datas['BaseRemboursement'] = $depensesfamille['BaseRemboursement'];
|
|
$datas['MontantTM'] = $depensesfamille['MontantTM'];
|
|
$datas['MontantPaye'] = $depensesfamille['MontantPaye'];
|
|
|
|
|
|
/* if ($prestataire['Compte'] == $datas['Compte']) { */
|
|
|
|
$total_depenses = $total_depenses + $datas['MontantPaye'];
|
|
$total_factures = $total_factures + $datas['MontantReclame'];
|
|
$total_TM = $total_TM + $datas['MontantTM'];
|
|
|
|
?>
|
|
|
|
<tr>
|
|
<td class="25p"style="text-align: left;"><?php echo($datas['NomBeneficiairePrincipal']);?></td>
|
|
<td class="8p" ><?php echo dateLang($datas['DatedeSoins']);?></td>
|
|
<td class="25p"style="text-align: left;" ><?php echo($datas['Prestataire']);?></td>
|
|
<td class="12p" ><?php echo($datas['FamillePrestation']);?></td>
|
|
<td class="10p"><?php echo(format_N($datas['MontantReclame']));?></td>
|
|
<td class="10p" ><?php echo(format_N($datas['MontantTM']));?></td>
|
|
<td class="10p" ><?php echo(format_N($datas['MontantPaye']));?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
/* } */
|
|
}
|
|
|
|
?> </tbody>
|
|
<tr>
|
|
<td colspan=4 style="text-align: left; font-weight: bold;background: #B4CAFF; font-size: 12px;"> TOTAL ASSURE(E) :<?php echo($datas['NomAssurePrincipal']);?></td>
|
|
<td class="10p" style="text-align: left; font-weight: bold;background: #B4CAFF;font-size: 12px;"><?php echo(format_N($total_factures));?></td>
|
|
<td class="10p" style="text-align: left; font-weight: bold;background: #B4CAFF;font-size: 12px;"><?php echo(format_N($total_TM));?></td>
|
|
<td class="10p" style="text-align: left; font-weight: bold;background: #B4CAFF;font-size: 12px;"><?php echo(format_N($total_depenses));?></td>
|
|
</tr>
|
|
|
|
<?php }
|
|
?>
|
|
|
|
</table>
|
|
<?php
|
|
//die();
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUER"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0051": // RECAP PAR famille PAR PRESTATAIRE new
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($paramrequetes , true) . ";\n>");
|
|
$p_debutStat = $paramrequetes['p_debutStat'];
|
|
$p_finStat = $paramrequetes['p_finStat'];
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($donnees , true) . ";\n>");
|
|
|
|
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
ob_start();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: black;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border-top: double;
|
|
border: 1px solid #000;
|
|
color: black;
|
|
background: #8ecd8e;
|
|
padding: 2px 2px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
padding: 3px 3px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.40p { width: 40%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.30p { width: 30%; }.12p { width: 12%; }.11p { width: 11%; }.13p { width: 13%; }
|
|
.90p { width: 90%;}.8p { width: 8%; }.7p { width: 7%; }.29p { width: 29%; }
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
ETAT DES DEPENSES PAR FAMILLE
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
Edition du : <?php echo heureCouranteLang($_SESSION['lang']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
Vitalis Santé
|
|
</page_footer>
|
|
</page>
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #90EE90; padding: 5px 15px; font-weight: bold; font-size: 18px; text-align: center;">
|
|
ETAT DES DEPENSES PAR FAMILLE D'ASSURES
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|
|
<p style=" margin-top: 10px; padding: 5px; color:#FC3F2C;font-weight: bold; font-size: 18px; text-align: center;">
|
|
<?php echo ($donnee['libellePolice']); ?>
|
|
</p>
|
|
<p style=" margin-top: 10px; padding: 5px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
PERIODE COMPTABLE CONSIDEREE <?php echo dateLang($p_debutStat, $_SESSION['lang']).' '._('AU').' '.dateLang($p_finStat, $_SESSION['lang']); ?>
|
|
</p>
|
|
<table style="margin-top: 20px;" class="border">
|
|
<?php
|
|
$total_depenses = 0 ;
|
|
$total_factureg =
|
|
$total_depensesg =0;
|
|
$beneficiaireold= "";
|
|
|
|
$p_garant =$paramrequetes['p_garant'];
|
|
$p_id_client=$paramrequetes['p_idClient'];
|
|
$p_idPolice= $paramrequetes['p_idPolice'];
|
|
$p_id_college= $paramrequetes['p_idCollege'];
|
|
$p_debutStat= $paramrequetes['p_debutStat'];
|
|
$p_finStat= $paramrequetes['p_finStat'];
|
|
|
|
//parcours de l'assure
|
|
foreach($donnees as $donnee){
|
|
$p_idAdherent = "";
|
|
$p_idAdherent = $donnee['numeroAdherent'];
|
|
|
|
|
|
|
|
?>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;font-size: 11px;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left;background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ><?php echo('Assuré(e) : '.$donnee['numeroAdherent']); ?></th>
|
|
<th colspan=2 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ><?php echo($donnee['adherent'] );?></th>
|
|
<th colspan=4 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ></th>
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
//recuperer les details assures
|
|
|
|
|
|
$depensesfamilles = $this->detailsp->etatdetailledepensefamAssure($p_idAdherent,$p_debutStat,$p_finStat);
|
|
|
|
//parcourir les details assures
|
|
foreach ($depensesfamilles as $key => $depensesfamille) {
|
|
$p_numeroBeneficiaire = "";
|
|
$p_numeroBeneficiaire = $depensesfamille['numeroBeneficiaire'];
|
|
?>
|
|
<tr >
|
|
<td colspan=7 style="border-right: none; border-left: none; border-bottom: none;font-size: 11px;" > </td>
|
|
</tr>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th style="text-align: left;background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ><?php echo('Patient(e) : '.$depensesfamille['numeroBeneficiaire']); ?></th>
|
|
<th colspan=2 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ><?php echo($depensesfamille['Beneficiaire'] );?></th>
|
|
<th colspan=4 style="text-align: left; background: #f1f2ff; border-right: none; border-left: none; padding: 3px;font-size: 11px;" ></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="29p">Bénéficiaire</th>
|
|
<th class="8p">Date de soin</th>
|
|
<th class="29p">Prestataire</th>
|
|
<th class="10p">Prestation</th>
|
|
<th class="7p">code affection</th>
|
|
<th class="8p">Montant facture</th>
|
|
<th class="8p">Montant remboursé</th>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
$depensesbeneficiaires = $this->detailsp->etatdetaillebeneficiaire($p_numeroBeneficiaire,$p_debutStat,$p_finStat);
|
|
|
|
$total_depenses = 0;
|
|
$total_facture = 0;
|
|
?>
|
|
|
|
<?php
|
|
foreach ($depensesbeneficiaires as $key => $depensesbeneficiaire) {
|
|
$datas['DatePaiement'] = $depensesbeneficiaire['DatePaiement'];
|
|
$datas['id'] = $depensesbeneficiaire['id'];
|
|
$datas['numeroPolice'] = $depensesbeneficiaire['numeroPolice'];
|
|
$datas['libellePolice'] = $depensesbeneficiaire['libellePolice'];
|
|
$datas['Compte'] = $depensesbeneficiaire['Compte'];
|
|
$datas['Prestataire'] = $depensesbeneficiaire['Prestataire'];
|
|
$datas['codeActe'] = $depensesbeneficiaire['codeActe'];
|
|
$datas['codeMedecin'] = $depensesbeneficiaire['codeMedecin'];
|
|
$datas['dateSoins'] = $depensesbeneficiaire['dateSoins'];
|
|
$datas['CodeAffection'] = $depensesbeneficiaire['CodeAffection'];
|
|
$datas['typePrestation'] = $depensesbeneficiaire['typePrestation'];
|
|
$datas['numeroAdherent'] = $depensesbeneficiaire['numeroAdherent'];
|
|
$datas['adherent'] = $depensesbeneficiaire['adherent'];
|
|
$datas['numeroBeneficiaire'] = $depensesbeneficiaire['numeroBeneficiaire'];
|
|
$datas['Beneficiaire'] = $depensesbeneficiaire['Beneficiaire'];
|
|
$datas['montantFacture'] = $depensesbeneficiaire['montantFacture'];
|
|
$datas['montantRembourse'] = $depensesbeneficiaire['montantRembourse'];
|
|
|
|
//$depensesbeneficiaires = $this->detailsp->etatdetailledepensefamAssure($p_idAdherent,$p_debutStat,$p_finStat);
|
|
// highlight_string("<?php\n\$datas =\n" . var_export($depensesbeneficiaire, true) . ";\n>");
|
|
|
|
?>
|
|
<tbody>
|
|
<tr>
|
|
<td class="29p"style="text-align: left;"><?php echo($datas['Beneficiaire']);?></td>
|
|
<td class="8p" ><?php echo dateLang($datas['dateSoins']);?></td>
|
|
<td class="29p" style="text-align: left;" ><?php echo($datas['Prestataire']);?></td>
|
|
<td class="10p" ><?php echo($datas['codeActe']);?></td>
|
|
<td class="7p"><?php echo($datas['CodeAffection']);?></td>
|
|
<td class="8p" ><?php echo(format_N($datas['montantFacture']));?></td>
|
|
<td class="8p" ><?php echo(format_N($datas['montantRembourse']));?></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=5 style="text-align: left; font-weight: bold;background: #F5FBC1;"> TOTAL PATIENT :</td>
|
|
<td class="8p" style="text-align: right; font-weight: bold;background: #F5FBC1;"><?php echo(format_N($depensesfamille['montantFacture']));?></td>
|
|
<td class="8p" style="text-align: right; font-weight: bold;background: #F5FBC1;"><?php echo(format_N( $depensesfamille['montantRembourse']));?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=5 style="text-align: left; font-weight: bold;background: #B4CAFF; font-size: 12px;"> TOTAL ASSURE(E) :<?php echo($donnee['adherent']);?></td>
|
|
<td class="8p" style="text-align: right; font-weight: bold;background: #B4CAFF;font-size: 12px;"><?php echo(format_N($donnee['montantFacture']));?></td>
|
|
<td class="8p" style="text-align: right; font-weight: bold;background: #B4CAFF;font-size: 12px;"><?php echo(format_N($donnee['montantRembourse']));?></td>
|
|
</tr>
|
|
<?php
|
|
$total_factureg = $total_factureg + $donnee['montantFacture'] ;
|
|
$total_depensesg = $total_depensesg +$donnee['montantRembourse'] ;
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($depensesbeneficiaires, true) . ";\n>");
|
|
//die();
|
|
}
|
|
?>
|
|
<tr>
|
|
<td colspan=5 style="text-align: left; font-weight: bold;background: #FF4A57; font-size: 12px;"> TOTAL GENERAL :</td>
|
|
<td style="text-align: right; font-weight: bold;background: #FF4A57;font-size: 12px;"><?php echo(format_N($total_factureg));?></td>
|
|
<td style="text-align: right; font-weight: bold;background: #FF4A57;font-size: 12px;"><?php echo(format_N($total_depensesg ));?></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
//die();
|
|
$content = ob_get_clean();
|
|
try {
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
//$pdf = new HTML2PDF("p","A4","fr");
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('ETATS PERSONNALISES');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, Etat, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/TMP_CUMUL_QUERY"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
case "vitalis0052": // Reseau de soin
|
|
|
|
$datas = array();
|
|
$grand = array();
|
|
foreach ($donnees as $donnee) {
|
|
|
|
}
|
|
if ($nbLignes>0) {
|
|
$datas =array();
|
|
ob_start();
|
|
?>
|
|
|
|
<style type="text/css">
|
|
table {
|
|
width: 100%;
|
|
color: #000;
|
|
border-collapse: collapse;
|
|
}
|
|
h2 { margin: 0; padding: 0px; }
|
|
p { margin: 5px; }
|
|
.no-border td {
|
|
border: none;
|
|
padding: 4px 2px;
|
|
|
|
}
|
|
.border th {
|
|
border: 1px solid #000;
|
|
color: black;
|
|
padding: 2px 2px;
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
text-align: center; }
|
|
.border td {
|
|
border: 1px solid #000;
|
|
font-size: 10px;
|
|
padding: 2px 4px;
|
|
text-align: center;
|
|
}
|
|
.space { padding-top: 250px; }
|
|
.45p { width: 45%; }.20p { width: 20%; }
|
|
.10p { width: 10%; } .15p { width: 15%; }
|
|
.5p { width: 5%; } .12p { width: 15%; }
|
|
.25p { width: 25%; } .50p { width: 50%; }
|
|
.60p { width: 60%; } .75p { width: 75%; }
|
|
.100p { width: 100%;}.20p { width: 20%; }
|
|
.90p { width: 90%;}.35p { width: 35%;}
|
|
.8p { width: 8%;}.12p { width: 12%;}
|
|
.32p { width: 32%;}.40p { width: 40%;}
|
|
.header
|
|
{
|
|
width:100%;
|
|
font-size: 10px;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
<page backtop="15mm" backleft="3mm" backright="3mm" backbottom="10mm" footer="page;">
|
|
<page_header>
|
|
<table class="header">
|
|
<tr>
|
|
<td class="25p" style="text-align: left;">
|
|
VITALIS SANTE
|
|
</td>
|
|
<td class="50p" style="text-align: center;">
|
|
<img src="<?php echo($_SESSION['lienLogo']); ?>" style="width:50px;height:40px;"/>
|
|
</td>
|
|
<td class="25p" style="text-align: right;">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</page_header>
|
|
<page_footer>
|
|
|
|
</page_footer>
|
|
<?php
|
|
foreach ($donnees as $p_facture) {
|
|
|
|
}
|
|
?>
|
|
|
|
<table>
|
|
<tr >
|
|
<td class="100p" style=" border: 1px solid #000; color: black; background: #9FF781; padding: 5px 10px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
RESEAU DE SOINS DE || <p style="color: #5990f2;"><?php echo($donnee['Police']); ?></p>
|
|
</td>
|
|
</tr>
|
|
<tr >
|
|
<td class="100p" style=" color: #FF0040; background: #9FF781; padding: 5px 10px; font-weight: bold; font-size: 16px; text-align: center;">
|
|
<?php echo($donnee['libelleCollege']); ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table style="margin-top: 30px;" class="border">
|
|
|
|
<?php
|
|
$TypeP_old= "";
|
|
$localite_old= "";
|
|
$TypeP_old= "";
|
|
$total_montantFacture=
|
|
$total_apresDecompte=
|
|
$total_Coutmoyen=
|
|
$total_Taux= 0;
|
|
foreach ($donnees as $p_facture) {
|
|
|
|
$datas['idPolice'] = $p_facture['idPolice'];
|
|
$datas['numeroPolice'] = $p_facture['numeroPolice'];
|
|
$datas['Police'] = $p_facture['Police'];
|
|
$datas['idCollege'] = $p_facture['idCollege'];
|
|
$datas['ibelleCollege'] = $p_facture['ibelleCollege'];
|
|
$datas['codeLocalite'] = $p_facture['codeLocalite'];
|
|
$datas['localite'] = $p_facture['localite'];
|
|
$datas['codeTypePrestataire'] = $p_facture['codeTypePrestataire'];
|
|
$datas['typeprestataire'] = $p_facture['typeprestataire'];
|
|
$datas['CODE'] = $p_facture['CODE'];
|
|
$datas['Prestataire'] = $p_facture['Prestataire'];
|
|
$datas['situation'] = $p_facture['situation'];
|
|
$datas['TelephoneFixe'] = $p_facture['TelephoneFixe'];
|
|
$datas['telephonePortable'] = $p_facture['telephonePortable'];
|
|
|
|
if ($localite_old!=$datas['localite'])
|
|
{?>
|
|
<tr style="color: black;" >
|
|
<th colspan=5 style="text-align: center; font-size: 14px;color: #1A06F7; background: #fdffc9; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['localite']); ?></th>
|
|
</tr>
|
|
<?php
|
|
}
|
|
if ($TypeP_old!=$datas['typeprestataire']) {
|
|
if ($datas['typeprestataire'] != "typeprestataire") {
|
|
?>
|
|
<tr style="color: black; background: #8DC3F0;" >
|
|
<th colspan=5 style="text-align: center; font-size: 14px; background: #f1f2ff; border-right: none; border-left: none; padding: 8px;" ><?php echo($datas['typeprestataire']); ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th class="8p">CODE</th>
|
|
<th class="40p">PRESTATAIRE</th>
|
|
<th class="32p">ADRESSE</th>
|
|
<th class="10p">Téléphone</th>
|
|
<th class="10p">FAX</th>
|
|
</tr>
|
|
<thead>
|
|
<tr>
|
|
</tr>
|
|
</thead>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
<tbody>
|
|
<tr>
|
|
<td class="8p"><?php echo($datas['CODE']); ?></td>
|
|
<td class="40p" style="text-align: left;"><?php echo($datas['Prestataire']);?></td>
|
|
<td class="32p" style="text-align: left;"><?php echo($datas['situation']);?></td>
|
|
<td class="10p" style="text-align: right;"><?php echo($datas['telephonePortable']);?></td>
|
|
<td class="10p"style="text-align: right;"><?php echo($datas['TelephoneFixe']); ?></td>
|
|
</tr>
|
|
</tbody>
|
|
<?php
|
|
$TypeP_old = $datas['typeprestataire'];
|
|
$localite_old =$datas['localite'];
|
|
}
|
|
?>
|
|
</table>
|
|
</page>
|
|
|
|
<?php
|
|
|
|
$content = ob_get_clean();
|
|
try {
|
|
|
|
// $pdf->setTestIsImage(false);
|
|
$pdf = new HTML2PDF("p", "A4", "fr");
|
|
$pdf->pdf->SetAuthor('Vitalissanté');
|
|
$pdf->pdf->SetSubject('Etat des dépenses par prestataires médicaux');
|
|
$pdf->pdf->SetKeywords('HTML2PDF, ETATSTATS, PHP');
|
|
$pdf->writeHTML($content);
|
|
$fichier="Temp/Reseau de soin"."_".uniqid().".pdf";
|
|
$pdf->Output($fichier, "F");
|
|
$pdf->pdf->SetTitle($fichier);
|
|
$t_html =' <div id ="div_export_a" class="alert alert-info"> ';
|
|
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > TELECHARGER </a> ';
|
|
$t_html .=' </div> ';
|
|
echo $t_html;
|
|
} catch (HTML2PDF_exception $e) {
|
|
die($e);
|
|
}
|
|
} else {
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Résultat vide!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
}
|
|
break;
|
|
default:
|
|
$t_html ='<div class="alert alert-danger"> ';
|
|
$t_html .=' <H4> '._("Pas encore disponible!").' </H4> ';
|
|
$t_html .=' </div>';
|
|
echo $t_html;
|
|
break;
|
|
}
|
|
}
|
|
|
|
}
|