Merge branch 'main' of git.ebene.ovh:ebene/radiantrh
This commit is contained in:
commit
9f7486a95f
32
Controleur/ControleurAjaxbeneficiaireprimeadherent.php
Normal file
32
Controleur/ControleurAjaxbeneficiaireprimeadherent.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Emission.php';
|
||||
|
||||
class ControleurAjaxbeneficiaireprimeadherent extends Controleur
|
||||
{
|
||||
private $emission;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->emission = new Emission();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$debutPeriode = $this->requete->getParametreDate("debutPeriode");
|
||||
$finPeriode = $this->requete->getParametreDate("finPeriode");
|
||||
|
||||
$beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode);
|
||||
|
||||
$beneficiaires_total = null;
|
||||
|
||||
if(count($beneficiaires)>"0")
|
||||
{
|
||||
$beneficiaires_total = $beneficiaires['0'];
|
||||
}
|
||||
|
||||
$this->genererVueAjax(array('beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total));
|
||||
}
|
||||
}
|
||||
22
Controleur/ControleurAjaxfacturesfamille.php
Normal file
22
Controleur/ControleurAjaxfacturesfamille.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
class ControleurAjaxfacturesfamille extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
|
||||
$factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ;
|
||||
|
||||
$this->genererVueAjax(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,13 @@
|
|||
<?php
|
||||
require_once 'vendor/autoload.php';
|
||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||
|
||||
require_once 'Framework/Controleurrequete.php'; // OK
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Avenant.php';
|
||||
|
||||
|
||||
class ControleurAjaximporterlisteassure extends Controleurrequete
|
||||
{
|
||||
private $beneficiaire;
|
||||
|
|
@ -21,7 +26,8 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
|||
public function initimportermodele()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
$avenants = $this->avenant->getAvenant($idPolice);
|
||||
// $avenants = $this->avenant->getAvenant($idPolice);
|
||||
$avenants = $this->avenant->getAvenantIncorporation($idPolice);
|
||||
|
||||
$this->genererVueAjax(array('avenants' => $avenants));
|
||||
}
|
||||
|
|
@ -50,17 +56,17 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
|||
);
|
||||
|
||||
$dataXLS = array();
|
||||
|
||||
|
||||
foreach ($beneficiaires as $beneficiaire)
|
||||
{
|
||||
$dataXLS[]=$beneficiaire;
|
||||
}
|
||||
|
||||
$classeur = new PHPExcel();
|
||||
$classeur = new Spreadsheet();
|
||||
$classeur->getProperties()->setCreator("INTER-SANTE");
|
||||
$classeur->setActiveSheetIndex(0);
|
||||
$feuille=$classeur->getActiveSheet();
|
||||
|
||||
$feuille->setTitle(_('MODELE ASSURES'));
|
||||
$feuille->fromArray($headerXLS, NULL, 'A1', true);
|
||||
$feuille->fromArray($dataXLS, NULL, 'A2', true);
|
||||
|
|
@ -68,7 +74,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
|||
//Forcer le téléchargement vers le navigateur;
|
||||
$fichier = 'Temp/TEMPLATE_LISTE_ASSURE'."_".uniqid().".xlsx";
|
||||
|
||||
$writer = new PHPExcel_Writer_Excel2007($classeur);
|
||||
$writer = new Xlsx($classeur);
|
||||
$writer->save($fichier);
|
||||
|
||||
$t_html =' <div class="alert alert-success"> ';
|
||||
|
|
@ -98,6 +104,7 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
|||
exit();
|
||||
}
|
||||
|
||||
/*
|
||||
$docXLS = new PHPExcel_Reader_Excel2007();
|
||||
|
||||
$Excel = $docXLS->load($fichier);
|
||||
|
|
@ -105,6 +112,12 @@ class ControleurAjaximporterlisteassure extends Controleurrequete
|
|||
$Excel->setActiveSheetIndex(0);
|
||||
|
||||
$feuille=$Excel->getActiveSheet();
|
||||
*/
|
||||
|
||||
$docXLS = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
|
||||
$Excel = $docXLS->load($fichier);
|
||||
$feuille = $Excel->getSheet($Excel->getFirstSheetIndex());
|
||||
|
||||
|
||||
$derniereLigne = $feuille->getHighestRow();
|
||||
$derniereColonne = $feuille->getHighestColumn();
|
||||
|
|
|
|||
24
Controleur/ControleurAjaxlistegedpolice.php
Normal file
24
Controleur/ControleurAjaxlistegedpolice.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Ged.php';;
|
||||
|
||||
class ControleurAjaxlistegedpolice extends Controleur {
|
||||
private $ged;
|
||||
|
||||
public function __construct() {
|
||||
$this->ged = new Ged();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
unset($_FILES['fichier_upload']);
|
||||
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
$nomOrigine = $this->requete->getParametreFormulaire("nomOrigine");
|
||||
|
||||
$geds = $this->ged->getgedpolice($d1, $d2, $nomOrigine);
|
||||
|
||||
$this->genererVueAjax(array('geds' => $geds));
|
||||
}
|
||||
}
|
||||
50
Controleur/ControleurAjaxsppolice.php
Normal file
50
Controleur/ControleurAjaxsppolice.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaxsppolice extends Controleur
|
||||
{
|
||||
private $sppolice;
|
||||
|
||||
public function __construct() {
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->genererVueAjax();
|
||||
}
|
||||
|
||||
public function police()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolice = $this->sppolice->getRapportSpPolicePol($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolice' => $sppolice));
|
||||
}
|
||||
|
||||
public function categorie()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolices = $this->sppolice->getRapportSpPoliceCat($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolices' => $sppolices));
|
||||
}
|
||||
|
||||
public function college()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppolices = $this->sppolice->getRapportSpPoliceCol($idPolice, $dj);
|
||||
|
||||
$this->genererVueAjax(array('sppolices' => $sppolices));
|
||||
}
|
||||
}
|
||||
99
Controleur/ControleurAjaxsyntheseconsopolice.php
Normal file
99
Controleur/ControleurAjaxsyntheseconsopolice.php
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
<?php
|
||||
|
||||
require_once 'vendor/autoload.php';
|
||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||
|
||||
require_once 'Framework/Controleurrequete.php'; // OK
|
||||
require_once 'Modele/Police.php';
|
||||
|
||||
class ControleurAjaxsyntheseconsopolice extends Controleurrequete
|
||||
{
|
||||
private $police;
|
||||
|
||||
public function __construct() {
|
||||
$this->police = new Police();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$conommations = $this->police->getsyntheseconsopolice() ;
|
||||
|
||||
$this->genererVueAjax(array('conommations' => $conommations));
|
||||
}
|
||||
|
||||
public function exportxls()
|
||||
{
|
||||
|
||||
$conommations = $this->police->getsyntheseconsopolice() ;
|
||||
|
||||
// Excel
|
||||
$headerXLS = array
|
||||
(
|
||||
"dateReference",
|
||||
"idAderent",
|
||||
_('No Adhérent'),
|
||||
_('Adhérent'),
|
||||
"primeStat",
|
||||
"primeTtc",
|
||||
|
||||
"plafond_OUT",
|
||||
"consommation_OUT",
|
||||
"solde_OUT",
|
||||
|
||||
"plafond_INP",
|
||||
"consommation_INP",
|
||||
"solde_INP",
|
||||
|
||||
"plafond_OPT",
|
||||
"consommation_OPT",
|
||||
"solde_OPT",
|
||||
|
||||
"plafond_MON",
|
||||
"consommation_MON",
|
||||
"solde_MON",
|
||||
|
||||
"plafond_DEN",
|
||||
"consommation_DEN",
|
||||
"solde_DEN",
|
||||
|
||||
"plafond_FUN",
|
||||
"consommation_FUN",
|
||||
"solde_FUN",
|
||||
"consommation_ALL"
|
||||
);
|
||||
|
||||
$dataXLS = array();
|
||||
|
||||
|
||||
foreach ($conommations as $conommation)
|
||||
{
|
||||
$dataXLS[]=$conommation;
|
||||
}
|
||||
|
||||
$classeur = new Spreadsheet();
|
||||
$classeur->getProperties()->setCreator("INTER-SANTE");
|
||||
$classeur->setActiveSheetIndex(0);
|
||||
$feuille=$classeur->getActiveSheet();
|
||||
|
||||
$feuille->setTitle(_('SYNTHESE CONSOMMATIONS'));
|
||||
$feuille->fromArray($headerXLS, NULL, 'A1', true);
|
||||
$feuille->fromArray($dataXLS, NULL, 'A2', true);
|
||||
|
||||
//Forcer le téléchargement vers le navigateur;
|
||||
$fichier = 'Temp/TMP_SYNTHESE_CONS'."_".uniqid().".xlsx";
|
||||
|
||||
// $writer = new PHPExcel_Writer_Excel2007($classeur);
|
||||
$writer = new Xlsx($classeur);
|
||||
|
||||
$writer->save($fichier);
|
||||
|
||||
$t_html =' <div id ="div_detail_exp" class="alert alert-info"> ';
|
||||
$t_html .=' <a style="font-size:15pt;" href="'.$fichier.'" target="_blank" > '._("TELECHARGER").' </a> ';
|
||||
$t_html .=' </div ';
|
||||
echo $t_html;
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
}
|
||||
40
Controleur/ControleurBeneficiaireprimeadherent.php
Normal file
40
Controleur/ControleurBeneficiaireprimeadherent.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Emission.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
|
||||
class ControleurBeneficiaireprimeadherent extends Controleur
|
||||
{
|
||||
private $adherent;
|
||||
private $emission;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Beneficiaireprimeadherent");
|
||||
|
||||
$this->adherent = new Adherent();
|
||||
$this->emission = new Emission();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$adherent = $this->adherent->getAdherentId($idAdherent);
|
||||
$debutPeriode = $adherent['dateEffetAdherent'];
|
||||
$finPeriode = $adherent['dateFinPolice'];
|
||||
|
||||
$beneficiaires = $this->emission->getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode);
|
||||
|
||||
$beneficiaires_total = null;
|
||||
|
||||
if(count($beneficiaires)>"0")
|
||||
{
|
||||
$beneficiaires_total = $beneficiaires['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'beneficiaires_total' => $beneficiaires_total));
|
||||
}
|
||||
}
|
||||
44
Controleur/ControleurChangeretatadherent.php
Normal file
44
Controleur/ControleurChangeretatadherent.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Etatpersonne.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurChangeretatadherent extends Controleur {
|
||||
private $adherent;
|
||||
private $etatpersonne;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Changeretatadherent");
|
||||
|
||||
$this->adherent = new Adherent();
|
||||
$this->etatpersonne = new Etatpersonne;
|
||||
}
|
||||
public function index() {
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$adherent = $this->adherent->getAdherentId($idAdherent);
|
||||
|
||||
$oldcodeEtatPersonne = $adherent['codeEtatAdherent'];
|
||||
|
||||
$etatpersonne = $this->etatpersonne->getListeSuiteFam($oldcodeEtatPersonne);
|
||||
|
||||
$this->genererVue(array('adherent' => $adherent, 'etatpersonne' => $etatpersonne));
|
||||
}
|
||||
|
||||
public function enregistrer()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$codeEtatAdherent = $this->requete->getParametreFormulaire("codeEtatAdherent");
|
||||
$motifEtat = $this->requete->getParametreFormulaire("motifEtat");
|
||||
$dateEtat = $this->requete->getParametreDate("dateEtat");
|
||||
|
||||
$this->adherent->changeretat($idAdherent, $codeEtatAdherent, $motifEtat, $dateEtat);
|
||||
|
||||
// $this->rediriger("Ficheadherent");
|
||||
// $this->rediriger("Ficheadherent", $_SESSION['idAdherent_C']);
|
||||
$this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']);
|
||||
}
|
||||
}
|
||||
43
Controleur/ControleurChangeretatbeneficiaire.php
Normal file
43
Controleur/ControleurChangeretatbeneficiaire.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Etatpersonne.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurChangeretatbeneficiaire extends Controleur {
|
||||
private $beneficiaire;
|
||||
private $etatpersonne;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Changeretatbeneficiaire");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
$this->etatpersonne = new Etatpersonne;
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$beneficiaire = $this->beneficiaire->getBeneficiaireId($idBeneficiaire);
|
||||
|
||||
$oldcodeEtatPersonne = $beneficiaire['codeEtatBeneficiaire'];
|
||||
|
||||
$etatpersonne = $this->etatpersonne->getListeSuiteDep($oldcodeEtatPersonne);
|
||||
|
||||
$this->genererVue(array('beneficiaire' => $beneficiaire, 'etatpersonne' => $etatpersonne));
|
||||
}
|
||||
|
||||
public function enregistrer()
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
|
||||
$codeEtatBeneficiaire = $this->requete->getParametreFormulaire("codeEtatBeneficiaire");
|
||||
$motifEtat = $this->requete->getParametreFormulaire("motifEtat");
|
||||
$dateEtat = $this->requete->getParametreDate("dateEtat");
|
||||
|
||||
$this->beneficiaire->changeretat($idBeneficiaire, $codeEtatBeneficiaire, $motifEtat, $dateEtat);
|
||||
|
||||
$this->rediriger("Fichebeneficiaire/".$_SESSION['idBeneficiaire_C']);
|
||||
}
|
||||
}
|
||||
|
|
@ -429,7 +429,8 @@ require_once 'Framework/Localisation.php';
|
|||
|
||||
$this->requete->getSession()->setAttribut("lienPrestation_C", $utilisateur['lienPrestation']);
|
||||
$this->requete->getSession()->setAttribut("lienProduction_C", $utilisateur['lienProduction']);
|
||||
$this->requete->getSession()->setAttribut("lienAssure_C", $utilisateur['lienAssure']);
|
||||
$this->requete->getSession()->setAttribut("lienAssure_C", $utilisateur['lienAssure']);
|
||||
$this->requete->getSession()->setAttribut("lienRh_C", $utilisateur['lienRh']);
|
||||
$this->requete->getSession()->setAttribut("modeSaisieFacture", "0");
|
||||
|
||||
$this->requete->getSession()->setAttribut("nbMessagesNonLus_C", "0");
|
||||
|
|
@ -447,7 +448,7 @@ require_once 'Framework/Localisation.php';
|
|||
}
|
||||
$this->requete->getSession()->setAttribut("dossierSociete", $filename);
|
||||
|
||||
$this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienProduction_C'].$_SESSION['dossierSociete'].'/Ged/');
|
||||
$this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienRh_C'].$_SESSION['dossierSociete'].'/Ged/');
|
||||
$this->requete->getSession()->setAttribut("cheminGed", $_SESSION['dossierSociete'].'/Ged/');
|
||||
$this->requete->getSession()->setAttribut("cheminPhoto", $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/');
|
||||
|
||||
|
|
|
|||
27
Controleur/ControleurFacturesfamilleadh.php
Normal file
27
Controleur/ControleurFacturesfamilleadh.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Facture.php';
|
||||
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurFacturesfamilleadh extends Controleur {
|
||||
private $facture;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Facturesfamilleadh');
|
||||
|
||||
$this->facture = new Facture();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$d1 = $_SESSION['dUneSemaineAvant_C'];
|
||||
$d2 = date('Y-m-d');
|
||||
|
||||
$factures = $this->facture->getfacturesfamille($idAdherent, $d1, $d2) ;
|
||||
|
||||
$this->genererVue(array('factures' => $factures));
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,9 @@ require_once 'Modele/Beneficiaire.php';
|
|||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Garantieadherent.php';
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
use Aws\Rekognition\RekognitionClient;
|
||||
|
||||
class ControleurFichebeneficiaire extends Controleur
|
||||
{
|
||||
private $beneficiaire;
|
||||
|
|
@ -142,6 +145,7 @@ class ControleurFichebeneficiaire extends Controleur
|
|||
$_SESSION['lienPhoto_C'] = $nomImage;
|
||||
|
||||
unlink(TARGET.$nomImageTemp);
|
||||
$this->rediriger("Fichebeneficiaire/".$idBeneficiaire);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -209,6 +213,7 @@ class ControleurFichebeneficiaire extends Controleur
|
|||
$this->rediriger("Ficheadherent/".$_SESSION['idAdherent_C']);
|
||||
}
|
||||
|
||||
/*
|
||||
public function ebeneenregistrerface()
|
||||
{
|
||||
$_SESSION['messageFace'] = "";
|
||||
|
|
@ -292,5 +297,178 @@ class ControleurFichebeneficiaire extends Controleur
|
|||
unlink($chemin);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
public function ebeneenregistrerface()
|
||||
{
|
||||
$_SESSION['messageFace'] = "";
|
||||
$compare_face = $_POST['compare_face'];
|
||||
$del_face = $_POST['del_face'];
|
||||
|
||||
if(isset($_POST['image_face']))
|
||||
{
|
||||
$_SESSION['okId_face'] = "-1";
|
||||
$_SESSION['okId'] = "-1";
|
||||
|
||||
$path = "Temp/";
|
||||
$extension = "jpeg";
|
||||
|
||||
$data = $_POST['image_face'];
|
||||
|
||||
$data = str_replace('data:image/jpeg;base64,', '', $data);
|
||||
|
||||
$data = base64_decode($data);
|
||||
|
||||
$username = $_SESSION['numeroBeneficiaire_C'];
|
||||
|
||||
$date = date('YmdHis');
|
||||
$file_name = "img_v_".$date.uniqid().".".$extension;
|
||||
$chemin = $path.$file_name;
|
||||
|
||||
file_put_contents($chemin, $data);
|
||||
|
||||
$rand = rand(1,1000000);
|
||||
$nomImage = $username."_".$rand.'.'. $extension;
|
||||
|
||||
if ($compare_face=="1")
|
||||
{
|
||||
if($del_face=="1")
|
||||
{
|
||||
$this->beneficiaire->init_traiterlaface('3');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->beneficiaire->init_traiterlaface('2');
|
||||
}
|
||||
|
||||
$arrgs = [
|
||||
'credentials' => [
|
||||
'key' => 'AKIA2O2PTXQ7XN5OATO3',
|
||||
'secret' => 'Rzq5mKG80tqfePQYF6iFZ5AMCM/bY2l6i5IxxLzL',
|
||||
],
|
||||
'version' => 'latest',
|
||||
'region' => 'us-west-2'
|
||||
];
|
||||
|
||||
$client = new RekognitionClient($arrgs);
|
||||
|
||||
$sourceImage = $chemin;
|
||||
$targetImage = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$_SESSION['lienPhoto_C'];
|
||||
|
||||
try
|
||||
{
|
||||
$result = $client->compareFaces
|
||||
(
|
||||
[
|
||||
'SimilarityThreshold' => 80,
|
||||
'SourceImage' => [
|
||||
'Bytes' => file_get_contents($sourceImage)
|
||||
],
|
||||
'TargetImage' => [
|
||||
'Bytes' => file_get_contents($targetImage)
|
||||
],
|
||||
]
|
||||
);
|
||||
|
||||
$faceMatches = count($result['FaceMatches']);
|
||||
if ($faceMatches==0)
|
||||
{
|
||||
$_SESSION['messageFace'] = "Les faces ne correspondent pas! / The faces do not match!";
|
||||
$this->beneficiaire->resultat_traitement_face($username, '0', $_SESSION['messageFace']);
|
||||
$this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "0"));
|
||||
}
|
||||
elseif ($del_face=="1")
|
||||
{
|
||||
$motif = $_POST['motif'];
|
||||
|
||||
$this->beneficiaire->resultat_traitement_face($username, '1', $motif);
|
||||
|
||||
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$this->beneficiaire->supprimerPhoto($idBeneficiaire);
|
||||
$this->beneficiaire->unregisterface($username, $motif);
|
||||
$_SESSION['messageFace'] = "Face supprimée pour motif : $motif / Face removed for reason : $motif";
|
||||
|
||||
$this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'photo_succes' => "1"));
|
||||
$_SESSION['lienPhoto_C']="";
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->beneficiaire->resultat_traitement_face($username, '1', '');
|
||||
|
||||
$_SESSION['okId_face'] = "1";
|
||||
$_SESSION['messageFace'] = "Face confirmée! / Face confirmed!";
|
||||
$this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "1"));
|
||||
}
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
echo 'Message: ' .$e->getMessage();
|
||||
// exit();
|
||||
$msgErreur = $e->getMessage();
|
||||
// $_SESSION['messageFace'] = "Un problème lors du traitement! / A problem during treatment!";
|
||||
$_SESSION['messageFace'] = $msgErreur;
|
||||
|
||||
$this->beneficiaire->resultat_traitement_face($username, '9', $msgErreur);
|
||||
|
||||
$this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "0"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->beneficiaire->init_traiterlaface('1');
|
||||
|
||||
$cheminNew = $_SESSION['lienPhotoFace'] . $nomImage;
|
||||
|
||||
$_SESSION['okId_face'] = "1";
|
||||
|
||||
// réduction de la taille de l'immage
|
||||
$infosImg = getimagesize($chemin);
|
||||
$src = $chemin;
|
||||
$imgtype = image_type_to_mime_type($infosImg[2]);
|
||||
|
||||
switch ($imgtype)
|
||||
{
|
||||
case 'image/jpeg':
|
||||
$source_image = imagecreatefromjpeg($src);
|
||||
break;
|
||||
case 'image/jpg':
|
||||
$source_image = imagecreatefromjpeg($src);
|
||||
break;
|
||||
case 'image/png':
|
||||
$source_image = imagecreatefrompng($src);
|
||||
break;
|
||||
}
|
||||
|
||||
$width = imagesx($source_image);
|
||||
$desired_width = $width;
|
||||
if ($desired_width > $_SESSION['largeurPhoto'])
|
||||
{
|
||||
$desired_width = $_SESSION['largeurPhoto'];
|
||||
}
|
||||
$height = imagesy($source_image);
|
||||
|
||||
$desired_height = floor($height * ($desired_width / $width));
|
||||
|
||||
$virtual_image = imagecreatetruecolor($desired_width, $desired_height);
|
||||
|
||||
imagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $desired_width, $desired_height, $width, $height);
|
||||
|
||||
if (imagejpeg($virtual_image, $cheminNew, -1))
|
||||
// if (imagejpeg($virtual_image, $cheminNew, 60))
|
||||
{
|
||||
$this->beneficiaire->registerface($username);
|
||||
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$this->beneficiaire->changerPhoto($idBeneficiaire, $nomImage);
|
||||
|
||||
$_SESSION['messageFace'] = "Enrôlement effectué avec succès! / Enrollment completed successfully!!";
|
||||
$this->genererVueAjax(array('messageFace' => $_SESSION['messageFace'], 'msgErreur' => $_SESSION['messageFace'], 'photo_succes' => "1"));
|
||||
}
|
||||
$this->beneficiaire->resultat_traitement_face($username, '1', '');
|
||||
}
|
||||
unlink($chemin);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
121
Controleur/ControleurGedpolice.php
Normal file
121
Controleur/ControleurGedpolice.php
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Ged.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurGedpolice extends Controleur {
|
||||
private $ged;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Gedpolice');
|
||||
|
||||
$this->ged = new Ged();
|
||||
}
|
||||
|
||||
public function index($msgErreur=null)
|
||||
{
|
||||
|
||||
$message = "";
|
||||
|
||||
$nouveau_fichier = "Rien";
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
define('TARGET', $_SESSION['cheminGed']); // Repertoire cible
|
||||
define('MAX_SIZE', 10000000); // Taille max en octets du fichier
|
||||
|
||||
// Tableaux de donnees
|
||||
// ".avi", ".bmp", ".doc", ".docx", ".gif", ".jpeg", "jpg", "jpe", ".mkv", ".mp3", ".pdf", ".png", ".pps", ".xls", ".xlsx", ".wav"
|
||||
// $tabExt = array('jpg','png','jpeg'); // Extensions autorisees
|
||||
|
||||
$tabExt = array("avi", "bmp", "doc", "docx", "gif", "jpeg", "jpg", "jpe", "mkv", "mp3", "mp4", "pdf", "png", "pps", "xls", "xlsx", "wav"); // Extensions autorisees
|
||||
|
||||
// Variables
|
||||
$extension = '';
|
||||
|
||||
if( !is_dir(TARGET) )
|
||||
{
|
||||
if( !mkdir(TARGET, 0755) )
|
||||
{
|
||||
$message = 'Erreur : le répertoire cible ne peut-être créé ! Vérifiez que vous diposiez des droits suffisants pour le faire ou créez le manuellement !';
|
||||
}
|
||||
}
|
||||
|
||||
// On verifie si le champ est rempli
|
||||
if( !empty($_FILES['fichier_upload']['name']) )
|
||||
{
|
||||
// Recuperation de l'extension du fichier
|
||||
|
||||
$extension = pathinfo($_FILES['fichier_upload']['name'], PATHINFO_EXTENSION);
|
||||
|
||||
// On verifie l'extension du fichier
|
||||
if(in_array(strtolower($extension), $tabExt))
|
||||
{
|
||||
$message = $_FILES['fichier_upload']['size'];
|
||||
|
||||
// On verifie les dimensions et taille du fichier
|
||||
if($_FILES['fichier_upload']['size'] <= MAX_SIZE)
|
||||
{
|
||||
$taille = $_FILES['fichier_upload']['size'];
|
||||
|
||||
// Parcours du tableau d'erreurs
|
||||
if(isset($_FILES['fichier_upload']['error']) && UPLOAD_ERR_OK === $_FILES['fichier_upload']['error'])
|
||||
{
|
||||
// On renomme le fichier
|
||||
$nomOrigine = $_FILES['fichier_upload']['name'];
|
||||
$nouveau_fichier = dateJourSql()."_".uniqid().".".$extension;
|
||||
|
||||
// Si c'est OK, on teste l'upload
|
||||
if(move_uploaded_file($_FILES['fichier_upload']['tmp_name'], TARGET.$nouveau_fichier))
|
||||
{
|
||||
$message = 'Chargé avec succès / Uploaded successfully';
|
||||
|
||||
// on va envoyer dans la base de données
|
||||
$this->ged->enregistrergedpolice($nomOrigine, $nouveau_fichier, $taille);
|
||||
$this->rediriger("Gedpolice");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Sinon on affiche une erreur systeme
|
||||
$message = 'Problème lors du chargement !';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$message = 'Une erreur interne a empêché le chargement';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$message .= $_FILES['fichier_upload']['size']." Erreur dans les dimensions du fichier !";
|
||||
// $message = 'Erreur dans les dimensions du fichier !';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Sinon on affiche une erreur pour l'extension
|
||||
$message = 'Extension du fichier est incorrecte !';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Sinon on affiche une erreur pour le champ vide
|
||||
$message = 'Veuillez sélectionner un fichier SVP! / Please select a file!';
|
||||
}
|
||||
|
||||
// fin upload
|
||||
}
|
||||
|
||||
$msgErreur = $message;
|
||||
|
||||
$d1 = $_SESSION['dUneSemaineAvant_C'];
|
||||
$d2 = date('Y-m-d');
|
||||
|
||||
$geds = $this->ged->getgedpolice($d1, $d2, "");
|
||||
|
||||
unset($_FILES['fichier_upload']);
|
||||
|
||||
$this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur));
|
||||
}
|
||||
}
|
||||
22
Controleur/ControleurLiercolleges.php
Normal file
22
Controleur/ControleurLiercolleges.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Collegepolice.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurLiercolleges extends Controleur {
|
||||
private $college;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Liercolleges');
|
||||
|
||||
$this->college = (new Collegepolice())->getListe($_SESSION['idPolice_C']);
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$this->genererVue(array('college' => $this->college));
|
||||
}
|
||||
|
||||
}
|
||||
31
Controleur/ControleurNonfacturepolice.php
Normal file
31
Controleur/ControleurNonfacturepolice.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurNonfacturepolice extends Controleur {
|
||||
private $beneficiaire;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Nonfacturepolice");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice);
|
||||
|
||||
$ente_nonfacture = null;
|
||||
|
||||
if(count($nonfactures)>"0")
|
||||
{
|
||||
$ente_nonfacture = $nonfactures['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture));
|
||||
|
||||
}
|
||||
}
|
||||
31
Controleur/ControleurNonfacturepolicecons.php
Normal file
31
Controleur/ControleurNonfacturepolicecons.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurNonfacturepolicecons extends Controleur {
|
||||
private $beneficiaire;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Nonfacturepolicecons");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$nonfactures = $this->beneficiaire->getBeneficiairesNonFature($idPolice);
|
||||
|
||||
$ente_nonfacture = null;
|
||||
|
||||
if(count($nonfactures)>"0")
|
||||
{
|
||||
$ente_nonfacture = $nonfactures['0'];
|
||||
}
|
||||
|
||||
$this->genererVue(array('nonfactures' => $nonfactures, 'ente_nonfacture' => $ente_nonfacture));
|
||||
|
||||
}
|
||||
}
|
||||
31
Controleur/ControleurPlafondadherent.php
Normal file
31
Controleur/ControleurPlafondadherent.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Garantieadherent.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurPlafondadherent extends Controleur {
|
||||
private $adherent;
|
||||
private $garantieadherent;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Plafondadherent");
|
||||
|
||||
$this->adherent = new Adherent();
|
||||
$this->garantieadherent = new Garantieadherent();
|
||||
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$adherent = $this->adherent->getContexteAdherentId($idAdherent);
|
||||
$exercieReference = $_SESSION['exercieReference_C'];
|
||||
$idEntetecontrat = $_SESSION['idEntetecontrat'];
|
||||
$entecontrats = $this->garantieadherent->getlisteentetecontratadherent($idAdherent);
|
||||
|
||||
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
|
||||
|
||||
$this->genererVue(array('adherent' => $adherent, 'garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats));
|
||||
}
|
||||
}
|
||||
25
Controleur/ControleurSpadherent.php
Normal file
25
Controleur/ControleurSpadherent.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Adherent.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSpadherent extends Controleur {
|
||||
private $spadherent;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Spadherent");
|
||||
|
||||
$this->spadherent = new Adherent();
|
||||
}
|
||||
public function index() {
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$spadherent = $this->spadherent->getRapportSpAdherent($idAdherent, $dj);
|
||||
|
||||
$this->genererVue(array('spadherent' => $spadherent));
|
||||
}
|
||||
}
|
||||
26
Controleur/ControleurSppolice.php
Normal file
26
Controleur/ControleurSppolice.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSppolice extends Controleur {
|
||||
private $sppolice;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Sppolice");
|
||||
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj);
|
||||
|
||||
$this->genererVue(array('sppoliceentete' => $sppoliceentete));
|
||||
}
|
||||
}
|
||||
26
Controleur/ControleurSyntheseconsopolice.php
Normal file
26
Controleur/ControleurSyntheseconsopolice.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSyntheseconsopolice extends Controleur {
|
||||
private $sppolice;
|
||||
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Syntheseconsopolice");
|
||||
|
||||
$this->sppolice = new Police();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj);
|
||||
|
||||
$this->genererVue(array('sppoliceentete' => $sppoliceentete));
|
||||
}
|
||||
}
|
||||
924
Js/fonctions.js
924
Js/fonctions.js
|
|
@ -187,6 +187,7 @@ function baseSwal(options) {
|
|||
* ALERTE SIMPLE
|
||||
* Affiche une information bilingue.
|
||||
*/
|
||||
/* mis en commentaire le temps que cela fonctionne 04/01/2026
|
||||
function alert_ebene(p_msg, p_msg_eng) {
|
||||
const codeLangue = $("#codeLangue").val();
|
||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
||||
|
|
@ -197,11 +198,27 @@ function alert_ebene(p_msg, p_msg_eng) {
|
|||
confirmButtonText: codeLangue === "en_US" ? 'OK' : 'D\'accord'
|
||||
});
|
||||
}
|
||||
*/
|
||||
function alert_ebene(p_msg, p_msg_eng)
|
||||
{
|
||||
codeLangue = $("#codeLangue").val();
|
||||
|
||||
if(codeLangue=="en_US")
|
||||
{
|
||||
alert(p_msg_eng);
|
||||
}
|
||||
else
|
||||
{
|
||||
alert(p_msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CONFIRMATION
|
||||
* Affiche une boîte de dialogue Oui/Non et retourne une promesse.
|
||||
*/
|
||||
|
||||
function confirm_ebene(p_msg, p_msg_eng) {
|
||||
const codeLangue = $("#codeLangue").val();
|
||||
const message = (codeLangue === "en_US") ? p_msg_eng : p_msg;
|
||||
|
|
@ -215,6 +232,22 @@ function confirm_ebene(p_msg, p_msg_eng) {
|
|||
}).then(result => result.isConfirmed);
|
||||
}
|
||||
|
||||
/*
|
||||
function confirm_ebene(p_msg, p_msg_eng)
|
||||
{
|
||||
codeLangue = $("#codeLangue").val();
|
||||
|
||||
if(codeLangue=="en_US")
|
||||
{
|
||||
return confirm(p_msg_eng);
|
||||
}
|
||||
else
|
||||
{
|
||||
return confirm(p_msg);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* SAISIE TEXTE (PROMPT)
|
||||
* Ouvre une modale avec champ de saisie et exécute un callback avec la valeur.
|
||||
|
|
@ -1588,22 +1621,6 @@ function afficher_adherent()
|
|||
}
|
||||
}
|
||||
|
||||
function afficher_adherent_id()
|
||||
{
|
||||
debugger;
|
||||
codeTypeContrat = $("#codeTypeContrat_C").val();
|
||||
if (codeTypeContrat=="F")
|
||||
{
|
||||
afficher_adherent_familiale_id();
|
||||
return;
|
||||
}
|
||||
|
||||
idAdherent = $("#idAdherent_C" ).val();
|
||||
if (idAdherent>"0")
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Ficheadherent/"+$("#idAdherent_C" ).val()+"/");
|
||||
}
|
||||
}
|
||||
|
||||
function afficher_adherent_id_plus(idAdherent)
|
||||
{
|
||||
|
|
@ -1780,9 +1797,19 @@ function ebene_enregistrer_photo_face() // OK
|
|||
|
||||
function fiche_beneficiaire()
|
||||
{
|
||||
idBeneficiaire = $("#idBeneficiaire").val();
|
||||
idBeneficiaire = $("#idBeneficiaire_C").val();
|
||||
|
||||
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire);
|
||||
if (idBeneficiaire>" ")
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire);
|
||||
}
|
||||
|
||||
/*
|
||||
if ($("#numeroBeneficiaire_C" ).val()>"")
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+$("#numeroBeneficiaire_C" ).val()+"/");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function ebene_init_confirm_photo_face() // OK
|
||||
|
|
@ -1845,7 +1872,7 @@ function ebene_confirmer_photo_face() // OK
|
|||
var dataURL = canvas.toDataURL("image/jpeg");
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Prestations/ebeneenregistrerface/",
|
||||
url: $("#racineWeb").val()+"Fichebeneficiaire/ebeneenregistrerface/",
|
||||
type: 'POST',
|
||||
data: {'image_face' : dataURL, 'compare_face' : compare_face , 'del_face' : "0"},
|
||||
success: function(data) {
|
||||
|
|
@ -1939,7 +1966,7 @@ function ebene_supprimer_photo_face() // OK
|
|||
var dataURL = canvas.toDataURL("image/jpeg");
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Prestations/ebeneenregistrerface/",
|
||||
url: $("#racineWeb").val()+"Fichebeneficiaire/ebeneenregistrerface/",
|
||||
type: 'POST',
|
||||
data: {'image_face' : dataURL, 'compare_face' : compare_face, 'del_face' : "1", 'motif' : motif},
|
||||
success: function(data) {
|
||||
|
|
@ -2473,4 +2500,859 @@ $( ".datepicker" ).datepicker({
|
|||
changeYear: true,
|
||||
yearRange: "c-60:c+20"
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
function charger_fichier_modele_assure()
|
||||
{
|
||||
$('#div_exporter_liste_assures').html("");
|
||||
|
||||
$('#div_form_upload').show();
|
||||
}
|
||||
|
||||
function init_importer_modele_assure()
|
||||
{
|
||||
etape2=$("#etape2").val();
|
||||
|
||||
if (etape2 != "1")
|
||||
{
|
||||
v_msg="Etape 2 incomplète!";
|
||||
v_msgEng="Incomplete step 2!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$('#div_form_upload').hide();
|
||||
|
||||
var div_export = $('#div_exporter_liste_assures');
|
||||
|
||||
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/initimportermodele/",
|
||||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data)
|
||||
{
|
||||
div_export.html(data);
|
||||
},
|
||||
error : function(resultat, statut, erreur)
|
||||
{
|
||||
},
|
||||
complete: function(data)
|
||||
{
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function importer_modele_assure(idAvenant)
|
||||
{
|
||||
etape2=$("#etape2").val();
|
||||
|
||||
if (etape2 != "1")
|
||||
{
|
||||
v_msg="Etape 2 incomplète!";
|
||||
v_msgEng="Incomplete step 2!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$('#div_form_upload').hide();
|
||||
|
||||
var div_export = $('#div_exporter_liste_assures');
|
||||
|
||||
div_export.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
cheminFichier=$("#cheminFichier").val();
|
||||
|
||||
donnees = 'idAvenant='+idAvenant+'&cheminFichier='+cheminFichier;
|
||||
|
||||
$("#div_erreur_excel").html("");
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/importermodele/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data)
|
||||
{
|
||||
div_export.html('');
|
||||
$("#div_erreur_excel").html(data);
|
||||
|
||||
v_msg="Opération terminée avec succès!";
|
||||
v_msgEng="Operation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
},
|
||||
error : function(resultat, statut, erreur)
|
||||
{
|
||||
},
|
||||
complete: function(data)
|
||||
{
|
||||
div_export.html('');
|
||||
|
||||
succes_impot_execl=$("#succes_impot_execl").val();
|
||||
|
||||
if (succes_impot_execl == "1")
|
||||
{
|
||||
maj_etape_3_import_assures();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function maj_etape_3_import_assures()
|
||||
{
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/majetape/",
|
||||
type: 'POST',
|
||||
success: function(data)
|
||||
{
|
||||
},
|
||||
error : function(resultat, statut, erreur)
|
||||
{
|
||||
},
|
||||
complete: function(data)
|
||||
{
|
||||
afficher_liste_assures_a_importer();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function afficher_liste_assures_a_importer()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Listeimportassure/");
|
||||
}
|
||||
|
||||
function calculer_prime_inmportation()
|
||||
{
|
||||
nb_adh=$("#nb_adh").val();
|
||||
|
||||
if (nb_adh>"0")
|
||||
{
|
||||
v_msg="Veuillez lier toutes les famille à leur collège!";
|
||||
v_msgEng="Please link all the family to their college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var div_attente = $('#div_liste_assure_importe');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/calculerprimeimportee/",
|
||||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data) {
|
||||
/*
|
||||
v_msg="Calcul de primes terminée avec succès!";
|
||||
v_msgEng="Premium calculation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
alert("Calcul de primes terminée avec succès!");
|
||||
*/
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
afficher_liste_assures_a_importer();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function incorporer_assures_inmportes()
|
||||
{
|
||||
nb_adh=$("#nb_adh").val();
|
||||
|
||||
if (nb_adh>"0")
|
||||
{
|
||||
v_msg="Veuillez revoir les collèges et relancer le calcul des primes!";
|
||||
v_msgEng="Please review the colleges and restart the premium calculation!!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
nb_ligne_ass=$("#nb_ligne_ass").val();
|
||||
|
||||
if (nb_ligne_ass=="0")
|
||||
{
|
||||
v_msg="Rien à importer!";
|
||||
v_msgEng="Nothing to import!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
v_msg="Avez-vous fait l\'étape 2 => calcul des primes?";
|
||||
v_msgEng="Did you do step 2 => premium calculation?";
|
||||
|
||||
if(!confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
primeTtcTotal=$("#primeTtcTotal").val();
|
||||
|
||||
if (primeTtcTotal=="0")
|
||||
{
|
||||
v_msg="Pas de primes! souhaitez-vous recalculer les primes?";
|
||||
v_msgEng="No premiums! do you want to recalculate the premiums?";
|
||||
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
v_msg="Notez que vous avez accepté l\'incorporation sans primes!";
|
||||
v_msgEng="Note that you accepted the incorporation without premium!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
}
|
||||
|
||||
v_msg="Confirmez-vous l\'incorporation de cette liste?";
|
||||
v_msgEng="Do you confirm the incorporation of this list?";
|
||||
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
var div_attente = $('#div_liste_assure_importe');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/",
|
||||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data) {
|
||||
v_msg="Incorporation terminée avec succès!";
|
||||
v_msgEng="Incorporation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_police_id();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function traiter_lignes_importees()
|
||||
{
|
||||
etape2=$("#etape2").val();
|
||||
|
||||
if (etape2 != "1")
|
||||
{
|
||||
v_msg="Etape 2 incomplète!";
|
||||
v_msgEng="Incomplete step 2!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
etape3=$("#etape3").val();
|
||||
|
||||
if (etape3 != "1")
|
||||
{
|
||||
v_msg="Etape 3 incomplète!";
|
||||
v_msgEng="Incomplete step 3!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
afficher_liste_assures_a_importer();
|
||||
}
|
||||
|
||||
function afficher_adherent_importee()
|
||||
{
|
||||
idCollege=$("#idCollege").val();
|
||||
|
||||
if (idCollege<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un collège!";
|
||||
v_msgEng="Please select a college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idCollege='+idCollege;
|
||||
|
||||
var div_attente = $('#div_adherents_importes');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/afficheradherentimportee/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
div_attente.html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function retirer_un_adherent_importe_college(idBeneficiairemodel)
|
||||
{
|
||||
donnees = 'idBeneficiairemodel='+idBeneficiairemodel;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/retirerunadherentaucollege/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_adherent_importee();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ajouter_un_adherent_importe_college(idBeneficiairemodel)
|
||||
{
|
||||
idCollege=$("#idCollege").val();
|
||||
|
||||
if (idCollege<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un collège!";
|
||||
v_msgEng="Please select a college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idBeneficiairemodel='+idBeneficiairemodel+'&idCollege='+idCollege;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajouterunadherentaucollege/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_adherent_importee();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ajouter_tous_adherent_importe_college()
|
||||
{
|
||||
idCollege=$("#idCollege").val();
|
||||
|
||||
if (idCollege<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un collège!";
|
||||
v_msgEng="Please select a college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idCollege='+idCollege;
|
||||
|
||||
v_msg="Attention, cela va vider tous les autres collèges! Confirmez-vous?";
|
||||
v_msgEng="Be careful, this will empty all other colleges! Do you confirm?";
|
||||
|
||||
confirm_ebene(v_msg, v_msgEng).then(isConfirmed => {
|
||||
if (isConfirmed) {
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajoutertousadherentaucollege/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_adherent_importee();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function ajouter_sans_college_adherent_importe_college()
|
||||
{
|
||||
idCollege=$("#idCollege").val();
|
||||
|
||||
if (idCollege<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un collège!";
|
||||
v_msgEng="Please select a college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idCollege='+idCollege;
|
||||
|
||||
v_msg="Attention! Confirmez-vous cette opération?";
|
||||
v_msgEng="Warning! Do you confirm this operation?";
|
||||
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/ajoutersanscollegeadherentaucollege/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_adherent_importee();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function retirer_tous_adherent_importe_college()
|
||||
{
|
||||
idCollege=$("#idCollege").val();
|
||||
|
||||
if (idCollege<=" ")
|
||||
{
|
||||
v_msg="Veuillez sélectionner un collège!";
|
||||
v_msgEng="Please select a college!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'idCollege='+idCollege;
|
||||
|
||||
v_msg="Attention, cela va vider ce collège! Confirmez-vous?";
|
||||
v_msgEng="Attention, this will empty this college! Do you confirm?";
|
||||
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/retirertousadherentaucollege/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_adherent_importee();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function incorporer_assures_inmportes()
|
||||
{
|
||||
nb_adh=$("#nb_adh").val();
|
||||
|
||||
if (nb_adh>"0")
|
||||
{
|
||||
v_msg="Veuillez revoir les collèges et relancer le calcul des primes!";
|
||||
v_msgEng="Please review the colleges and restart the premium calculation!!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
nb_ligne_ass=$("#nb_ligne_ass").val();
|
||||
|
||||
if (nb_ligne_ass=="0")
|
||||
{
|
||||
v_msg="Rien à importer!";
|
||||
v_msgEng="Nothing to import!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
v_msg="Avez-vous fait l\'étape 2 => calcul des primes?";
|
||||
v_msgEng="Did you do step 2 => premium calculation?";
|
||||
|
||||
if(!confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
primeTtcTotal=$("#primeTtcTotal").val();
|
||||
|
||||
if (primeTtcTotal=="0")
|
||||
{
|
||||
v_msg="Pas de primes! souhaitez-vous recalculer les primes?";
|
||||
v_msgEng="No premiums! do you want to recalculate the premiums?";
|
||||
|
||||
/*
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
return;
|
||||
}
|
||||
*/
|
||||
confirm_ebene(v_msg, v_msgEng).then(isConfirmed => {
|
||||
if (isConfirmed) {
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
v_msg="Notez que vous avez accepté l\'incorporation sans primes!";
|
||||
v_msgEng="Note that you accepted the incorporation without premium!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
}
|
||||
|
||||
v_msg="Confirmez-vous l\'incorporation de cette liste?";
|
||||
v_msgEng="Do you confirm the incorporation of this list?";
|
||||
|
||||
confirm_ebene(v_msg, v_msgEng).then(isConfirmed => {
|
||||
if (isConfirmed) {
|
||||
var div_attente = $('#div_liste_assure_importe');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/",
|
||||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data) {
|
||||
v_msg="Incorporation terminée avec succès!";
|
||||
v_msgEng="Incorporation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_police_id();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
var div_attente = $('#div_liste_assure_importe');
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/",
|
||||
type: 'POST',
|
||||
// data: donnees,
|
||||
success: function(data) {
|
||||
v_msg="Incorporation terminée avec succès!";
|
||||
v_msgEng="Incorporation completed successfully!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
afficher_police_id();
|
||||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function afficher_police_id()
|
||||
{
|
||||
idPolice=$("#idPolice_C" ).val();
|
||||
|
||||
if (idPolice>"")
|
||||
{
|
||||
ajax_context_police_afficher(idPolice);
|
||||
}
|
||||
}
|
||||
|
||||
function ajax_context_police_afficher(idPolice)
|
||||
{
|
||||
donnees = 'idPolice='+idPolice;
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxcontextpolice/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
complete: function() {
|
||||
window.location.assign($("#racineWeb" ).val()+"Fichepolice/");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function plafond_adherent()
|
||||
{
|
||||
if ($("#idAdherent_C" ).val()>"")
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Plafondadherent/");
|
||||
}
|
||||
}
|
||||
|
||||
function afficher_garantieadherent_entete_contrat()
|
||||
{
|
||||
var div_attente = $('#div_gar_exo');
|
||||
|
||||
idEntetecontrat=$("#idEntetecontrat").val();
|
||||
|
||||
if (idEntetecontrat<="0")
|
||||
{
|
||||
v_msg="Veuillez sélectionner une période!";
|
||||
v_msgEng="Please select a period!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#idEntetecontrat").focus();
|
||||
|
||||
div_attente.html('');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// donnees = 'exercieReference='+exercieReference;
|
||||
donnees = 'idEntetecontrat='+idEntetecontrat;
|
||||
|
||||
div_attente.html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Chargement en cours! Veuillez patienter...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxplafondadherent/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
div_attente.html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function changer_etat_adherent()
|
||||
{
|
||||
etat=$("#codeEtatPolice_C").val();
|
||||
|
||||
if (etat=="RE")
|
||||
{
|
||||
v_msg="Attention! Police résiliée!";
|
||||
v_msgEng="Warning! Terminated policy!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (etat=="SU")
|
||||
{
|
||||
v_msg="Attention! Police suspendue!";
|
||||
v_msgEng="Warning! Suspended policy!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (etat=="AN")
|
||||
{
|
||||
v_msg="Attention! Police annulée!";
|
||||
v_msgEng="Warning! Canceled policy!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
window.location.assign($("#racineWeb" ).val()+"Changeretatadherent/");
|
||||
}
|
||||
|
||||
function rapport_sp_adherent()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Spadherent/");
|
||||
}
|
||||
|
||||
function factures_famille_2()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Facturesfamilleadh/");
|
||||
}
|
||||
|
||||
function listerfacturefamille()
|
||||
{
|
||||
d1=$("#d1").val();
|
||||
d2=$("#d2").val();
|
||||
|
||||
donnees = 'd1='+d1+'&d2='+d2;
|
||||
|
||||
$("#div_dossiers").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxfacturesfamille/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
$("#div_dossiers").html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function afficher_beneficiare_prime_adherent()
|
||||
{
|
||||
debutPeriode = $("#debutPeriode").val();
|
||||
finPeriode = $("#finPeriode").val();
|
||||
|
||||
donnees_retour = "";
|
||||
donnees = 'debutPeriode='+debutPeriode+"&finPeriode="+finPeriode;
|
||||
|
||||
$("#div_detail_requete").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxbeneficiaireprimeadherent/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
donnees_retour = data;
|
||||
},
|
||||
complete: function() {
|
||||
$("#div_detail_requete").html(donnees_retour);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function rapport_sp_police()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Sppolice/");
|
||||
}
|
||||
|
||||
function sinistres_a_prime_police()
|
||||
{
|
||||
$("#div_detail_sp").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxsppolice/police/",
|
||||
type: 'POST',
|
||||
success: function(data) {
|
||||
$("#div_detail_sp").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function sinistres_a_prime_categorie()
|
||||
{
|
||||
$("#div_detail_sp").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxsppolice/categorie/",
|
||||
type: 'POST',
|
||||
success: function(data) {
|
||||
$("#div_detail_sp").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function sinistres_a_prime_college()
|
||||
{
|
||||
$("#div_detail_sp").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxsppolice/college/",
|
||||
type: 'POST',
|
||||
success: function(data) {
|
||||
$("#div_detail_sp").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function() {
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function requetes_synthese_consommation_police()
|
||||
{
|
||||
v_url = $("#racineWeb").val()+"Ajaxsyntheseconsopolice/";
|
||||
|
||||
$("#div_detail_exp").html('');
|
||||
|
||||
$("#div_detail_sp").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: v_url,
|
||||
type : 'post',
|
||||
error: function(errorData)
|
||||
{
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
donnees_retour = data;
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
$("#div_detail_sp").html(donnees_retour);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function requetes_synthese_consommation_police_export()
|
||||
{
|
||||
v_url = $("#racineWeb").val()+"Ajaxsyntheseconsopolice/exportxls/";
|
||||
|
||||
$("#div_detail_exp").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: v_url,
|
||||
type : 'post',
|
||||
error: function(errorData)
|
||||
{
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
donnees_retour = data;
|
||||
},
|
||||
complete: function() {
|
||||
$('#div_detail_exp').html(donnees_retour);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function lister_ged_police()
|
||||
{
|
||||
d1 = $("#d1").val();
|
||||
d2 = $("#d2").val();
|
||||
nomOrigine = $("#nomOrigine").val();
|
||||
|
||||
donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine;
|
||||
|
||||
$("#div_ged").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxlistegedpolice/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
$("#div_ged").html(data);
|
||||
},
|
||||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ class Adherent extends Modele {
|
|||
$_SESSION['codeTypeApporteur_C'] = $context['codeTypeApporteur'];
|
||||
$_SESSION['codeApporteur_C'] = $context['codeApporteur'];
|
||||
$_SESSION['libelleApporteur_C'] = $context['libelleApporteur'];
|
||||
$_SESSION['dateEffetAdherent_C'] = $context['dateEffetAdherent'];
|
||||
// Fin 06/05/2020
|
||||
|
||||
$_SESSION['idBeneficiaire_C'] = "";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ class Avenant extends Modele {
|
|||
|
||||
public function getAvenant($idPolice)
|
||||
{
|
||||
$sql = 'call sp_avenants_police(?)';
|
||||
// $sql = 'call sp_avenants_police(?)';
|
||||
$sql = 'call sp_avenants_police_client(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||
|
||||
|
|
@ -84,4 +85,15 @@ class Avenant extends Modele {
|
|||
$liste = $this->executerRequete($sql, array($idPolice));
|
||||
return $liste->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getAvenantIncorporation($idPolice)
|
||||
{
|
||||
$sql = 'call sp_avenants_police_client(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idPolice));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -978,7 +978,8 @@ class Beneficiaire extends Modele {
|
|||
$user = $_SESSION['login'];
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$sql = 'call sp_incorporer_assures_importes(?, ?);';
|
||||
// $sql = 'call sp_incorporer_assures_importes(?, ?);';
|
||||
$sql = 'call sp_incorporer_assures_importes_client(?, ?);';
|
||||
|
||||
$this->executerRequete($sql, array($idPolice, $user));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,37 @@ class Emission extends Modele {
|
|||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getbeneficiaireprimeadherent($idAdherent, $debutPeriode, $finPeriode)
|
||||
{
|
||||
if (est_anglophone())
|
||||
{
|
||||
$sql = 'call sp_get_beneficiaire_prime_adherent_eng(?, ?, ?)';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = 'call sp_get_beneficiaire_prime_adherent(?, ?, ?)';
|
||||
}
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idAdherent, $debutPeriode, $finPeriode));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getbeneficiaireprimebeneficiaire($idBeneficiaire, $debutPeriode, $finPeriode)
|
||||
{
|
||||
if (est_anglophone())
|
||||
{
|
||||
$sql = 'call sp_get_beneficiaire_prime_beneficiaire_eng(?, ?, ?)';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql = 'call sp_get_beneficiaire_prime_beneficiaire(?, ?, ?)';
|
||||
}
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $debutPeriode, $finPeriode));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
}
|
||||
200
Modele/Ged.php
200
Modele/Ged.php
|
|
@ -3,6 +3,194 @@ require_once 'Framework/Modele.php';
|
|||
|
||||
class Ged extends Modele {
|
||||
|
||||
public function getgedfeuillemaladie($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C'];
|
||||
|
||||
$sql = 'call sp_r_get_ged_feuillemaladie(?, ?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($numeroFeuilleMaladie, $d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedfeuillemaladie($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_feuillemaladie(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($numeroFeuilleMaladie, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function enregistrergedbeneficiaireprest($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_beneficiaire_prest(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedbeneficiaireprest($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
|
||||
$sql = 'call sp_r_get_ged_beneficiaire_prest(?, ?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_beneficiaire_prod(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedbeneficiaireprod($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
|
||||
$sql = 'call sp_r_get_ged_beneficiaire_prod(?, ?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getgedadherent($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
|
||||
$sql = 'call sp_r_get_ged_adherent(?, ?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$idAdherent = $_SESSION['idAdherent_C'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_adherent(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedpolice($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
// $sql = 'call sp_r_get_ged_police(?, ?, ?, ?)';
|
||||
$sql = 'call sp_r_get_ged_police_client(?, ?, ?, ?)';
|
||||
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idPolice, $d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedpolice($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
// $sql = 'call sp_r_ajouter_ged_police(?, ?, ?, ?, ?)';
|
||||
$sql = 'call sp_r_ajouter_ged_police_client(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getged($d1, $d2, $nomOrigine)
|
||||
{
|
||||
$sql = 'call sp_r_get_ged(?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($d1, $d2, $nomOrigine));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrerged($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$codeSociete = $_SESSION['codeSociete'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($codeSociete, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedpharmacie()
|
||||
{
|
||||
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
||||
|
||||
$sql = 'call sp_r_get_ged_pharmacie(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($numeroBonOrdonnance));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedpharmacie($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
||||
$idSaisie = $_SESSION['idSaisie'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_pharmacie(?, ?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($numeroBonOrdonnance, $idSaisie, $user, $nomOrigine, $cheminFichier, $taille));
|
||||
}
|
||||
|
||||
public function enregistrergedprescription($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
||||
$idSaisie = $_SESSION['idSaisie'];
|
||||
$user = $_SESSION['login'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_prescription(?, ?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($numeroBonOrdonnance, $idSaisie, $user, $nomOrigine, $cheminFichier, $taille));
|
||||
}
|
||||
|
||||
public function getgedfacture($idFacture)
|
||||
{
|
||||
$sql = 'call sp_r_get_ged_facture(?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($idFacture));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function enregistrergedfacture($nomOrigine, $nouveau_fichier, $taille)
|
||||
{
|
||||
$idFacture = $_SESSION['idFacture_C'];
|
||||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_r_ajouter_ged_facture(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idFacture, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function getgedfichepolice($idPolice)
|
||||
{
|
||||
$sql = 'call sp_r_get_ged_fiche_police(?)';
|
||||
|
|
@ -17,8 +205,18 @@ class Ged extends Modele {
|
|||
$cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier;
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_c_ajouter_ged_fiche_police(?, ?, ?, ?, ?)';
|
||||
$sql = 'call sp_r_ajouter_ged_fiche_police(?, ?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($idPolice, $nomOrigine, $cheminFichier, $taille, $user));
|
||||
}
|
||||
|
||||
public function supprimerged($idGed, $motifSuppression)
|
||||
{
|
||||
$user = $_SESSION['login'];
|
||||
|
||||
$sql = 'call sp_supprimer_ged(?, ?, ?);';
|
||||
|
||||
$this->executerRequete($sql, array($idGed, $motifSuppression, $user));
|
||||
}
|
||||
|
||||
}
|
||||
0
PHPExcel/PHPExcel/Chart/Axis.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Chart/Axis.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Chart/GridLines.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Chart/GridLines.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Chart/Properties.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Chart/Properties.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Helper/HTML.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Helper/HTML.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF5.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF5.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF8.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BIFF8.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BuiltIn.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Color/BuiltIn.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/ErrorCode.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/ErrorCode.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Style/Border.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Style/Border.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Style/FillPattern.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Reader/Excel5/Style/FillPattern.php
Normal file → Executable file
|
|
@ -523,8 +523,8 @@ class PHPExcel_Shared_String
|
|||
if (strlen($str) < 2) {
|
||||
return $str;
|
||||
}
|
||||
$c0 = ord($str{0});
|
||||
$c1 = ord($str{1});
|
||||
$c0 = ord($str[0]);
|
||||
$c1 = ord($str[1]);
|
||||
if ($c0 == 0xfe && $c1 == 0xff) {
|
||||
$str = substr($str, 2);
|
||||
} elseif ($c0 == 0xff && $c1 == 0xfe) {
|
||||
|
|
@ -535,11 +535,11 @@ class PHPExcel_Shared_String
|
|||
$newstr = '';
|
||||
for ($i=0; $i<$len; $i+=2) {
|
||||
if ($bom_be) {
|
||||
$val = ord($str{$i}) << 4;
|
||||
$val += ord($str{$i+1});
|
||||
$val = ord($str[$i]) << 4;
|
||||
$val += ord($str[$i+1]);
|
||||
} else {
|
||||
$val = ord($str{$i+1}) << 4;
|
||||
$val += ord($str{$i});
|
||||
$val = ord($str[$i+1]) << 4;
|
||||
$val += ord($str[$i]);
|
||||
}
|
||||
$newstr .= ($val == 0x228) ? "\n" : chr($val);
|
||||
}
|
||||
|
|
|
|||
0
PHPExcel/PHPExcel/Worksheet/Column.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/Column.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/ColumnCellIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/ColumnCellIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/ColumnIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/ColumnIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/Dimension.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/Dimension.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/RowCellIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Worksheet/RowCellIterator.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Cell/Comment.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Cell/Comment.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Content.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Content.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Meta.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Meta.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/MetaInf.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/MetaInf.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Mimetype.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Mimetype.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Settings.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Settings.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Styles.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Styles.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Thumbnails.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/Thumbnails.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/WriterPart.php
Normal file → Executable file
0
PHPExcel/PHPExcel/Writer/OpenDocument/WriterPart.php
Normal file → Executable file
68
Vue/Ajaxbeneficiaireprimeadherent/index.php
Normal file
68
Vue/Ajaxbeneficiaireprimeadherent/index.php
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="4" style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['primeNetteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['commissionTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['commissionAutreTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['accessoireTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Effet") ?> </th>
|
||||
<th style='text-align:center' colspan="3" > <?= _("Bénéficiaire") ?> </th>
|
||||
<th style='text-align:center'> <?= _("P Nette") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Com Court") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Com Commerc") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Acess") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("Prime TTC") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="4" style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['primeNetteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['commissionTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['commissionAutreTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['accessoireTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaires_total['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($beneficiaires as $beneficiaire):
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'><?= dateLang($this->nettoyer($beneficiaire['dateEffet'])) ?></td>
|
||||
<td align='center'> <?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
|
||||
<td align='center'> <?= $this->nettoyer($beneficiaire['numeroBeneficiaire']) ?></td>
|
||||
<td><?= $this->nettoyer($beneficiaire['beneficiaire']) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['primeNette'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['commission'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['commissionAutre'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['accessoire'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['taxe'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['fraisCarte'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['primeTtc'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
62
Vue/Ajaxfacturesfamille/index.php
Normal file
62
Vue/Ajaxfacturesfamille/index.php
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<div id="div_dossiers">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center'> Type </th>
|
||||
<th style='text-align:center'> <?= _("No Bon") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Id Fact") ?> </th>
|
||||
<th style='text-align:center'> Date </th>
|
||||
<th> <?= _("Prestataire") ?> </th>
|
||||
<th> <?= _("Bénéficiaire") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Frais") ?> </th>
|
||||
<th style='text-align:center'> <?= _("T M") ?> </th>
|
||||
<th style='text-align:center'> <?= _("A Remb") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Dépas") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Ret") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($factures as $facture):
|
||||
$idFacture=$this->nettoyer($facture['idFacture']);
|
||||
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
|
||||
$tiersPayant = $facture['tiersPayant'];
|
||||
|
||||
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
||||
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
||||
|
||||
if($codeTypeFacture=="PHAR")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
||||
}
|
||||
elseif($codeTypeFacture=="OPT")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
||||
}
|
||||
elseif($codeTypeFacture=="LAB")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
||||
}
|
||||
elseif($codeTypeFacture=="SEA")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
||||
}
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'> <?= $codeTypeFacture ?> </td>
|
||||
<td align='center'> <?= $numeroBon ?> </td>
|
||||
<td align='center'> <?= $idFacture ?> </td>
|
||||
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
||||
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
|
||||
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
42
Vue/Ajaxlistegedpolice/index.php
Normal file
42
Vue/Ajaxlistegedpolice/index.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<div id="div_ged">
|
||||
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
|
||||
<INPUT style='font-size:14pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreur ?>" readonly >
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center'> Date </th>
|
||||
<th style='text-align:center'> Src </th>
|
||||
<th> <?= _("Souscripteur") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Police") ?> </th>
|
||||
<th> <?= _("Prestataire") ?> </th>
|
||||
<th> <?= _("Adhérent") ?> </th>
|
||||
<th style='text-align:center' colspan="2"> <?= _("Bénéficiaire") ?> </th>
|
||||
<th> Document </th>
|
||||
<th style='text-align:center'> <?= _("Télécharger") ?> </th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($geds as $ged):
|
||||
$idGed=$this->nettoyer($ged['idGed']);
|
||||
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['source']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['souscripteur']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['numeroPolice']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['prestataire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['adherent']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['numeroBeneficiaire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['beneficiaire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['nomOrigine']) ?></td>
|
||||
<td align="center">
|
||||
<a style="font-size:8pt;" href="<?= $cheminFichier ?>" target="_blank" > <?= _("Télécharger") ?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
33
Vue/Ajaxplafondadherent/index.php
Normal file
33
Vue/Ajaxplafondadherent/index.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<div id="div_gar_exo">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center"> <?= _("Exercice") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Garantie") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Limites Contrat") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Taux Incorporation (%)") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Limites en vigeur") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Consommations") ?> </th>
|
||||
<th style="text-align:center"> <?= _("Solde") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($garantieadherents as $garantieadherent):?>
|
||||
<tr valign="top">
|
||||
<td align='center'> <?= $this->nettoyer($garantieadherent['exercieReference'])?> </td>
|
||||
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafondAnnuel'])) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($garantieadherent['tauxAvenant']) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['consommation'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($garantieadherent['solde'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_export_a">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
31
Vue/Ajaxsppolice/categorie.php
Normal file
31
Vue/Ajaxsppolice/categorie.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE PAR CATEGORIE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="10%" style='text-align:center'>Cat</th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="18%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($sppolices as $sppolice):
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td> <?= $this->nettoyer($sppolice['codeProduit']) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
32
Vue/Ajaxsppolice/college.php
Normal file
32
Vue/Ajaxsppolice/college.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE PAR COLEGGE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" width="20%" style='text-align:center'> <?= _("Collège") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="16%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($sppolices as $sppolice):
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td> <?= $this->nettoyer($sppolice['codeProduit']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['libelleCollege']) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
1
Vue/Ajaxsppolice/index.php
Normal file
1
Vue/Ajaxsppolice/index.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
SP POLICE
|
||||
26
Vue/Ajaxsppolice/police.php
Normal file
26
Vue/Ajaxsppolice/police.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<div id="div_detail_sp">
|
||||
|
||||
<input style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" type="text" value="<?= _("RAPPORT S / P POLICE ENTIERE") ?>" disabled >
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($sppolice['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppolice['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
63
Vue/Ajaxsyntheseconsopolice/index.php
Normal file
63
Vue/Ajaxsyntheseconsopolice/index.php
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<div id="div_detail_sp">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2" colspan="2" style='text-align:center'> <?= _("Adhérent") ?> </th>
|
||||
|
||||
<th colspan="2" style='text-align:center'> <?= _("Primes") ?> </th>
|
||||
|
||||
<th colspan="6" style='text-align:center'> <?= _("Plafonds") ?> </th>
|
||||
|
||||
<th colspan="7" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
<th style='text-align:center'> Stat </th>
|
||||
<th style='text-align:center'> <?= _("TTC") ?> </th>
|
||||
|
||||
<th style='text-align:center'> OUT </th>
|
||||
<th style='text-align:center'> INP </th>
|
||||
<th style='text-align:center'> OPT </th>
|
||||
<th style='text-align:center'> MON </th>
|
||||
<th style='text-align:center'> DEN </th>
|
||||
<th style='text-align:center'> FUN </th>
|
||||
|
||||
<th style='text-align:center'> OUT </th>
|
||||
<th style='text-align:center'> INP </th>
|
||||
<th style='text-align:center'> OPT </th>
|
||||
<th style='text-align:center'> MON </th>
|
||||
<th style='text-align:center'> DEN </th>
|
||||
<th style='text-align:center'> FUN </th>
|
||||
<th style='text-align:center'> ALL </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($conommations as $conommation): ?>
|
||||
<tr valign="top">
|
||||
<td><?= $this->nettoyer($conommation['nomAdherent']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($conommation['numeroAdherent']) ?></td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['primeStat'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['primeTtc'])) ?></td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_OUT'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_INP'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_OPT'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_MON'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_DEN'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['plafond_FUN'])) ?></td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_OUT'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_INP'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_OPT'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_MON'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_DEN'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_FUN'])) ?></td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($conommation['consommation_ALL'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
25
Vue/Beneficiaireprimeadherent/index.php
Normal file
25
Vue/Beneficiaireprimeadherent/index.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - Fiche Emission";
|
||||
|
||||
?>
|
||||
|
||||
<legend> <?= _("Détail des primes de la famille") ?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:8pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%" > <?= _("Période du") ?> </td>
|
||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="debutPeriode" NAME="debutPeriode" value="<?= dateLang($this->nettoyer($adherent['dateEffet'])) ?>" > </td>
|
||||
|
||||
<td align="center" > <?= _("au") ?> </td>
|
||||
<td width="15%"> <INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="finPeriode" NAME="finPeriode" value="<?= dateLang($this->nettoyer($adherent['dateFinPolice'])) ?>" > </td>
|
||||
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:afficher_beneficiare_prime_adherent();"> <?= _("Actualiser...") ?> </button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_detail_requete">
|
||||
<?php require "Vue/Ajaxbeneficiaireprimeadherent/index.php";?>
|
||||
</div>
|
||||
|
||||
78
Vue/Changeretatadherent/index.php
Normal file
78
Vue/Changeretatadherent/index.php
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
// $this->titre = "INTER-SANTE - changement état famillet";
|
||||
if (est_anglophone())
|
||||
{
|
||||
$produit = $adherent['produitEng'];
|
||||
$naturepiece = $adherent['naturepieceEng'];
|
||||
$situationfamille = $adherent['situationfamilleEng'];
|
||||
$motifsortie = $adherent['motifsortieEng'];
|
||||
$etatadherent = $adherent['etatadherentEng'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$produit = $adherent['produit'];
|
||||
$naturepiece = $adherent['naturepiece'];
|
||||
$situationfamille = $adherent['situationfamille'];
|
||||
$motifsortie = $adherent['motifsortie'];
|
||||
$etatadherent = $adherent['etatadherent'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="div_fichefamille">
|
||||
<fieldset >
|
||||
<legend><?= _("Informations sur le chef de Famille / Adhérent Numéro") . " : " . $adherent['numeroAdherent']?></legend>
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Nom Adh") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="nom" NAME="nom" value="<?=$adherent['nom']?>" readonly></td>
|
||||
|
||||
<td align="center"> <?= _("Prénoms") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="prenoms" NAME="prenoms" value="<?=$adherent['prenoms']?>"readonly ></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Entrée") ?> </td>
|
||||
<td><INPUT class="form-control datepicker" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($this->nettoyer($adherent['dateEntree'])) ?>" readonly></td>
|
||||
|
||||
<td align="center"> <?= _("Etat") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="etatbeneficiaire" NAME="etatbeneficiaire" value="<?= $etatadherent ?>" readonly ></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<form method="post" action="Changeretatadherent/enregistrer">
|
||||
<input class="sr-only" id="btn_enreg" name="btn_enreg" type="submit" value="<?= _("Enregistrer") ?>" />
|
||||
|
||||
<fieldset>
|
||||
<legend> <?= _("Nouvel Etat") ?> </legend>
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%"> <?= _("Etat") ?> </td>
|
||||
<td width="24%">
|
||||
<SELECT class="form-control" id="codeEtatAdherent" NAME="codeEtatAdherent" autofocus required >
|
||||
<?php liste_options($etatpersonne, ""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td width="10%" align="center"> <?= _("Motif") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="motifEtat" NAME="motifEtat" required></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Effet Changement") ?> </td>
|
||||
<td><INPUT class="form-control datepicker" TYPE="text" id="dateEtat" NAME="dateEtat" Value="<?= dateCouranteLang($_SESSION['lang']) ?>" required ></td>
|
||||
|
||||
<td></td>
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:enregistrer_changement_etat_famille();"> <?= _("Enregistrer") ?> </button> </td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
78
Vue/Changeretatbeneficiaire/index.php
Normal file
78
Vue/Changeretatbeneficiaire/index.php
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
<?php
|
||||
// $this->titre = "INTER-SANTE - changement état dépendant";
|
||||
|
||||
if (est_anglophone())
|
||||
{
|
||||
$produit = $beneficiaire['produitEng'];
|
||||
$naturepiece = $beneficiaire['naturepieceEng'];
|
||||
$lienparente = $beneficiaire['lienparenteEng'];
|
||||
$motifsortie = $beneficiaire['motifsortieEng'];
|
||||
$etatbeneficiaire = $beneficiaire['etatbeneficiaireEng'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$produit = $beneficiaire['produit'];
|
||||
$naturepiece = $beneficiaire['naturepiece'];
|
||||
$lienparente = $beneficiaire['lienparente'];
|
||||
$motifsortie = $beneficiaire['motifsortie'];
|
||||
$etatbeneficiaire = $beneficiaire['etatbeneficiaire'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="div_fichefamille">
|
||||
<fieldset >
|
||||
<legend><?= _("Informations sur le Bénéficiaire") . " : " . $beneficiaire['numeroBeneficiaire']?> </legend>
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <?= _("Nom") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="nomBeneficiaire" NAME="nomBeneficiaire" value="<?=$beneficiaire['nomBeneficiaire']?>" readonly></td>
|
||||
|
||||
<td align="center"> <?= _("Prénoms") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="prenomsBeneficiaire" NAME="prenomsBeneficiaire" value="<?=$beneficiaire['prenomsBeneficiaire']?>"readonly ></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Entrée") ?> </td>
|
||||
<td><INPUT class="form-control datepicker" TYPE="text" id="dateEntree" NAME="dateEntree" value="<?= dateLang($this->nettoyer($beneficiaire['dateEntree'])) ?>" readonly></td>
|
||||
|
||||
<td align="center"> <?= _("Etat") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="etatbeneficiaire" NAME="etatbeneficiaire" value="<?= $etatbeneficiaire ?>" readonly ></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<form method="post" action="Changeretatbeneficiaire/enregistrer">
|
||||
<input class="sr-only" id="btn_enreg" name="btn_enreg" type="submit" value="<?= _("Enregistrer") ?>" />
|
||||
|
||||
<fieldset>
|
||||
<legend> <?= _("Nouvel Etat") ?> </legend>
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%"> <?= _("Etat") ?> </td>
|
||||
<td width="24%">
|
||||
<SELECT class="form-control" id="codeEtatBeneficiaire" NAME="codeEtatBeneficiaire" autofocus required >
|
||||
<?php liste_options($etatpersonne, ""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td width="10%" align="center"> <?= _("Motif") ?> </td>
|
||||
<td><INPUT class="form-control" TYPE="text" id="motifEtat" NAME="motifEtat" required></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Effet Changement") ?> </td>
|
||||
<td><INPUT class="form-control datepicker" TYPE="text" id="dateEtat" NAME="dateEtat" Value="<?= dateCouranteLang($_SESSION['lang']) ?>" required ></td>
|
||||
|
||||
<td></td>
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:enregistrer_changement_etat_beneficiaire();"> <?= _("Enregistrer") ?> </button> </td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</form>
|
||||
119
Vue/Facturesfamilleadh/index.php
Normal file
119
Vue/Facturesfamilleadh/index.php
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - Factrures famille";
|
||||
?>
|
||||
|
||||
<legend> <?= _("Historique de factures de la famille") ?> </legend>
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%" > <?= _("Période du") ?> </td>
|
||||
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['dateEffetAdherent_C'], $_SESSION['lang']) ?>" required></td>
|
||||
|
||||
<td width="10%" align="center" > <?= _("au") ?> </td>
|
||||
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required></td>
|
||||
|
||||
<td> </td>
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerfacturefamille();"><?= _("Actualiser...") ?></button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<button id="btn_pop_consulter_facture" NAME="btn_pop_consulter_facture" type="button" class="sr-only" data-toggle="modal" data-target="#pop_consulter_facture"> </button>
|
||||
|
||||
<div id="div_dossiers">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center'> Type </th>
|
||||
<th style='text-align:center'> <?= _("No Bon") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Id Fact") ?> </th>
|
||||
<th style='text-align:center'> Date </th>
|
||||
<th> <?= _("Prestataire") ?> </th>
|
||||
<th> <?= _("Bénéficiaire") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Frais") ?> </th>
|
||||
<th style='text-align:center'> <?= _("T M") ?> </th>
|
||||
<th style='text-align:center'> <?= _("A Remb") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Dépas") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Ret") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($factures as $facture):
|
||||
$idFacture=$this->nettoyer($facture['idFacture']);
|
||||
$numeroFeuilleMaladie=$this->nettoyer($facture['numeroFeuilleMaladie']);
|
||||
$tiersPayant = $facture['tiersPayant'];
|
||||
|
||||
$codeTypeFacture = $this->nettoyer($facture['codeTypeFacture']);
|
||||
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonConsultation']);
|
||||
|
||||
if($codeTypeFacture=="PHAR")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonOrdonnance']);
|
||||
}
|
||||
elseif($codeTypeFacture=="OPT")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonOptique']);
|
||||
}
|
||||
elseif($codeTypeFacture=="LAB")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonExamen']);
|
||||
}
|
||||
elseif($codeTypeFacture=="SEA")
|
||||
{
|
||||
$numeroBon = $this->nettoyer($facture['numeroBonKine']);
|
||||
}
|
||||
|
||||
?>
|
||||
<tr valign="top">
|
||||
|
||||
<td align='center'> <?= $codeTypeFacture ?> </td>
|
||||
<td align='center'> <?= $numeroBon ?> </td>
|
||||
|
||||
<td align='center'>
|
||||
<input style='font-size:7pt;' type="button" value="<?= $idFacture ?>"
|
||||
onClick="javascript:consulter_facture_pop('<?= $idFacture ?>');">
|
||||
</td>
|
||||
|
||||
<td align='center'><?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?></td>
|
||||
<td><?= $this->nettoyer($facture['prestataire']) ?></td>
|
||||
<td><?= $this->nettoyer($facture['beneficiaire']) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="pop_consulter_facture" role="dialog">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-header">
|
||||
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||
<h4 class="modal-title"> <?= _("Consultation facture...") ?> </h4>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<div id="div_consulter_facture_pop">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="div_facture_detail">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -28,6 +28,13 @@
|
|||
$typeecheancier = $this->nettoyer($adherent['typeecheancierEng']);
|
||||
}
|
||||
$tauxInteretEcheancier = $this->nettoyer($adherent['tauxInteretEcheancier']);
|
||||
/*
|
||||
var_dump(
|
||||
array(
|
||||
"dateEffetAdherent_C"=> $_SESSION['dateEffetAdherent_C'],
|
||||
)
|
||||
);
|
||||
*/
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
89
Vue/Gedpolice/index.php
Normal file
89
Vue/Gedpolice/index.php
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - GED Police";
|
||||
|
||||
/*
|
||||
var_dump
|
||||
(
|
||||
array(
|
||||
"cheminGed" => $_SESSION['cheminGed'],
|
||||
"lienRh" => $_SESSION['lienRh_C'],
|
||||
"dossierGed" => $_SESSION['dossierGed'],
|
||||
)
|
||||
);
|
||||
*/
|
||||
?>
|
||||
|
||||
<legend> <?= _("GED Police => Limité à 50 documents => Filtrer sur période pour obtenir le résultat souhaité") ?> </legend>
|
||||
|
||||
|
||||
<form enctype="multipart/form-data" action="Gedpolice" method="post">
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="7%" > <?= _("Période du") ?> </td>
|
||||
<td width="15%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['dUneSemaineAvant_C'], $_SESSION['lang']) ?>" required></td>
|
||||
|
||||
<td width="7%" align="center" > <?= _("au") ?> </td>
|
||||
<td width="15%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateCouranteLang($_SESSION['lang']) ?>" required></td>
|
||||
|
||||
<td align="center" width="4%" > Doc </td>
|
||||
<td colspan="1"> <INPUT style='font-size:10pt;' class="form-control" type="text" id="nomOrigine" name="nomOrigine" > </td>
|
||||
|
||||
<td width="2%"> </td>
|
||||
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:lister_ged_police();"><?= _("Actualiser...") ?></button> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Document") ?> </td>
|
||||
<td colspan="5"> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
|
||||
|
||||
<td> </td>
|
||||
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<div id="div_ged">
|
||||
<?php if((isset($msgErreur)) && ($msgErreur>" ")) : ?>
|
||||
<INPUT style='font-size:14pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreur ?>" readonly >
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style='text-align:center'> Date </th>
|
||||
<th style='text-align:center'> Src </th>
|
||||
<th> <?= _("Souscripteur") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Police") ?> </th>
|
||||
<th> <?= _("Prestataire") ?> </th>
|
||||
<th> <?= _("Adhérent") ?> </th>
|
||||
<th style='text-align:center' colspan="2"> <?= _("Bénéficiaire") ?> </th>
|
||||
<th> Document </th>
|
||||
<th style='text-align:center'> <?= _("Télécharger") ?> </th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($geds as $ged):
|
||||
$idGed=$this->nettoyer($ged['idGed']);
|
||||
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align='center'><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['source']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['souscripteur']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['numeroPolice']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['prestataire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['adherent']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($ged['numeroBeneficiaire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['beneficiaire']) ?></td>
|
||||
<td><?= $this->nettoyer($ged['nomOrigine']) ?></td>
|
||||
<td align="center">
|
||||
<a style="font-size:8pt;" href="<?= $cheminFichier ?>" target="_blank" > <?= _("Télécharger") ?> </a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
|
@ -102,9 +102,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_exporter_liste_assures">
|
||||
|
||||
</div>
|
||||
<div id="div_exporter_liste_assures"> </div>
|
||||
|
||||
<div id="div_form_upload" style="display: none">
|
||||
<form enctype="multipart/form-data" action="Importassure" method="post">
|
||||
|
|
|
|||
20
Vue/Liercolleges/index.php
Normal file
20
Vue/Liercolleges/index.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php $this->titre = "INTER-SANTE - Lier collèges"; ?>
|
||||
|
||||
<legend> <?= _("Lier les assurés importés à un collège") ?> </legend>
|
||||
|
||||
<table class="table table-condensed table-responsive" style="font-size:10pt;" >
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<td width="15%" > <?= _("Collège") ?> </td>
|
||||
<td>
|
||||
<SELECT style="font-size:10pt;" class="form-control" id="idCollege" NAME="idCollege" required autofocus onChange="afficher_adherent_importee();" >
|
||||
<?php liste_options($college,""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_adherents_importes">
|
||||
</div>
|
||||
118
Vue/Listeimportassure/index.php
Normal file
118
Vue/Listeimportassure/index.php
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - Liste Assurés Importés";
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
|
||||
<input class="sr-only" type="text" id="nb_adh" name="nb_adh" value="<?= $nb_adh ?>">
|
||||
<input class="sr-only" type="text" id="nb_ligne_ass" name="nb_ligne_ass" value="<?= $nb_ligne_ass ?>">
|
||||
|
||||
<legend> <?= _("Liste Assurés Importés") . " => " . _("Lignes Totales") . " => " . $nb_ligne_ass . " => " . _("Lignes sans collège") . " => " . $nb_adh ?> </legend>
|
||||
|
||||
<div id ="div_liste_assure_importe">
|
||||
|
||||
<?php if ($nb_ligne_ass>'0'): ?>
|
||||
|
||||
<input class="sr-only" type="text" id="primeTtcTotal" name="primeTtcTotal" value="<?= $this->nettoyer($dbeneficiaires_total['primeTtcTotal']) ?>">
|
||||
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<td colspan="11" style='text-align:center'> <?= format_N($this->nettoyer($dbeneficiaires_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeTtcTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeNetteStatTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th colspan="3" style='text-align:center'> <?= _("Catégoerie ou Collège") ?> </th>
|
||||
<th colspan="2" style='text-align:center'> <?= _("No Famille") ?> </th>
|
||||
<th> <?= _("Nom") ?> </th>
|
||||
<th> <?= _("Prénoms") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Lien Parenté") ?> </th>
|
||||
<th style='text-align:center'>Sex</th>
|
||||
<th style='text-align:center'> <?= _("Naissance") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Effet") ?> </th>
|
||||
|
||||
<th style='text-align:center'> <?= _("Prime HT") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("TTC") ?> </th>
|
||||
<th style='text-align:center'>Stat</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="11" style='text-align:center'> <?= format_N($this->nettoyer($dbeneficiaires_total['nbLigne'])) ?> <?= _("Lignes au total") ?> </td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeTtcTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($dbeneficiaires_total['primeNetteStatTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($beneficiaires as $beneficiaire):
|
||||
$idBeneficiairemodel=$beneficiaire['idBeneficiairemodel'];
|
||||
$idCollege=$beneficiaire['idCollege'];
|
||||
?>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['categorie']) ?></td>
|
||||
|
||||
<?php if ($idCollege>'0'): ?>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['libelleCollege']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['codeProduit']) ?></td>
|
||||
<?php else : ?>
|
||||
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($beneficiaire['libelleCollege']) ?></td>
|
||||
<td align='center' style="background-color: yellow;"><?= $this->nettoyer($beneficiaire['codeProduit']) ?></td>
|
||||
<?php endif; ?>
|
||||
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['numeroAdherent']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['noFamille']) ?></td>
|
||||
<td><?= $this->nettoyer($beneficiaire['nom']) ?></td>
|
||||
<td><?= $this->nettoyer($beneficiaire['prenoms']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['codeLienParente']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($beneficiaire['sexe']) ?></td>
|
||||
<td align='center'><?= dateLang($this->nettoyer($beneficiaire['dateNaissance'])) ?></td>
|
||||
<td align='center'><?= dateLang($this->nettoyer($beneficiaire['dateEffet'])) ?></td>
|
||||
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['primeHt'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['taxe'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['fraisCarte'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['primeTtc'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($beneficiaire['primeNetteStat'])) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php else : ?>
|
||||
<div class="alert alert-danger" style="height:30px; padding:5px;" >
|
||||
<H4> <?= _("FICHIER IMPORTATION VIDE!") ?> </H4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div id ="div_export_a">
|
||||
</div>
|
||||
|
||||
58
Vue/Nonfacturepolice/index.php
Normal file
58
Vue/Nonfacturepolice/index.php
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
|
||||
<legend> <?= _("PRIMES NON FACTUREES DE LA POLICE") . " : " . $this->nettoyer($_SESSION['numeroPolice_C'])?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Nb Lignes") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Prime HT") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("Prime TTC") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($nonfactures as $nonfacture):?>
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($nonfacture['dateEffet'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['nbLignes'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeHt'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['taxe'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['fraisCarte'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeTtc'])) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
59
Vue/Nonfacturepolicecons/index.php
Normal file
59
Vue/Nonfacturepolicecons/index.php
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
<legend> <?= _("PRIMES NON FACTUREES DE LA POLICE") . " : " . $this->nettoyer($_SESSION['numeroPolice_C']) ?> </legend>
|
||||
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Nb Lignes") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Prime HT") ?> </th>
|
||||
<th style='text-align:center'> <?= (isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes") ?> </th>
|
||||
<th style='text-align:center'>
|
||||
<?php
|
||||
if(isset($_SESSION['composanteprime']['Cartes']))
|
||||
{
|
||||
echo _($_SESSION['composanteprime']['Cartes']);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo _("Cartes");
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th style='text-align:center'> <?= _("Prime TTC") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td style='text-align:center'> Total </td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['nbLignesTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeHtTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['taxeTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['fraisCarteTotal'])) ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($ente_nonfacture['primeTtcTotal'])) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php foreach ($nonfactures as $nonfacture):?>
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($nonfacture['dateEffet'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['nbLignes'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeHt'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['taxe'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['fraisCarte'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($nonfacture['primeTtc'])) ?> </td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
83
Vue/Spadherent/index.php
Normal file
83
Vue/Spadherent/index.php
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - Rapport S/P Famille";
|
||||
|
||||
$adherentRetire = $spadherent['adherentRetire'];
|
||||
$dateSortieAdherent = $spadherent['dateSortieAdherent'];
|
||||
?>
|
||||
|
||||
<legend><?= _("Rapport S / P de la famille") . " : " .$this->nettoyer($spadherent['adherent'])." ( ".$this->nettoyer($spadherent['numeroAdherent'])." ) " ?> </legend>
|
||||
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Effet Police") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Echéance Police") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Police") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Ratio acquise police") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($spadherent['dateEffet'])) ?> </td>
|
||||
<td> <?= dateLang($this->nettoyer($spadherent['dateEcheance'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['duree_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['ratio_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['dureePolice']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Effet Famille") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Echéance Famille") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée acquise Famille") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Ratio acquise Famille") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($spadherent['dateEffetAdherent'])) ?> </td>
|
||||
<td> <?= dateLang($this->nettoyer($spadherent['dateEcheance'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['duree_acquise_adherent']) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['ratio_acquise_adherent']) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['dureePolice']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Totales") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Primes Acquises") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Consommations") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Rapport S/P") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("S/P Global") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <?= format_N($this->nettoyer($spadherent['primestat'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($spadherent['prime_acquise'])) ?> </td>
|
||||
<td> <?= format_N($this->nettoyer($spadherent['consommation'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['rapportsp']) ?> </td>
|
||||
<td> <?= $this->nettoyer($spadherent['rapportspgeneral']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if ($adherentRetire=="1") : ?>
|
||||
<div class="alert alert-danger" style="height:30px; padding:5px; margin-bottom:5px; text-align:center;" >
|
||||
<H4><?= _("Date sortie") . " : " . dateLang($dateSortieAdherent) ?></H4>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
40
Vue/Sppolice/index.php
Normal file
40
Vue/Sppolice/index.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php $this->titre = "INTER-SANTE - Rapport S/P police"; ?>
|
||||
|
||||
<legend> <?= _("Rapport S / P de la police") . " : " . $this->nettoyer($_SESSION['numeroPolice_C'])?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Echéance") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Ratio Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEffet'])) ?> </td>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEcheance'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['duree_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['ratio_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['dureePolice']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_police();" > <?= _("Police entière...") ?> </button> </td>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_categorie();" > <?= _("Par Catégorie...") ?> </button> </td>
|
||||
<td> <button type="button" style="font-size:10pt;" class="form-control btn btn-primary" onclick="javascript:sinistres_a_prime_college();" > <?= _("Par Collège...") ?> </button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_detail_sp">
|
||||
|
||||
</div>
|
||||
49
Vue/Syntheseconsopolice/index.php
Normal file
49
Vue/Syntheseconsopolice/index.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
// $this->titre = "INTER-SANTE - SYNTHESE CONSOMMATIONS DE LA POLICE";
|
||||
?>
|
||||
|
||||
<legend> <?= _("SYNTHESE CONSOMMATIONS DE LA POLICE") . " : " . $this->nettoyer($_SESSION['numeroPolice_C'])?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt; text-align:center'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Effet") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Date Echéance") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Ratio Acquise") ?> </th>
|
||||
<th width="20%" style='text-align:center'> <?= _("Durée Contrat") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEffet'])) ?> </td>
|
||||
<td> <?= dateLang($this->nettoyer($sppoliceentete['dateEcheance'])) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['duree_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['ratio_acquise']) ?> </td>
|
||||
<td> <?= $this->nettoyer($sppoliceentete['dureePolice']) ?> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:requetes_synthese_consommation_police();"> <?= _("Afficher résultats")."..." ?> </button> </td>
|
||||
|
||||
|
||||
<td width="10%" > </td>
|
||||
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:requetes_synthese_consommation_police_export();"> <?= _("Exporter vers Excel...") ?> </button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_detail_exp">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="div_detail_sp">
|
||||
|
||||
</div>
|
||||
|
|
@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
|
|||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
<!-- Application Scripts -->
|
||||
<script src="/Js/fonctions.js?ver=2026.01.04.33"></script>
|
||||
<script src="/Js/fonctions.js?ver=2026.01.05.13"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
raffraichier_gabarit();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user