diff --git a/.gitignore b/.gitignore index 4892476..e03716f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ - Config/ Config Config/dev.ini @@ -10,4 +9,6 @@ Cron/prod.ini Temp/ Temp *.ssh -.ssh/ \ No newline at end of file +.ssh/ +Gettext/ +Gettext \ No newline at end of file diff --git a/Controleur/ControleurAjaxavenant.php b/Controleur/ControleurAjaxavenant.php index ef2be01..673cb4b 100644 --- a/Controleur/ControleurAjaxavenant.php +++ b/Controleur/ControleurAjaxavenant.php @@ -35,5 +35,12 @@ class ControleurAjaxavenant extends Controleur { $this->genererVueAjax(array('dateAvenant' => $dateAvenant)); } + + public function notifier() + { + $idAvenant = $this->requete->getParametre("idAvenant"); + + $this->avenant->notifieravenant($idAvenant); + } } \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedbeneficiaireprod.php b/Controleur/ControleurAjaxlistegedbeneficiaireprod.php index a237798..44db57c 100644 --- a/Controleur/ControleurAjaxlistegedbeneficiaireprod.php +++ b/Controleur/ControleurAjaxlistegedbeneficiaireprod.php @@ -13,11 +13,13 @@ class ControleurAjaxlistegedbeneficiaireprod extends Controleur { { unset($_FILES['fichier_upload']); - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); + $d1 = $this->requete->getParametreDate("d1"); + $d2 = $this->requete->getParametreDate("d2"); - $geds = $this->ged->getgedbeneficiaireprod($d1, $d2, $nomOrigine); + $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); + $codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece"); + + $geds = $this->ged->getgedbeneficiaireprod($d1, $d2, $nomOrigine, $codeNaturePiece); $this->genererVueAjax(array('geds' => $geds)); } diff --git a/Controleur/ControleurAjaxmouvementassure.php b/Controleur/ControleurAjaxmouvementassure.php index 26d37f8..4de6b99 100644 --- a/Controleur/ControleurAjaxmouvementassure.php +++ b/Controleur/ControleurAjaxmouvementassure.php @@ -16,6 +16,8 @@ class ControleurAjaxmouvementassure extends Controleur { $debut = $this->requete->getParametreDate("debut"); $fin = $this->requete->getParametreDate("fin"); + $_SESSION['idAvenant'] = "0"; + $mouvementassures = $this->mouvementassure->getMouvementassure($ajoutClient, $codeSensMouvement, $valide, $debut, $fin); $this->genererVueAjax(array('mouvementassures' => $mouvementassures)); @@ -40,5 +42,17 @@ class ControleurAjaxmouvementassure extends Controleur { $this->genererVueAjax(array('mouvementassures' => $mouvementassures)); } + + public function avenant() + { + $idAvenant = $this->requete->getParametreFormulaire("idAvenant"); + $_SESSION['idAvenant'] = $idAvenant; + } + public function reinitvalidation() + { + $idMvt = $this->requete->getParametreFormulaire("idMvt"); + + $this->mouvementassure->reinitvalidation($idMvt); + } } \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetedetailsinistres.php b/Controleur/ControleurAjaxrequetedetailsinistres.php new file mode 100644 index 0000000..7c04721 --- /dev/null +++ b/Controleur/ControleurAjaxrequetedetailsinistres.php @@ -0,0 +1,31 @@ +sppolice = new Police(); + } + + public function index() + { + $dateDebut = $this->requete->getParametreDate("dateFacture1"); + $dateFin = $this->requete->getParametreDate("dateFacture2"); + + + $_SESSION['dateDebutRequete'] = $this->requete->getParametreFormulaire("dateFacture1"); + $_SESSION['dateFinRequete'] = $this->requete->getParametreFormulaire("dateFacture2"); + + $rpsinistres = $this->sppolice->requetedetailsinistres($dateDebut, $dateFin); + + $rpsinistres_total = $this->sppolice->requetedetailsinistres_total($dateDebut, $dateFin); + + $this->genererVueAjax(array( + 'rpsinistres' => $rpsinistres, + 'rpsinistres_total' => $rpsinistres_total + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetedetailsinistres.php b/Controleur/ControleurAjaxrequeteentetedetailsinistres.php new file mode 100644 index 0000000..7fc26f4 --- /dev/null +++ b/Controleur/ControleurAjaxrequeteentetedetailsinistres.php @@ -0,0 +1,23 @@ +sppolice = new Police(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVueAjax(array('sppoliceentete' => $sppoliceentete)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetefrequencesprestataires.php b/Controleur/ControleurAjaxrequeteentetefrequencesprestataires.php new file mode 100644 index 0000000..dd469e9 --- /dev/null +++ b/Controleur/ControleurAjaxrequeteentetefrequencesprestataires.php @@ -0,0 +1,23 @@ +sppolice = new Police(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVueAjax(array('sppoliceentete' => $sppoliceentete)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteenteteresumesinistres.php b/Controleur/ControleurAjaxrequeteenteteresumesinistres.php new file mode 100644 index 0000000..eac97fb --- /dev/null +++ b/Controleur/ControleurAjaxrequeteenteteresumesinistres.php @@ -0,0 +1,23 @@ +sppolice = new Police(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVueAjax(array('sppoliceentete' => $sppoliceentete)); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetefrequencesprestataires.php b/Controleur/ControleurAjaxrequetefrequencesprestataires.php new file mode 100644 index 0000000..827b3a7 --- /dev/null +++ b/Controleur/ControleurAjaxrequetefrequencesprestataires.php @@ -0,0 +1,30 @@ +sppolice = new Police(); + } + + public function index() + { + $dateDebut = $this->requete->getParametreDate("dateFacture1"); + $dateFin = $this->requete->getParametreDate("dateFacture2"); + + $_SESSION['dateDebutRequete'] = $this->requete->getParametreFormulaire("dateFacture1"); + $_SESSION['dateFinRequete'] = $this->requete->getParametreFormulaire("dateFacture2"); + + $rpsinistres = $this->sppolice->requetefrequenceinistres($dateDebut, $dateFin); + + $rpsinistres_total = $this->sppolice->requetefrequencesinistres_total($dateDebut, $dateFin); + + $this->genererVueAjax(array( + 'rpsinistres' => $rpsinistres, + 'rpsinistres_total' => $rpsinistres_total + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteresumesinistres.php b/Controleur/ControleurAjaxrequeteresumesinistres.php new file mode 100644 index 0000000..09d5454 --- /dev/null +++ b/Controleur/ControleurAjaxrequeteresumesinistres.php @@ -0,0 +1,31 @@ +sppolice = new Police(); + } + + public function index() + { + $dateFacture1 = $this->requete->getParametreDate("dateFacture1"); + $dateFacture2 = $this->requete->getParametreDate("dateFacture2"); + + + $_SESSION['dateEffetPolice'] = $this->requete->getParametreFormulaire("dateFacture1"); + $_SESSION['dateFinRequete'] = $this->requete->getParametreFormulaire("dateFacture2"); + + $rpsinistres = $this->sppolice->requeteresumesinistres($dateFacture2); + + $rpsinistres_total = $this->sppolice->requeteresumesinistres_total($dateFacture2); + + $this->genererVueAjax(array( + 'rpsinistres' => $rpsinistres, + 'rpsinistres_total' => $rpsinistres_total + )); + } +} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteresumesinistresexport.php b/Controleur/ControleurAjaxrequeteresumesinistresexport.php new file mode 100644 index 0000000..08120fa --- /dev/null +++ b/Controleur/ControleurAjaxrequeteresumesinistresexport.php @@ -0,0 +1,78 @@ +sppolice = new Police(); + } + + public function index() + { + $dateFacture1 = $this->requete->getParametreDate("dateFacture1"); + $dateFacture2 = $this->requete->getParametreDate("dateFacture2"); + + $_SESSION['dateDebutRequete'] = $this->requete->getParametreFormulaire("dateFacture1"); + $_SESSION['dateFinRequete'] = $this->requete->getParametreFormulaire("dateFacture2"); + + $idPolice = $_SESSION['idPolice_C']; + + $dateReference = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEnteteExport($idPolice, $dateReference); + + $rpsinistres = $this->sppolice->requeteresumesinistresexport($dateFacture2); + //$rpsinistres_total = $this->sppolice->requeteresumesinistres_total($dateFacture2); + + + // Excel + $headerXLS = array + ( + _('Adhérent Principal'), + _('Date de début'), + _('Période passée'), + _('Sinistres'), + _('Ratio'), + _('Cat') + ); + + $dataXLS = array(); + + foreach ($rpsinistres as $v) + { + $dataXLS[]=$v; + } + + $classeur = new PHPExcel(); + $classeur->getProperties()->setCreator("INTER-SANTE"); + $classeur->setActiveSheetIndex(0); + $feuille=$classeur->getActiveSheet(); + $feuille->setTitle(_('RESUME')); + $feuille->setCellValue('A1', convertirc(_('RAPPORT DES SINISTRES'))); + $feuille->mergeCells('A1:F1'); + $feuille->setCellValue('A3', convertirc(_('Souscripteur').' : '.$sppoliceentete['Souscripteur'])); + $feuille->setCellValue('A4', _('Numéro Police') . ' : ' . $sppoliceentete['numeroPolice']); + $feuille->setCellValue('A5', _('Période Couverte') . ' : ' . dateLang($sppoliceentete['dateEffet'], $_SESSION['lang']) . ' AU ' . dateLang($sppoliceentete['dateEcheance'], $_SESSION['lang'])); + $feuille->fromArray($headerXLS, NULL, 'A7', true); + $feuille->fromArray($dataXLS, NULL, 'A8', true); + + //Forcer le téléchargement vers le navigateur; + $fichier = 'Temp/TMP_RESUME_SINISTRE'."_".uniqid().".xlsx"; + + $writer = new PHPExcel_Writer_Excel2007($classeur); + $writer->save($fichier); + + $t_html ='
'; + $t_html .=' '._("TELECHARGER").' '; + $t_html .='
adherent->getNombreGedAdherent($idAdherent); $this->genererVue(array( 'adherent' => $adherent, @@ -78,7 +79,8 @@ class ControleurFicheadherent extends Controleur { 'dataConsoParMois' => $dataConsoParMois, 'dataConsoParLiens' => $dataConsoParLiens, 'dataConsoParGaranties' => $dataConsoParGaranties, - 'nbreLienParente' => $nbreLienParente + 'nbreLienParente' => $nbreLienParente, + 'nombreGed' => $nombreGed )); } diff --git a/Controleur/ControleurFichebeneficiaire.php b/Controleur/ControleurFichebeneficiaire.php index e7e40e8..0c0dbf9 100644 --- a/Controleur/ControleurFichebeneficiaire.php +++ b/Controleur/ControleurFichebeneficiaire.php @@ -37,6 +37,7 @@ class ControleurFichebeneficiaire extends Controleur $codeTypeContrat = $_SESSION['codeTypeContrat']; $idPolice = $_SESSION['idPolice_C']; + $this->police->getContextePoliceId($idPolice); $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); @@ -225,6 +226,8 @@ class ControleurFichebeneficiaire extends Controleur // Encodage JSON $dataConsoParMois = json_encode($tabConsoParMois, JSON_NUMERIC_CHECK); $dataConsoParGaranties = json_encode($tabConsoParGaranties, JSON_NUMERIC_CHECK); + + $nombreGed = $this->beneficiaire->getNombreGedBeneficiaire($idBeneficiaire); $this->genererVue(array( 'beneficiaire' => $beneficiaire, @@ -234,7 +237,8 @@ class ControleurFichebeneficiaire extends Controleur 'limite_beneficiaire' => $limite_beneficiaire, 'limite_adherent' => $limite_adherent, 'dataConsoParMois' => $dataConsoParMois, - 'dataConsoParGaranties' => $dataConsoParGaranties + 'dataConsoParGaranties' => $dataConsoParGaranties, + 'nombreGed' => $nombreGed )); } diff --git a/Controleur/ControleurGedadherent.php b/Controleur/ControleurGedadherent.php index 0688e2a..e8324c9 100644 --- a/Controleur/ControleurGedadherent.php +++ b/Controleur/ControleurGedadherent.php @@ -25,7 +25,7 @@ class ControleurGedadherent extends Controleur { $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); $codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece"); - + if(!empty($_POST)) { define('TARGET', $_SESSION['cheminGed']); // Repertoire cible @@ -41,13 +41,10 @@ class ControleurGedadherent extends Controleur { $extension = ''; if($codeNaturePiece == "AUT"){ - $libelleDocument = $this->requete->getParametreFormulaire("libelleAutre"); + $libelleAutre = $this->requete->getParametreFormulaire("libelleAutre"); }else{ - $libelleDocument = $this->ged->getLibelleTypeDocument($codeNaturePiece); + $libelleAutre = ""; } - - var_dump(array($codeNaturePiece, $libelleDocument)); - die(); if( !is_dir(TARGET) ) { @@ -92,7 +89,8 @@ class ControleurGedadherent extends Controleur { : 'Chargé avec succès'; // on va envoyer dans la base de données - $this->ged->enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleDocument); + $this->ged->enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre); + $this->rediriger("Gedadherent"); } else @@ -143,7 +141,7 @@ class ControleurGedadherent extends Controleur { $d2 = date('Y-m-d'); - $geds = $this->ged->getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece); + $geds = $this->ged->getgedadherent($d1, $d2, "", ""); unset($_FILES['fichier_upload']); diff --git a/Controleur/ControleurGedbeneficiaireprod.php b/Controleur/ControleurGedbeneficiaireprod.php index fb12040..de14b55 100644 --- a/Controleur/ControleurGedbeneficiaireprod.php +++ b/Controleur/ControleurGedbeneficiaireprod.php @@ -1,16 +1,19 @@ menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Gedbeneficiaireprod'); $this->ged = new Ged(); + $this->naturepiece = (new Naturepiece())->getListe(); } public function index($msgErreur=null) @@ -20,6 +23,9 @@ class ControleurGedbeneficiaireprod extends Controleur { $nouveau_fichier = "Rien"; + $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); + $codeNaturePiece = $this->requete->getParametreFormulaire("codeNaturePiece"); + if(!empty($_POST)) { define('TARGET', $_SESSION['cheminGed']); // Repertoire cible @@ -34,6 +40,12 @@ class ControleurGedbeneficiaireprod extends Controleur { // Variables $extension = ''; + if($codeNaturePiece == "AUT"){ + $libelleAutre = $this->requete->getParametreFormulaire("libelleAutre"); + }else{ + $libelleAutre = ""; + } + if( !is_dir(TARGET) ) { if( !mkdir(TARGET, 0755) ) @@ -76,7 +88,7 @@ class ControleurGedbeneficiaireprod extends Controleur { : 'Chargé avec succès'; // on va envoyer dans la base de données - $this->ged->enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille); + $this->ged->enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre); $this->rediriger("Gedbeneficiaireprod"); } else @@ -125,10 +137,10 @@ class ControleurGedbeneficiaireprod extends Controleur { $d1 = $_SESSION['dUneSemaineAvant_C']; $d2 = date('Y-m-d'); - $geds = $this->ged->getgedbeneficiaireprod($d1, $d2, ""); + $geds = $this->ged->getgedbeneficiaireprod($d1, $d2, "", ""); unset($_FILES['fichier_upload']); - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); + $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur, 'naturepiece' => $this->naturepiece)); } } \ No newline at end of file diff --git a/Controleur/ControleurListeavenant.php b/Controleur/ControleurListeavenant.php index c291506..e721c74 100644 --- a/Controleur/ControleurListeavenant.php +++ b/Controleur/ControleurListeavenant.php @@ -22,7 +22,15 @@ class ControleurListeavenant extends Controleur { $police = $this->police->getPoliceId($idPolice); $avenants = $this->avenant->getAvenant($idPolice); + + $dj = date("Y-m-d"); - $this->genererVue(array('police' => $police, 'avenants' => $avenants)); + $sppoliceentete = $this->police->getRapportSpPoliceEntete($idPolice, $dj); + + $this->genererVue(array( + 'police' => $police, + 'avenants' => $avenants, + 'sppoliceentete' => $sppoliceentete + )); } } \ No newline at end of file diff --git a/Controleur/ControleurModifierbeneficiaire.php b/Controleur/ControleurModifierbeneficiaire.php index 914c24f..3730243 100644 --- a/Controleur/ControleurModifierbeneficiaire.php +++ b/Controleur/ControleurModifierbeneficiaire.php @@ -6,8 +6,8 @@ require_once 'Modele/Beneficiaire.php'; require_once 'Modele/Naturepiece.php'; require_once 'Modele/Sexe.php'; require_once 'Modele/Groupesanguin.php'; - require_once 'Modele/Lienparente.php'; +require_once 'Modele/Mouvementassure.php'; class ControleurModifierbeneficiaire extends Controleur { private $beneficiaire; @@ -16,18 +16,19 @@ class ControleurModifierbeneficiaire extends Controleur { private $groupesanguin; private $adherent; private $lienparente; - + private $mouvementassure; + public function __construct() { $this->menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Modifierbeneficiaire'); - $this->beneficiaire = new Beneficiaire(); - $this->naturepiece = (new Naturepiece())->getListe(); - $this->sexe = (new Sexe())->getListe(); - $this->groupesanguin = (new Groupesanguin())->getListe(); - $this->adherent = new Adherent(); - // $this->lienparente = (new Lienparente())->getListe(); - $this->lienparente = new Lienparente(); + $this->beneficiaire = new Beneficiaire(); + $this->naturepiece = (new Naturepiece())->getListe(); + $this->sexe = (new Sexe())->getListe(); + $this->groupesanguin = (new Groupesanguin())->getListe(); + $this->adherent = new Adherent(); + $this->lienparente = new Lienparente(); + $this->mouvementassure = new Mouvementassure(); } public function index() { @@ -56,8 +57,30 @@ class ControleurModifierbeneficiaire extends Controleur { $lienparente = $this->lienparente->getListeDependant(); } - $this->genererVue(array('beneficiaire' => $beneficiaire, 'adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe, - 'groupesanguin' => $this->groupesanguin, 'lienparente' => $lienparente)); + $nombreGed = $this->beneficiaire->getNombreGedBeneficiaire($idBeneficiaire); + + $idAvenant = $_SESSION['idAvenant']; + + if($idAvenant > "0"){ + $mouvementassure = $this->mouvementassure->getMouvementassureID($idBeneficiaire, $idAvenant); + }else{ + $mouvementassure = array( + 'id' => "0", + 'aCorriger' => "0", + 'motif' => "" + ); + } + + $this->genererVue(array( + 'beneficiaire' => $beneficiaire, + 'adherent' => $adherent, + 'naturepiece' => $this->naturepiece, + 'sexe' => $this->sexe, + 'groupesanguin' => $this->groupesanguin, + 'lienparente' => $lienparente, + 'nombreGed' => $nombreGed, + 'mouvementassure' => $mouvementassure + )); } public function modifier($prenoms=null) { @@ -82,6 +105,6 @@ class ControleurModifierbeneficiaire extends Controleur { $this->beneficiaire->modifier($id, $nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire); - $this->rediriger("Fichebeneficiaire/".$id); + $this->rediriger("Mouvementassure/"); } } \ No newline at end of file diff --git a/Controleur/ControleurRequetes.php b/Controleur/ControleurRequetes.php new file mode 100644 index 0000000..88e6d86 --- /dev/null +++ b/Controleur/ControleurRequetes.php @@ -0,0 +1,35 @@ +menuvue = new Menuvueutilisateur(); + $this->menuvue->getMenuVue('Requetes'); + + $this->requetes = (new Requetes())->getListe(); + $this->sppolice = new Police(); + } + + public function index() + { + $idPolice = $_SESSION['idPolice_C']; + + $dj = date("Y-m-d"); + + $sppoliceentete = $this->sppolice->getRapportSpPoliceEntete($idPolice, $dj); + + $_SESSION['dateFinRequete'] = dateCouranteLang($_SESSION['lang']); + + $this->genererVue(array( + 'requetes' => $this->requetes, + 'sppoliceentete' => $sppoliceentete + )); + } +} \ No newline at end of file diff --git a/Framework/Controleurrequete.php b/Framework/Controleurrequete.php index 00b679f..f574c00 100755 --- a/Framework/Controleurrequete.php +++ b/Framework/Controleurrequete.php @@ -9,4 +9,88 @@ require_once 'Localisation.php'; abstract class Controleurrequete extends Controleur { +} + +function pdf_to_image($fichierSimple, $uniqid) +{ + $inputPdf = dirname(__DIR__) . "/".$fichierSimple; // PDF d’origine + $path_parts = pathinfo($inputPdf); + $outputPdf = $path_parts["dirname"]."/TMP_$uniqid.pdf"; // PDF final "image-only" + $fichier="Temp/TMP_$uniqid.pdf"; + + // $dpi = 300; // 150 si tu veux alléger + $dpi = 150; // 150 si tu veux alléger + $quality = 90; // JPEG quality + + // dossier temporaire + $tmpDir = sys_get_temp_dir() . '/pdf2img_' . uniqid(); + + if (!is_dir($tmpDir)) { + mkdir($tmpDir, 0777, true); + } + + try { + $imagick = new Imagick(); + + // très important : définir la résolution AVANT readImage + $imagick->setResolution($dpi, $dpi); + $imagick->readImage($inputPdf); + + $nbPages = $imagick->getNumberImages(); + $imageFiles = []; + + for ($i = 0; $i < $nbPages; $i++) { + $imagick->setIteratorIndex($i); + $page = $imagick->getImage(); + + // important : forcer un fond blanc si le PDF avait de la transparence + $page->setImageBackgroundColor('white'); + $page = $page->mergeImageLayers(Imagick::LAYERMETHOD_FLATTEN); + // sortie en JPEG + $page->setImageFormat('jpeg'); + $page->setImageCompression(Imagick::COMPRESSION_JPEG); + $page->setImageCompressionQuality($quality); + + $imgPath = sprintf('%s/page-%03d.jpg', $tmpDir, $i + 1); + $page->writeImage($imgPath); + $imageFiles[] = $imgPath; + + $page->clear(); + $page->destroy(); + } + + // 1) on essaie img2pdf (plus propre) + $escapedImages = array_map('escapeshellarg', $imageFiles); + $cmd = 'img2pdf ' . implode(' ', $escapedImages) . ' -o ' . escapeshellarg($outputPdf); + exec($cmd, $o1, $r1); + + if ($r1 !== 0) { + // 2) fallback : ImageMagick + // attention : certaines installations utilisent "convert" au lieu de "magick" + $cmd2 = 'magick ' . implode(' ', $escapedImages) . ' -density ' . intval($dpi) . ' -compress jpeg ' . escapeshellarg($outputPdf); + exec($cmd2, $o2, $r2); + if ($r2 !== 0) { + throw new Exception("Impossible de recomposer le PDF (img2pdf puis magick ont échoué)"); + } + } + + // nettoyage (optionnel) + foreach ($imageFiles as $f) { + @unlink($f); + } + @rmdir($tmpDir); + } catch (Exception $e) { + echo "Erreur : " . $e->getMessage(); + exit(); + } + // Fin conversion + + // supprimer $inputPdf + @unlink($inputPdf); + + $t_html ='
'; + $t_html .=' TELECHARGER '; + $t_html .='
{ if ($(th).data('hidden')) hiddenTargets.push(idx); }); + const exportConfig = { + title: titreDoc, + messageTop: message, + exportOptions: { columns: ':visible' } + }; + + // --- CORRECTION ICI --- + // On définit les boutons par défaut uniquement SI aucun bouton n'est fourni dans 'options' + const defaultButtons = [ + $.extend(true, {}, exportConfig, { extend: 'copy', className: 'btn btn-sm btn-light' }), + $.extend(true, {}, exportConfig, { extend: 'excel', className: 'btn btn-sm btn-success' }), + $.extend(true, {}, exportConfig, { + extend: 'pdf', + className: 'btn btn-sm btn-danger', + orientation: 'landscape', + pageSize: 'A4' + }), + $.extend(true, {}, exportConfig, { extend: 'print', className: 'btn btn-sm btn-dark' }) + ]; + + // On vérifie si l'utilisateur a passé ses propres boutons + const finalButtons = (options && options.buttons) ? options.buttons : defaultButtons; + const instance = $table.DataTable($.extend(true, { destroy: true, responsive: true, + pageLength: 25, order: [[0, "desc"]], + dom: 'Bfrtip', language: translations[codeLangue] || translations.fr_FR, columnDefs: [{ targets: hiddenTargets, visible: false }], - dom: 'Bfrtip', - buttons: ['copy', 'csv', 'excel', 'pdf', 'print'] + fixedHeader: { header: true, footer: true }, + buttons: finalButtons // On utilise la liste filtrée }, options)); - // Ajustement après rendu $table.on('init.dt', function () { if (instance && instance.responsive) { instance.columns.adjust(); @@ -434,6 +442,7 @@ function appliquerDataTable(selector = '.tabliste', options = {}) { }); } + function dataTableSpeciale() { const $table = $('.tabspeciale'); const codeLangue = $("#codeLangue").val() || "fr_FR"; @@ -1220,7 +1229,11 @@ function addChartToPdf(pdf, canvasId, title, startY) { function charger_contrats(){ + const codeLangue = document.querySelector("#codeLangue")?.value || "fr_FR"; + const titre = (codeLangue === "en_US") ? "LIST OF CONTRACTS" : "LISTE DES CONTRATS"; + showLoader("#div_liste_contrats", { size: 3 }); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlistepolicesclient/", @@ -1230,7 +1243,7 @@ function charger_contrats(){ }, success: function(data) { $("#div_liste_contrats").html(data); - appliquerDataTable('.tabliste'); + appliquerDataTable('.tabliste', {}, titre); } }); } @@ -2013,6 +2026,7 @@ function selectionner_beneficiaire(id,no) function afficher_beneficiaire() { + if ($("#numeroBeneficiaire_C" ).val()>"") { window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+$("#numeroBeneficiaire_C" ).val()+"/"); @@ -2021,11 +2035,18 @@ function afficher_beneficiaire() function afficher_beneficiaire_id() { - idBeneficiaire = $("#idBeneficiaire_C" ).val(); - if ($("#idBeneficiaire_C" ).val()>"") - { - window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire+"/"); + idBeneficiaire = $("#idBeneficiaire_C" ).val(); + idAvenant = $("#idAvenant").val(); + + if(idAvenant > "0"){ + modifier_beneficiaire(idBeneficiaire); + }else{ + if ($("#idBeneficiaire_C" ).val()>"") + { + window.location.assign($("#racineWeb" ).val()+"Fichebeneficiaire/"+idBeneficiaire+"/"); + } } + } function creer_beneficiaires() @@ -4639,7 +4660,8 @@ function lister_polices_client(id) { const vues = { 1: "Rechercherassure", 2: "Syntheseconsopolice", - 3: "Sppolice" + 3: "Sppolice", + 4: "Requetes" }; vue = vues[id] || null; // null si id ne correspond à rien @@ -5607,6 +5629,7 @@ function ajax_menus_profil() function afficher_menu_vue_profil() { codeProfil=$("#codeProfil").val(); + if (codeProfil<=" ") { v_msg="Veuillez sélectionner un profil!"; @@ -5833,8 +5856,6 @@ function retirer_tous_menu_vue_profil() function retirer_un_menu_vue_profil(codeMenu) { - debugger; - codeProfil=$("#codeProfil").val(); if (codeProfil<=" ") @@ -6612,7 +6633,17 @@ function init_remplacement_adherent() donnees = 'dateSortie='+dateS+'&dateRemplacement='+dateR+'&motifavenant='+motifavenant+'&fraisCarte='+fraisCarte; - $("#div_remplacement_adherent").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_remplacement_adherent").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ ` + ); $.ajax({ url: $("#racineWeb").val()+"Ajaxremplaceradherent/init/", @@ -6802,7 +6833,16 @@ function enregistrer_remplacement_adherent() .then((isConfirmed) => { if (isConfirmed) { // L'utilisateur a confirmé - $("#div_remplacement_adherent").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_remplacement_adherent").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxremplaceradherent/enregistrerremplacementadherent/", @@ -6834,7 +6874,17 @@ function enregistrer_remplacement_adherent() function pop_afficher_selection_reincorporation() { var div_selection_assure = $('#div_selection_assure'); - div_selection_assure.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + div_selection_assure.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $("#btn_pop").click(); $.ajax({ @@ -6908,7 +6958,16 @@ function beneficiaire_a_reincorporer(p_choix, p_id_beneficiaire) function recapituler_reincorporer() { var div_assure_a_retirer = $('#div_assure_a_retirer'); - div_assure_a_retirer.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + div_assure_a_retirer.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxdetailreincorporation/recapituler/", @@ -6940,7 +6999,16 @@ function lister_ged_adherent() donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine+'&codeNaturePiece='+codeNaturePiece; - $("#div_ged").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_ged").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxlistegedadherent/", @@ -6961,10 +7029,20 @@ function lister_ged_beneficiaire_prod() d1 = $("#d1").val(); d2 = $("#d2").val(); nomOrigine = $("#nomOrigine").val(); + codeNaturePiece = $("#codeNaturePiece").val(); - donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine; + donnees = 'd1='+d1+'&d2='+d2+'&nomOrigine='+nomOrigine+'&codeNaturePiece='+codeNaturePiece; - $("#div_ged").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_ged").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxlistegedbeneficiaireprod/", @@ -6978,4 +7056,251 @@ function lister_ged_beneficiaire_prod() complete: function() { } }); +} + +function ajaxenteterequete() +{ + codeRequete=$("#codeRequete").val(); + + if (codeRequete<=" ") + { + v_msg="Veuillez sélectionner une requête!"; + v_msgEng="Please select a query!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeRequete").focus(); + return; + } + + donnees = 'codeRequete='+codeRequete; + + v_url = $("#racineWeb").val()+"Ajaxrequeteentete"+codeRequete+"/"; + + $("#div_ente_requete").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $("#div_detail_requete").html(` +
+
+ +

Aucune donnée affichée / No data displayed

+
+
+ `); + + $.ajax({ + url: v_url, + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_ente_requete").html(data); + $(".datepicker" ).datepicker(); + } + }); +} + +function requetes_sinistres_rh() +{ + donnees = ""; + donnees_retour = ""; + + codeRequete=$("#codeRequete").val(); + + if (codeRequete<=" ") + { + v_msg="Veuillez sélectionner une requête!"; + v_msgEng="Please select a query!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeRequete").focus(); + return; + } + + v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"/"; + + dateFacture1 = $("#dateFacture1").val(); + dateFacture2 = $("#dateFacture2").val(); + + donnees += '&dateFacture1=' + dateFacture1; + donnees += '&dateFacture2=' + dateFacture2; + + $("#div_detail_requete").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ + url: v_url, + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + donnees_retour = data; + }, + complete: function() { + $("#div_detail_requete").html(donnees_retour); + $("#nbligne").val($("#nbligne_info").val()); + } + }); +} + +function requetes_resume_sinistres_export() +{ + debugger; + + $('#div_detail_requete').html(''); + $('#div_export_a').html(""); + + donnees = ""; + donnees_retour = ""; + + codeRequete=$("#codeRequete").val(); + + if (codeRequete<=" ") + { + v_msg="Veuillez sélectionner une requête!"; + v_msgEng="Please select a query!"; + alert_ebene(v_msg, v_msgEng); + + $("#codeRequete").focus(); + return; + } + + v_url = $("#racineWeb").val()+"Ajaxrequete"+codeRequete+"export/"; + + dateFacture1 = $("#dateFacture1").val(); + dateFacture2 = $("#dateFacture2").val(); + + donnees += '&dateFacture1=' + dateFacture1; + donnees += '&dateFacture2=' + dateFacture2; + + var div_export = $('#div_detail_requete'); + div_export.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ + url: v_url, + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + debugger; + donnees_retour = data; + }, + complete: function() { + debugger; + $('#div_detail_requete').html(""); + $('#div_export_a').html(donnees_retour); + } + }); +} + +function envoyer_notification_avenant(idAvenant) +{ + donnees = 'idAvenant='+idAvenant; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxavenant/notifier/", + type : 'post', + data: donnees, + error: function(errorData) { + + }, + success: function(data) { + const msg = "Votre notification a été transmise avec succès."; + const msgEng = "Your notification has been successfully sent."; + + alert_ebene(msg, msgEng); + return; + }, + complete: function() + { + liste_avenant(); + } + }); + +} + +function motif_rejet(motif) +{ + alert_ebene(motif, motif); +} + +function corriger_mvt_beneficiaire(idBeneficiaire, idAvenant) +{ + donnees = 'idAvenant='+idAvenant; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxmouvementassure/avenant/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + setTimeout(() => { + modifier_beneficiaire(idBeneficiaire); + }, 150); + }, + complete: function() { + } + }); +} + +function confirmer_correction(idMvt, idBeneficiaire) +{ + donnees = 'idMvt='+idMvt; + + const v_msg = "Avez-vous terminé avec la correction demandée ?"; + const v_msgEng = "Have you finished with the requested correction?"; + + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { + if (isConfirmed) { + $.ajax({ + url: $("#racineWeb").val()+"Ajaxmouvementassure/reinitvalidation/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + const msg = "Validation reinitialisée avec succès !"; + const msgEng = "Validation successfully reset!"; + + alert_ebene(msg, msgEng).then(() => { + // Ce code ne s’exécute qu’après clic sur OK + modifier_beneficiaire(idBeneficiaire); + }); + }, + complete: function() { + + } + }); + } + }); + } \ No newline at end of file diff --git a/Modele/Adherent.php b/Modele/Adherent.php index 655f6dd..5c614db 100755 --- a/Modele/Adherent.php +++ b/Modele/Adherent.php @@ -887,5 +887,17 @@ class Adherent extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getNombreGedAdherent($idAdherent) + { + $source = 'S'; + + $sql = 'SELECT fn_nombre_ged_adherent(?, ?) as nombreGed;'; + + $resultat = $this->executerRequete($sql, array($idAdherent, $source)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['nombreGed']; + } } \ No newline at end of file diff --git a/Modele/Avenant.php b/Modele/Avenant.php index cf300c1..3bc096a 100644 --- a/Modele/Avenant.php +++ b/Modele/Avenant.php @@ -104,5 +104,13 @@ class Avenant extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + public function notifieravenant($idAvenant) + { + $user = $_SESSION['codeUtilisateur']; + + $sql = 'call sp_rh_notifier_avenant(?, ?)'; + + $this->executerRequete($sql, array($idAvenant, $user)); + } } diff --git a/Modele/Beneficiaire.php b/Modele/Beneficiaire.php index b6b4894..6d3edb8 100755 --- a/Modele/Beneficiaire.php +++ b/Modele/Beneficiaire.php @@ -1658,4 +1658,15 @@ class Beneficiaire extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + public function getNombreGedBeneficiaire($idBeneficiaire) + { + $source = 'S'; + + $sql = 'SELECT fn_nombre_ged_beneficiaire(?, ?) as nombreGed;'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $source)); + $ligne = $resultat->fetch(PDO::FETCH_ASSOC); + + return $ligne['nombreGed']; + } } \ No newline at end of file diff --git a/Modele/Ged.php b/Modele/Ged.php index 29a29ba..546aa11 100755 --- a/Modele/Ged.php +++ b/Modele/Ged.php @@ -47,24 +47,31 @@ class Ged extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } - public function enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille) + public function enregistrergedbeneficiaireprod($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre) { $idBeneficiaire = $_SESSION['idBeneficiaire_C']; $user = $_SESSION['login']; $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; - $sql = 'call sp_r_ajouter_ged_beneficiaire_prod(?, ?, ?, ?, ?)'; + $sql = 'call sp_r_ajouter_ged_beneficiaire_prod_rh(?, ?, ?, ?, ?, ?, ?);'; + + //var_dump(array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleAutre)); die(); - $this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user)); + $this->executerRequete($sql, array($idBeneficiaire, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleAutre)); } - public function getgedbeneficiaireprod($d1, $d2, $nomOrigine) + public function getgedbeneficiaireprod($d1, $d2, $nomOrigine, $codeNaturePiece) { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $idBeneficiaire = $_SESSION['idBeneficiaire_C']; + $lang = $_SESSION['lang']; - $sql = 'call sp_r_get_ged_beneficiaire_prod(?, ?, ?, ?)'; + $codeNaturePiece = contruireParamLike($codeNaturePiece); + + $sql = 'call sp_r_get_ged_beneficiaire_prod_rh(?, ?, ?, ?, ?, ?);'; + + //var_dump(array($idBeneficiaire, $d1, $d2, $nomOrigine, $codeNaturePiece, $lang)); die(); - $resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine)); + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $d1, $d2, $nomOrigine, $codeNaturePiece, $lang)); return $resultat->fetchAll(PDO::FETCH_ASSOC); } @@ -72,29 +79,30 @@ class Ged extends Modele { public function getgedadherent($d1, $d2, $nomOrigine, $codeNaturePiece) { $idAdherent = $_SESSION['idAdherent_C']; + $lang = $_SESSION['lang']; $codeNaturePiece = contruireParamLike($codeNaturePiece); - $sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?, ?);'; + $sql = 'call sp_get_ged_adherent_rh(?, ?, ?, ?, ?, ?);'; //var_dump(array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece)); die(); - - - $resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece)); + $resultat = $this->executerRequete($sql, array($idAdherent, $d1, $d2, $nomOrigine, $codeNaturePiece, $lang)); return $resultat->fetchAll(PDO::FETCH_ASSOC); } - public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleDocument) + public function enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille, $codeNaturePiece, $libelleAutre) { $idAdherent = $_SESSION['idAdherent_C']; $user = $_SESSION['login']; $cheminFichier = $_SESSION['dossierGed'].$nouveau_fichier; - $sql = 'call sp_ajouter_ged_adherent_rh(?, ?, ?, ?, ?)'; + $sql = 'call sp_ajouter_ged_adherent_rh(?, ?, ?, ?, ?, ?, ?);'; + + //var_dump(array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleAutre)); die(); - $this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleDocument)); + $this->executerRequete($sql, array($idAdherent, $nomOrigine, $cheminFichier, $taille, $user, $codeNaturePiece, $libelleAutre)); } public function getgedpolice($d1, $d2, $nomOrigine) diff --git a/Modele/Mouvementassure.php b/Modele/Mouvementassure.php index a9de519..deeff80 100644 --- a/Modele/Mouvementassure.php +++ b/Modele/Mouvementassure.php @@ -6,28 +6,31 @@ class Mouvementassure extends Modele { public function getMouvementassure($ajoutClient, $codeSensMouvement, $valide, $debut, $fin) { $codeSensMouvement = contruireParamLike($codeSensMouvement); - $ajoutClient = contruireParamLike($ajoutClient); - $valide = contruireParamLike($valide); + $ajoutClient = contruireParamLike($ajoutClient); + $valide = contruireParamLike($valide); - /* - var_dump( - array( - "idPolice_C" => $_SESSION['idPolice_C'], - "ajoutClient" => $ajoutClient, - "codeSensMouvement" => $codeSensMouvement, - "valide" => $valide, - "debut" => $debut, - "fin" => $fin - ) - ); - exit(); - */ - $sql = 'call sp_get_mouvementassures(?, ?, ?, ?, ?, ?)'; $resultat = $this->executerRequete($sql, array($_SESSION['idPolice_C'], $ajoutClient, $codeSensMouvement, $valide, $debut, $fin)); return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getMouvementassureID($idBeneficiaire, $idAvenant) + { + $sql = 'call sp_get_mouvement_rh_beneficiaire(?, ?)'; + + $resultat = $this->executerRequete($sql, array($idBeneficiaire, $idAvenant)); + + return $resultat->fetch(PDO::FETCH_ASSOC); + } + public function reinitvalidation($idMvt) + { + $user = $_SESSION['codeUtilisateur']; + + $sql = 'call sp_mouvement_rh_reinitvalidation(?, ?);'; + + $this->executerRequete($sql, array($idMvt, $user)); + } } \ No newline at end of file diff --git a/Modele/Police.php b/Modele/Police.php index 4786bd8..a2bf386 100644 --- a/Modele/Police.php +++ b/Modele/Police.php @@ -896,4 +896,89 @@ class Police extends Modele { $this->executerRequete($sql, array($idPolice, $user)); } + public function requeteresumesinistres($dateFacture2) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requeteresumesinistres_rh(?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateFacture2)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function requeteresumesinistres_total($dateFacture2) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requeteresumesinistres_total_rh(?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateFacture2)); + + return $liste->fetch(PDO::FETCH_ASSOC); + } + + public function getRapportSpPoliceEnteteExport($idPolice, $dateReference) + { + $sql = 'call sp_rapport_sp_police_entete_export(?, ?);'; + + $sppolice = $this->executerRequete($sql, array($idPolice, $dateReference)); + + return $sppolice->fetch(PDO::FETCH_ASSOC); + } + + public function requeteresumesinistresexport($dateFacture2) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requeteresumesinistres_rh_export(?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateFacture2)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function requetedetailsinistres($dateDebut, $dateFin) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requetedetailsinistres_rh(?, ?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateDebut, $dateFin)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function requetedetailsinistres_total($dateDebut, $dateFin) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requetedetailsinistres_total_rh(?, ?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateDebut, $dateFin)); + + return $liste->fetch(PDO::FETCH_ASSOC); + } + + public function requetefrequenceinistres($dateDebut, $dateFin) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requetefrequencesinistres_rh(?, ?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateDebut, $dateFin)); + + return $liste->fetchAll(PDO::FETCH_ASSOC); + } + + public function requetefrequencesinistres_total($dateDebut, $dateFin) { + + $idPolice = $_SESSION['idPolice_C']; + + $sql = 'CALL sp_requetefrequencesinistres_total_rh(?, ?, ?);'; + + $liste = $this->executerRequete($sql,array($idPolice, $dateDebut, $dateFin)); + + return $liste->fetch(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/Modele/Requetes.php b/Modele/Requetes.php index e0925b9..d3462b3 100755 --- a/Modele/Requetes.php +++ b/Modele/Requetes.php @@ -3,15 +3,19 @@ require_once 'Framework/Modele.php'; class Requetes extends Modele { - public function getListe() { - - $codeProfil = $_SESSION['codeProfil_C']; + public function getListe() + { + if (est_anglophone()) + { + $sql = 'SELECT codeRequete as `code`, nomRequeteEng as libelle FROM c_requetes order by 2;'; + } + else + { + $sql = 'SELECT codeRequete as `code`, nomRequete as libelle FROM c_requetes order by 2;'; + } - $sql = 'call sp_p_get_requetes(?)'; + $liste = $this->executerRequete($sql); - $resultat = $this->executerRequete($sql, array($codeProfil)); - - return $resultat->fetchAll(PDO::FETCH_ASSOC); - - } + return $liste->fetchAll(PDO::FETCH_ASSOC); + } } \ No newline at end of file diff --git a/PHPExcel/PHPExcel/Calculation.php b/PHPExcel/PHPExcel/Calculation.php index 20b1ec3..da16c68 100755 --- a/PHPExcel/PHPExcel/Calculation.php +++ b/PHPExcel/PHPExcel/Calculation.php @@ -2548,7 +2548,7 @@ class PHPExcel_Calculation public static function unwrapResult($value) { if (is_string($value)) { - if ((isset($value{0})) && ($value{0} == '"') && (substr($value, -1) == '"')) { + if ((isset($value[0])) && ($value[0] == '"') && (substr($value, -1) == '"')) { return substr($value, 1, -1); } // Convert numeric errors to NaN error @@ -2669,11 +2669,11 @@ class PHPExcel_Calculation // Basic validation that this is indeed a formula // We return an empty array if not $formula = trim($formula); - if ((!isset($formula{0})) || ($formula{0} != '=')) { + if ((!isset($formula[0])) || ($formula[0] != '=')) { return array(); } $formula = ltrim(substr($formula, 1)); - if (!isset($formula{0})) { + if (!isset($formula[0])) { return array(); } @@ -2761,11 +2761,11 @@ class PHPExcel_Calculation // Basic validation that this is indeed a formula // We simply return the cell value if not $formula = trim($formula); - if ($formula{0} != '=') { + if ($formula[0] != '=') { return self::wrapResult($formula); } $formula = ltrim(substr($formula, 1)); - if (!isset($formula{0})) { + if (!isset($formula[0])) { return self::wrapResult($formula); } @@ -2777,7 +2777,7 @@ class PHPExcel_Calculation return $cellValue; } - if (($wsTitle{0} !== "\x00") && ($this->cyclicReferenceStack->onStack($wsCellReference))) { + if (($wsTitle[0] !== "\x00") && ($this->cyclicReferenceStack->onStack($wsCellReference))) { if ($this->cyclicFormulaCount <= 0) { $this->cyclicFormulaCell = ''; return $this->raiseFormulaError('Cyclic Reference in Formula'); @@ -3031,7 +3031,7 @@ class PHPExcel_Calculation } else { if ($value == '') { return 'an empty string'; - } elseif ($value{0} == '#') { + } elseif ($value[0] == '#') { return 'a '.$value.' error'; } else { $typeString = 'a string'; @@ -3163,10 +3163,10 @@ class PHPExcel_Calculation // Loop through the formula extracting each operator and operand in turn while (true) { //echo 'Assessing Expression '.substr($formula, $index), PHP_EOL; - $opCharacter = $formula{$index}; // Get the first character of the value at the current index position + $opCharacter = $formula[$index]; // Get the first character of the value at the current index position //echo 'Initial character of expression block is '.$opCharacter, PHP_EOL; - if ((isset(self::$comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$comparisonOperators[$formula{$index+1}]))) { - $opCharacter .= $formula{++$index}; + if ((isset(self::$comparisonOperators[$opCharacter])) && (strlen($formula) > $index) && (isset(self::$comparisonOperators[$formula[$index+1]]))) { + $opCharacter .= $formula[++$index+1]; //echo 'Initial character of expression block is comparison operator '.$opCharacter.PHP_EOL; } @@ -3454,11 +3454,11 @@ class PHPExcel_Calculation } } // Ignore white space - while (($formula{$index} == "\n") || ($formula{$index} == "\r")) { + while (($formula[$index] == "\n") || ($formula[$index] == "\r")) { ++$index; } - if ($formula{$index} == ' ') { - while ($formula{$index} == ' ') { + if ($formula[$index] == ' ') { + while ($formula[$index] == ' ') { ++$index; } // If we're expecting an operator, but only have a space between the previous and next operands (and both are @@ -3888,7 +3888,7 @@ class PHPExcel_Calculation // echo 'Token is a PHPExcel constant: '.$excelConstant.'
'; $stack->push('Constant Value', self::$excelConstants[$excelConstant]); $this->_debugLog->writeDebugLog('Evaluating Constant ', $excelConstant, ' as ', $this->showTypeDetails(self::$excelConstants[$excelConstant])); - } elseif ((is_numeric($token)) || ($token === null) || (is_bool($token)) || ($token == '') || ($token{0} == '"') || ($token{0} == '#')) { + } elseif ((is_numeric($token)) || ($token === null) || (is_bool($token)) || ($token == '') || ($token[0] == '"') || ($token[0] == '#')) { // echo 'Token is a number, boolean, string, null or an Excel error
'; $stack->push('Value', $token); // if the token is a named range, push the named range name onto the stack @@ -3933,13 +3933,13 @@ class PHPExcel_Calculation if (is_string($operand)) { // We only need special validations for the operand if it is a string // Start by stripping off the quotation marks we use to identify true excel string values internally - if ($operand > '' && $operand{0} == '"') { + if ($operand > '' && $operand[0] == '"') { $operand = self::unwrapResult($operand); } // If the string is a numeric value, we treat it as a numeric, so no further testing if (!is_numeric($operand)) { // If not a numeric, test to see if the value is an Excel error, and so can't be used in normal binary operations - if ($operand > '' && $operand{0} == '#') { + if ($operand > '' && $operand[0] == '#') { $stack->push('Value', $operand); $this->_debugLog->writeDebugLog('Evaluation Result is ', $this->showTypeDetails($operand)); return false; @@ -3995,10 +3995,10 @@ class PHPExcel_Calculation } // Simple validate the two operands if they are string values - if (is_string($operand1) && $operand1 > '' && $operand1{0} == '"') { + if (is_string($operand1) && $operand1 > '' && $operand1[0] == '"') { $operand1 = self::unwrapResult($operand1); } - if (is_string($operand2) && $operand2 > '' && $operand2{0} == '"') { + if (is_string($operand2) && $operand2 > '' && $operand2[0] == '"') { $operand2 = self::unwrapResult($operand2); } diff --git a/PHPExcel/PHPExcel/Calculation/Functions.php b/PHPExcel/PHPExcel/Calculation/Functions.php index 5a1e5ee..773ce1a 100755 --- a/PHPExcel/PHPExcel/Calculation/Functions.php +++ b/PHPExcel/PHPExcel/Calculation/Functions.php @@ -318,10 +318,10 @@ class PHPExcel_Calculation_Functions public static function ifCondition($condition) { $condition = PHPExcel_Calculation_Functions::flattenSingleValue($condition); - if (!isset($condition{0})) { + if (!isset($condition[0])) { $condition = '=""'; } - if (!in_array($condition{0}, array('>', '<', '='))) { + if (!in_array($condition[0], array('>', '<', '='))) { if (!is_numeric($condition)) { $condition = PHPExcel_Calculation::wrapResult(strtoupper($condition)); } @@ -559,7 +559,7 @@ class PHPExcel_Calculation_Functions return (integer) $value; case 'string': // Errors - if ((strlen($value) > 0) && ($value{0} == '#')) { + if ((strlen($value) > 0) && ($value[0] == '#')) { return $value; } break; @@ -609,7 +609,7 @@ class PHPExcel_Calculation_Functions return 64; } elseif (is_string($value)) { // Errors - if ((strlen($value) > 0) && ($value{0} == '#')) { + if ((strlen($value) > 0) && ($value[0] == '#')) { return 16; } return 2; diff --git a/PHPExcel/PHPExcel/Cell.php b/PHPExcel/PHPExcel/Cell.php index c99a3c8..1f0c4e5 100755 --- a/PHPExcel/PHPExcel/Cell.php +++ b/PHPExcel/PHPExcel/Cell.php @@ -809,19 +809,19 @@ class PHPExcel_Cell // We also use the language construct isset() rather than the more costly strlen() function to match the length of $pString // for improved performance - if (isset($pString{0})) { - if (!isset($pString{1})) { + if (isset($pString[0])) { + if (!isset($pString[1])) { $_indexCache[$pString] = $_columnLookup[$pString]; return $_indexCache[$pString]; - } elseif (!isset($pString{2})) { - $_indexCache[$pString] = $_columnLookup[$pString{0}] * 26 + $_columnLookup[$pString{1}]; + } elseif (!isset($pString[2])) { + $_indexCache[$pString] = $_columnLookup[$pString[0]] * 26 + $_columnLookup[$pString[1]]; return $_indexCache[$pString]; } elseif (!isset($pString{3})) { - $_indexCache[$pString] = $_columnLookup[$pString{0}] * 676 + $_columnLookup[$pString{1}] * 26 + $_columnLookup[$pString{2}]; + $_indexCache[$pString] = $_columnLookup[$pString[0]] * 676 + $_columnLookup[$pString[1]] * 26 + $_columnLookup[$pString[2]]; return $_indexCache[$pString]; } } - throw new PHPExcel_Exception("Column string index can not be " . ((isset($pString{0})) ? "longer than 3 characters" : "empty")); + throw new PHPExcel_Exception("Column string index can not be " . ((isset($pString[0])) ? "longer than 3 characters" : "empty")); } /** diff --git a/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php b/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php index dc19e6c..1ec3523 100755 --- a/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php +++ b/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php @@ -79,15 +79,22 @@ class PHPExcel_Cell_DefaultValueBinder implements PHPExcel_Cell_IValueBinder return PHPExcel_Cell_DataType::TYPE_STRING; } elseif ($pValue instanceof PHPExcel_RichText) { return PHPExcel_Cell_DataType::TYPE_INLINE; - } elseif ($pValue{0} === '=' && strlen($pValue) > 1) { + } + + // CORRECTION ICI : On vérifie si c'est une string avant d'accéder à [0] + elseif (is_string($pValue) && strlen($pValue) > 1 && $pValue[0] === '=') { return PHPExcel_Cell_DataType::TYPE_FORMULA; - } elseif (is_bool($pValue)) { + } + + elseif (is_bool($pValue)) { return PHPExcel_Cell_DataType::TYPE_BOOL; } elseif (is_float($pValue) || is_int($pValue)) { return PHPExcel_Cell_DataType::TYPE_NUMERIC; } elseif (preg_match('/^[\+\-]?([0-9]+\\.?[0-9]*|[0-9]*\\.?[0-9]+)([Ee][\-\+]?[0-2]?\d{1,3})?$/', $pValue)) { $tValue = ltrim($pValue, '+-'); - if (is_string($pValue) && $tValue{0} === '0' && strlen($tValue) > 1 && $tValue{1} !== '.') { + + // CORRECTION ICI AUSSI : On s'assure que $tValue est une string et n'est pas vide + if (is_string($tValue) && strlen($tValue) > 1 && $tValue[0] === '0' && $tValue[1] !== '.') { return PHPExcel_Cell_DataType::TYPE_STRING; } elseif ((strpos($pValue, '.') === false) && ($pValue > PHP_INT_MAX)) { return PHPExcel_Cell_DataType::TYPE_STRING; @@ -100,3 +107,4 @@ class PHPExcel_Cell_DefaultValueBinder implements PHPExcel_Cell_IValueBinder return PHPExcel_Cell_DataType::TYPE_STRING; } } + diff --git a/PHPExcel/PHPExcel/ReferenceHelper.php b/PHPExcel/PHPExcel/ReferenceHelper.php index 7d7de93..bdede77 100755 --- a/PHPExcel/PHPExcel/ReferenceHelper.php +++ b/PHPExcel/PHPExcel/ReferenceHelper.php @@ -881,8 +881,8 @@ class PHPExcel_ReferenceHelper list($newColumn, $newRow) = PHPExcel_Cell::coordinateFromString($pCellReference); // Verify which parts should be updated - $updateColumn = (($newColumn{0} != '$') && ($beforeColumn{0} != '$') && (PHPExcel_Cell::columnIndexFromString($newColumn) >= PHPExcel_Cell::columnIndexFromString($beforeColumn))); - $updateRow = (($newRow{0} != '$') && ($beforeRow{0} != '$') && $newRow >= $beforeRow); + $updateColumn = (($newColumn[0] != '$') && ($beforeColumn[0] != '$') && (PHPExcel_Cell::columnIndexFromString($newColumn) >= PHPExcel_Cell::columnIndexFromString($beforeColumn))); + $updateRow = (($newRow[0] != '$') && ($beforeRow[0] != '$') && $newRow >= $beforeRow); // Create new column reference if ($updateColumn) { diff --git a/PHPExcel/PHPExcel/Worksheet/AutoFilter.php b/PHPExcel/PHPExcel/Worksheet/AutoFilter.php index 6ec8a44..1bc312b 100755 --- a/PHPExcel/PHPExcel/Worksheet/AutoFilter.php +++ b/PHPExcel/PHPExcel/Worksheet/AutoFilter.php @@ -717,7 +717,7 @@ class PHPExcel_Worksheet_AutoFilter ); } else { // Date based - if ($dynamicRuleType{0} == 'M' || $dynamicRuleType{0} == 'Q') { + if ($dynamicRuleType[0] == 'M' || $dynamicRuleType[0] == 'Q') { // Month or Quarter sscanf($dynamicRuleType, '%[A-Z]%d', $periodType, $period); if ($periodType == 'M') { diff --git a/PHPExcel/PHPExcel/WorksheetIterator.php b/PHPExcel/PHPExcel/WorksheetIterator.php index cb1b281..789fb24 100755 --- a/PHPExcel/PHPExcel/WorksheetIterator.php +++ b/PHPExcel/PHPExcel/WorksheetIterator.php @@ -60,9 +60,10 @@ class PHPExcel_WorksheetIterator implements Iterator unset($this->subject); } - /** + /** * Rewind iterator */ + #[\ReturnTypeWillChange] public function rewind() { $this->position = 0; @@ -73,6 +74,7 @@ class PHPExcel_WorksheetIterator implements Iterator * * @return PHPExcel_Worksheet */ + #[\ReturnTypeWillChange] public function current() { return $this->subject->getSheet($this->position); @@ -83,6 +85,7 @@ class PHPExcel_WorksheetIterator implements Iterator * * @return int */ + #[\ReturnTypeWillChange] public function key() { return $this->position; @@ -91,6 +94,7 @@ class PHPExcel_WorksheetIterator implements Iterator /** * Next value */ + #[\ReturnTypeWillChange] public function next() { ++$this->position; @@ -101,6 +105,7 @@ class PHPExcel_WorksheetIterator implements Iterator * * @return boolean */ + #[\ReturnTypeWillChange] public function valid() { return $this->position < $this->subject->getSheetCount(); diff --git a/Vue/Ajaxfichepolice/index.php b/Vue/Ajaxfichepolice/index.php index 9b72872..bd713a6 100644 --- a/Vue/Ajaxfichepolice/index.php +++ b/Vue/Ajaxfichepolice/index.php @@ -30,10 +30,11 @@ - + --> + nettoyer($quittance['dateEmission']), $_SESSION['lang']) ?> nettoyer($quittance['dateEffet']), $_SESSION['lang']) ?> diff --git a/Vue/Ajaxlistegedadherent/index.php b/Vue/Ajaxlistegedadherent/index.php index c0b8ce3..5d4865b 100644 --- a/Vue/Ajaxlistegedadherent/index.php +++ b/Vue/Ajaxlistegedadherent/index.php @@ -1,50 +1,54 @@ -
- " ")) : ?> -
- - -
- - - - - - - - - - - - - - nettoyer($ged['idGed']); - $cheminFichier = $this->nettoyer($ged['cheminFichier']); - ?> - - - - - - - - - - - - -
DateSrc
nettoyer($ged['dateSysteme'])) ?>nettoyer($ged['source']) ?> -
nettoyer($ged['souscripteur']) ?>
-
nettoyer($ged['numeroPolice']) ?>
-
-
nettoyer($ged['beneficiaire']) ?>
-
nettoyer($ged['adherent']) ?>
-
nettoyer($ged['libelleDocument']) ?> - nettoyer($ged['nomOrigine']) ?> - - - - -
-
+
+ + + + + + + + + + + + + + nettoyer($ged['idGed']); + $cheminFichier = $this->nettoyer($ged['cheminFichier']); + + if($ged['codeNaturePiece'] == "AUT") + { + $libelleType = $this->nettoyer($ged['libelleAutre']); + } else + { + $libelleType = $this->nettoyer($ged['libelleType']); + } + + ?> + + + + + + + + + + + + + +
DateSrc
nettoyer($ged['dateSysteme'])) ?>nettoyer($ged['source']) ?> +
nettoyer($ged['souscripteur']) ?>
+
nettoyer($ged['numeroPolice']) ?>
+
+
nettoyer($ged['beneficiaire']) ?>
+
nettoyer($ged['adherent']) ?>
+
+ nettoyer($ged['nomOrigine']) ?> + + + + +
\ No newline at end of file diff --git a/Vue/Ajaxlistegedbeneficiaireprod/index.php b/Vue/Ajaxlistegedbeneficiaireprod/index.php index 59bd786..db50d5b 100644 --- a/Vue/Ajaxlistegedbeneficiaireprod/index.php +++ b/Vue/Ajaxlistegedbeneficiaireprod/index.php @@ -1,58 +1,60 @@ -
- " ")) : ?> -
- -
- +
+ + + + + + + + + + + + + + nettoyer($ged['idGed']); + $cheminFichier = $this->nettoyer($ged['cheminFichier']); -
-
DateSrc
- - - - - - - - - - - - - nettoyer($ged['idGed']); - $cheminFichier = $this->nettoyer($ged['cheminFichier']); - ?> - - - - - - - - - - - -
DateSrc
nettoyer($ged['dateSysteme'])) ?> - nettoyer($ged['source']) ?> - -
nettoyer($ged['souscripteur']) ?>
-
nettoyer($ged['numeroPolice']) ?>
-
nettoyer($ged['prestataire']) ?> -
nettoyer($ged['beneficiaire']) ?>
-
- nettoyer($ged['adherent']) ?> (nettoyer($ged['numeroBeneficiaire']) ?>) -
-
- - - nettoyer($ged['nomOrigine']) ?> - - - - - -
-
+ if($ged['codeNaturePiece'] == "AUT") + { + $libelleType = $this->nettoyer($ged['libelleAutre']); + } else + { + $libelleType = $this->nettoyer($ged['libelleType']); + } + ?> + + nettoyer($ged['dateSysteme'])) ?> + + nettoyer($ged['source']) ?> + + +
nettoyer($ged['souscripteur']) ?>
+
nettoyer($ged['numeroPolice']) ?>
+ + +
nettoyer($ged['beneficiaire']) ?>
+
+ nettoyer($ged['adherent']) ?> (nettoyer($ged['numeroBeneficiaire']) ?>) +
+ + + + + + + + nettoyer($ged['nomOrigine']) ?> + + + + + + + + + + +
\ No newline at end of file diff --git a/Vue/Ajaxmouvementassure/index.php b/Vue/Ajaxmouvementassure/index.php index c07040d..9c681aa 100644 --- a/Vue/Ajaxmouvementassure/index.php +++ b/Vue/Ajaxmouvementassure/index.php @@ -1,6 +1,6 @@
- - +
+ @@ -10,25 +10,24 @@ - + nettoyer($mvt['ajoutClient']); $ajoutClient = $this->nettoyer($mvt['ajoutClient']); - $valide = $this->nettoyer($mvt['valide']); - $sensMvt = $mvt['sensMouvement']; // On suppose que '0' = Entrée, '1' = Sortie - $libelleSensMouvement = est_anglophone() ? $mvt['libelleSensMouvementEng'] : $mvt['libelleSensMouvement']; - $LibelleAjoutClient = _("Non"); - if ($ajoutClient == "1") - { - $LibelleAjoutClient = _("Oui"); - } + $valide = $this->nettoyer($mvt['valide']); + $rejet = $this->nettoyer($mvt['rejet']); + $motif = $this->nettoyer($mvt['motif']); + $aCorriger = $this->nettoyer($mvt['aCorriger']); + $sensMvt = $mvt['sensMouvement']; - $idBeneficiaire = $this->nettoyer($mvt['idBeneficiaire']); - $numeroBeneficiaire = $this->nettoyer($mvt['numeroBeneficiaire']); - ?> + $libelleSensMouvement = est_anglophone() ? $mvt['libelleSensMouvementEng'] : $mvt['libelleSensMouvement']; + $idBeneficiaire = $this->nettoyer($mvt['idBeneficiaire']); + $idAvenant = $this->nettoyer($mvt['idAvenant']); + ?> @@ -60,38 +59,63 @@ - + @@ -102,10 +126,10 @@ + .bg-success-subtle { background-color: #d1e7dd !important; } + .bg-danger-subtle { background-color: #f8d7da !important; } + .bg-primary-subtle { background-color: #cfe2ff !important; } + .btn-xs { padding: 0.1rem 0.3rem; font-size: 0.7rem; line-height: 1.5; border-radius: 0.2rem; } + .transition-hover { transition: all 0.2s ease-in-out; } + .transition-hover:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important; } + \ No newline at end of file diff --git a/Vue/Ajaxrequetedetailsinistres/index.php b/Vue/Ajaxrequetedetailsinistres/index.php new file mode 100644 index 0000000..557b4a3 --- /dev/null +++ b/Vue/Ajaxrequetedetailsinistres/index.php @@ -0,0 +1,102 @@ + + +
+
+
+
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
nettoyer($mvt['dateEffet']), $_SESSION['lang']) ?> @@ -47,7 +46,7 @@ -
nettoyer($mvt['beneficiaire']) ?>
+
nettoyer($mvt['beneficiaire']) ?>
nettoyer($mvt['numeroBeneficiaire']) ?>
-
nettoyer($mvt['dateSysteme'])) ?>
-
nettoyer($mvt['codeUtilisateur']) ?>
+
nettoyer($mvt['codeUtilisateur']) ?>
+
nettoyer($mvt['dateSysteme']), $_SESSION['lang']) ?>
- - - + + + + + +
+ + +
+ +
+ + +
+ - - + +
+ -
nettoyer($mvt['userValidation']) ?>
-
nettoyer($mvt['dateValidation'])) ?>
+ +
nettoyer($mvt['userValidation']) ?>
+
nettoyer($mvt['dateValidation']), $_SESSION['lang']) ?>
+ + + - -
- + + + + +
+ + + + + + + + + + + + + + + nettoyer($rpsinistre['CategoriePrestataireEng']) + : $this->nettoyer($rpsinistre['CategoriePrestataire']); + ?> + + + + + + + + + + + + + + + + + + +
nettoyer($rpsinistre['numeroBeneficiaire']) ?>nettoyer($rpsinistre['Beneficiaire']) ?>nettoyer($rpsinistre['Date']), $_SESSION['lang']) ?>nettoyer($rpsinistre['Prestataire']) ?>#nettoyer($rpsinistre['idFacture']) ?>nettoyer($rpsinistre['codeGarantie']) ?>nettoyer($rpsinistre['fraisReel'])); ?>
+
+ + + + +
+ + \ No newline at end of file diff --git a/Vue/Ajaxrequeteentetedetailsinistres/index.php b/Vue/Ajaxrequeteentetedetailsinistres/index.php new file mode 100644 index 0000000..5246eb9 --- /dev/null +++ b/Vue/Ajaxrequeteentetedetailsinistres/index.php @@ -0,0 +1,42 @@ +nettoyer($sppoliceentete['dateEffet']), $_SESSION['lang']); + + $_SESSION['dateFinRequete'] = dateCouranteLang($_SESSION['lang']); +?> + +
+
+
+ +
+ +
+ + + +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
+
diff --git a/Vue/Ajaxrequeteentetefrequencesprestataires/index.php b/Vue/Ajaxrequeteentetefrequencesprestataires/index.php new file mode 100644 index 0000000..5246eb9 --- /dev/null +++ b/Vue/Ajaxrequeteentetefrequencesprestataires/index.php @@ -0,0 +1,42 @@ +nettoyer($sppoliceentete['dateEffet']), $_SESSION['lang']); + + $_SESSION['dateFinRequete'] = dateCouranteLang($_SESSION['lang']); +?> + +
+
+
+ +
+ +
+ + + +
+
+ +
+ +
+ + +
+
+ +
+ +
+
+
+
diff --git a/Vue/Ajaxrequeteenteteresumesinistres/index.php b/Vue/Ajaxrequeteenteteresumesinistres/index.php new file mode 100644 index 0000000..24f0a3f --- /dev/null +++ b/Vue/Ajaxrequeteenteteresumesinistres/index.php @@ -0,0 +1,40 @@ +nettoyer($sppoliceentete['dateEffet']), $_SESSION['lang']); + $_SESSION['dateFinRequete'] = dateCouranteLang($_SESSION['lang']); +?> + +
+
+
+ +
+ +
+ + + +
+
+ +
+ +
+ + +
+
+ +
+ +
+ +
+
+
\ No newline at end of file diff --git a/Vue/Ajaxrequetefrequencesprestataires/index.php b/Vue/Ajaxrequetefrequencesprestataires/index.php new file mode 100644 index 0000000..3588c86 --- /dev/null +++ b/Vue/Ajaxrequetefrequencesprestataires/index.php @@ -0,0 +1,121 @@ + + +
+
+
+
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+ + + + + + + + + + + + + + nettoyer($rpsinistre['categorieEng']) + : $this->nettoyer($rpsinistre['categorie']); + ?> + + + + + + + + + + + + + + + + + + + + +
nettoyer($rpsinistre['nbrCas'])); ?>nettoyer($rpsinistre['tauxCas']), 2, ',', ' ') ?> %nettoyer($rpsinistre['montant'])); ?>nettoyer($rpsinistre['tauxMontant']), 2, ',', ' ') ?> %nettoyer($rpsinistre['montantSurCas'])); ?>
100 %100 %
+
+ + + + +
+ + \ No newline at end of file diff --git a/Vue/Ajaxrequeteresumesinistres/index.php b/Vue/Ajaxrequeteresumesinistres/index.php new file mode 100644 index 0000000..7a2f3b8 --- /dev/null +++ b/Vue/Ajaxrequeteresumesinistres/index.php @@ -0,0 +1,114 @@ + + +
+
+
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ % +
+
+
+
+ +
+ + + + + + + + + + + + + + + 100) ? 'text-danger fw-bold' : (($ratio > 70) ? 'text-warning' : 'text-success'); + ?> + + + + + + + + + + + + + + + + + + + + +
Cat
nettoyer($rpsinistre['numeroAdherent']) ?>nettoyer($rpsinistre['Adherent']) ?>nettoyer($rpsinistre['dateEffetAdherent']), $_SESSION['lang']) ?>nettoyer($rpsinistre['duree_acquise']) ?> % + + nettoyer($rpsinistre['codeProduit']) ?> + +
%
+
+ + + + +
+ + \ No newline at end of file diff --git a/Vue/Choisirpolice/index.php b/Vue/Choisirpolice/index.php index 0000a04..48f83d8 100644 --- a/Vue/Choisirpolice/index.php +++ b/Vue/Choisirpolice/index.php @@ -1,3 +1,6 @@ +

@@ -16,7 +19,7 @@ required onchange="javascript:ajax_contexter_police();" style="font-size: 10pt; height: 45px;"> - +
diff --git a/Vue/Creeradherent/index.php b/Vue/Creeradherent/index.php index f72087b..41d0335 100644 --- a/Vue/Creeradherent/index.php +++ b/Vue/Creeradherent/index.php @@ -141,7 +141,7 @@
+
diff --git a/Vue/Creerbeneficiaire/index.php b/Vue/Creerbeneficiaire/index.php index 80cbf66..308509a 100644 --- a/Vue/Creerbeneficiaire/index.php +++ b/Vue/Creerbeneficiaire/index.php @@ -134,9 +134,9 @@
- +
diff --git a/Vue/Ficheadherent/index.php b/Vue/Ficheadherent/index.php index 6c85a0a..0ede656 100644 --- a/Vue/Ficheadherent/index.php +++ b/Vue/Ficheadherent/index.php @@ -23,18 +23,14 @@ $idApporteur = $this->nettoyer($adherent['idApporteur']); $libelleApporteur = $this->nettoyer($adherent['libelleApporteur']); $typeecheancier = $this->nettoyer($adherent['typeecheancier']); + if (est_anglophone()) { $typeecheancier = $this->nettoyer($adherent['typeecheancierEng']); } + $tauxInteretEcheancier = $this->nettoyer($adherent['tauxInteretEcheancier']); - /* - var_dump( - array( - "dateEffetAdherent_C"=> $_SESSION['dateEffetAdherent_C'], - ) - ); - */ + ?> \ No newline at end of file diff --git a/Vue/Listeavenant/index.php b/Vue/Listeavenant/index.php index 9a6c38c..160df78 100644 --- a/Vue/Listeavenant/index.php +++ b/Vue/Listeavenant/index.php @@ -1,12 +1,16 @@ -
-

+ -
+
+

+ +
- - | - -
+ + | + +
@@ -21,6 +25,7 @@ + @@ -28,6 +33,8 @@ $libelleAvenant = est_anglophone() ? $avenant['libelleAvenantEng'] : $avenant['libelleAvenant']; $isFacture = ($avenant['facture'] == '1'); $isRH = ($avenant['ajoutClient'] == '1'); + $idAvenant = $avenant['idAvenant']; + $isNotify = ($avenant['notificationRhEnvoye'] == '1'); ?> @@ -38,7 +45,7 @@
-
+
nettoyer($avenant['dateSysteme']), $_SESSION['lang']) ?>
@@ -64,10 +71,44 @@ + + + + + + + + + + + + - + +
-
\ No newline at end of file +
+ + \ No newline at end of file diff --git a/Vue/Modifierbeneficiaire/index.php b/Vue/Modifierbeneficiaire/index.php index d617684..075b716 100644 --- a/Vue/Modifierbeneficiaire/index.php +++ b/Vue/Modifierbeneficiaire/index.php @@ -1,112 +1,183 @@ -titre = "INTER-SANTE - Modification Bénéficiaire"; ?> +titre = "INTER-SANTE - Modification Bénéficiaire"; + $idMvt = $mouvementassure['id']; + $aCorriger = $mouvementassure['aCorriger']; -
-

- - : - -

+ $motif = $mouvementassure['motif']; -
-
- : nettoyer($_SESSION['numeroPolice_C']) ?> - ID: nettoyer($_SESSION['idPolice_C']) ?> -
+ $idBeneficiaire = $beneficiaire['idBeneficiaire']; +?> + +
+ +
+

+ + +

+
+ + nettoyer($_SESSION['numeroPolice_C']) ?> +
+
+ +
+
+ 0): ?> +
+ +
+
+ +
+ + + +
+ +
+ +
+
+ +
+ + + +
+ +
- - - - - + + + + + -
- +
-
-
+ +
- -
+ +
-
- -
+
+ +
-
-
+
+ +
+ +
- +
+ + +
- +
+ + +
- +
- +
-
-
-
+
+ +
+
-
- +
- - + +
+ + +
+ +
+ +
-
-
- - - - +
+
+ + + +
+ +
+ + + + + +
-
\ No newline at end of file +
+ + \ No newline at end of file diff --git a/Vue/Nouveluserrh/index.php b/Vue/Nouveluserrh/index.php index c47441d..ff46813 100755 --- a/Vue/Nouveluserrh/index.php +++ b/Vue/Nouveluserrh/index.php @@ -1,5 +1,5 @@ titre = "ISA WEB - Nouvel Utilisateur Portail RH"; + $this->titre = "INTER SANTE - Nouvel Utilisateur Portail RH"; $idClient = $_SESSION['idClient_C']; $nomClient = $_SESSION['nomClient_C']; diff --git a/Vue/Requetes/index.php b/Vue/Requetes/index.php new file mode 100644 index 0000000..eca210f --- /dev/null +++ b/Vue/Requetes/index.php @@ -0,0 +1,58 @@ +titre = "INTER-SANTE - Requêtes & Statistiques"; ?> + +
+

+ +
+
+ : nettoyer($_SESSION['numeroPolice_C']) ?> + ID: nettoyer($_SESSION['idPolice_C']) ?> +
+
+ : nettoyer($sppoliceentete['dateEffet']), $_SESSION['lang']) ?> + : nettoyer($sppoliceentete['dateEcheance']), $_SESSION['lang']) ?> +
+
+ : nettoyer($sppoliceentete['duree_acquise'])." / ".$this->nettoyer($sppoliceentete['dureePolice']) ?> +
+
+ +
+
+
+
+ +
+
+
+ + + + +
+
+
+ +
+
+
+
+ +
+ +
+
+
+ +

Aucune donnée affichée / No data displayed

+
+
+
+
\ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 62c7085..dc7b977 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -708,7 +708,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +