diff --git a/Controleur/ControleurAccueilassure.php b/Controleur/ControleurAccueilassure.php deleted file mode 100755 index 9e03248..0000000 --- a/Controleur/ControleurAccueilassure.php +++ /dev/null @@ -1,144 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Accueilassure'); - - $this->feuillemaladie = new Feuillemaladie(); - $this->adherent = new Adherent(); - $this->beneficiaire = new Beneficiaire(); - $this->garantieadherent = new Garantieadherent(); - $this->garantie = new Garantie(); - } - - public function index() { - - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - - $d2 = date('Y-m-d'); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiefamille($idAdherent, $d1, $d2); - $prestation = $this->adherent->getlisteprestations(); - - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - $idPolice = $_SESSION['idPolice_C']; - $idAdherent = $_SESSION['idAdherent_C']; - - $idBeneficiaireAdherent = $this->beneficiaire->getIdBeneficiaireAdherent($idAdherent); - - // $idBeneficiaire = (isset($_SESSION['idBeneficiaire_C']) && $_SESSION['idBeneficiaire_C'] > "0") ? (int)$_SESSION['idBeneficiaire_C'] : $idBeneficiaireAdherent; - // KANE 24/03/2025 - $idBeneficiaire = $idBeneficiaireAdherent; - $_SESSION['idBeneficiaire_C'] = $idBeneficiaireAdherent; - - $dateJour = date('Y-m-d'); - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - - $adherent = $this->adherent->getContexteAdherentId($idAdherent); - $beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour); - - - // $garantieadherents = $this->garantieadherent->getGarantieBeneficiaire($idBeneficiaire); - $garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent); - - /* - if ($idBeneficiaire !== null) { - $actes = $this->garantieadherent->getBaremePlafondAdherent($idAdherent, $idBeneficiaire); - } else { - $actes = null; - } - */ - $actes = null; - - $this->adherent->controlerplafondadherentannuel($idAdherent); - $_SESSION['controlerPlafondBeneficiaire'] = "0"; - - $limite_adherent = $this->adherent->getLimitesAdherent($idAdherent, $dateJour); - - $garanties = $this->garantie->getListePourActe(); - - $tabPrestationsMois = $this->adherent->getPrestationsmensuelles($idAdherent); - $tabPrestationsliens = $this->adherent->getPrestationsLiensParente($idAdherent); - - $mois = array(); - $consos = array(); - - $lienparente = array(); - $consos_liens = array(); - - - $tabConsoParGaranties = [ - 'garanties' => [], - 'depenses' => [], - 'plafonds' => [] - ]; - - foreach ($tabPrestationsMois as $v){ - array_push($mois, $v['mois']); - array_push($consos, $v['consommationAdherent']); - } - - foreach ($tabPrestationsliens as $v){ - array_push($lienparente, $v['lienparente']); - array_push($consos_liens, $v['consommation']); - } - - foreach ($garantieadherents as $v) { - $tabConsoParGaranties['garanties'][] = $v['codeGarantie']; - $tabConsoParGaranties['depenses'][] = $v['consommationFamille']; - $tabConsoParGaranties['plafonds'][] = $v['plafondFamille']; - } - - $nbreLienParente = count($lienparente); - - $labels_mois = json_encode($mois); - $data_consos = json_encode($consos,JSON_NUMERIC_CHECK); - - $labels_liens = json_encode($lienparente); - $data_liens = json_encode($consos_liens,JSON_NUMERIC_CHECK); - - $dataConsoParGaranties = json_encode($tabConsoParGaranties,JSON_NUMERIC_CHECK); - - //var_dump($dataConsoParGaranties); die(); - - $this->genererVue - ( - array - ( - 'adherent' => $adherent, - 'beneficiaires' => $beneficiaires, - 'garantieadherents' => $garantieadherents, - 'limite_adherent' => $limite_adherent, - 'prestation' => $prestation, - 'garanties' => $garanties, - 'numeroBeneficiaire' => $numeroBeneficiaire, - // 'actes' => $actes, - 'labels_mois' => $labels_mois, - 'data_consos' => $data_consos, - 'labels_liens' => $labels_liens, - 'data_liens' => $data_liens, - 'nbreLienParente' => $nbreLienParente, - 'dataConsoParGaranties' => $dataConsoParGaranties - ) - ); - } -} diff --git a/Controleur/ControleurAfficherged.php b/Controleur/ControleurAfficherged.php deleted file mode 100755 index 2a1d2b3..0000000 --- a/Controleur/ControleurAfficherged.php +++ /dev/null @@ -1,29 +0,0 @@ -menuvue = new Menuvueprofil(); - $this->menuvue->getMenuVue('Afficherged'); - - $this->ged = new Ged(); - } - - public function index($nomOrigine="", $codeSecret="") - { - $numeroBeneficiaire = $_SESSION['numeroBeneficiaire_C']; - if (isset($_POST['nomOrigine'])) - { - $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); - $codeSecret = $this->requete->getParametreFormulaire("codeSecret"); - } - $geds = $this->ged->afficherGeds($numeroBeneficiaire, $nomOrigine, $codeSecret); - - $this->genererVue(array('geds' => $geds, 'nomOrigine' => $nomOrigine, 'codeSecret' => $codeSecret)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxchangerentiteportail.php b/Controleur/ControleurAjaxchangerentiteportail.php deleted file mode 100755 index b4dc1f0..0000000 --- a/Controleur/ControleurAjaxchangerentiteportail.php +++ /dev/null @@ -1,54 +0,0 @@ -societeuser = new Societeusercentral(); - } - - public function index() - { - $codeUtilisateur = ""; - $societeExiste = false; - - $codeSociete= $this->requete->getParametreFormulaire("codeSociete"); - - $societeExiste = $this->societeuser->existeligneconnexion($codeSociete); - $actif = "0"; - - if ($societeExiste) - { - if (isset($_COOKIE['login']["$codeSociete"])) - { - $codeUtilisateur = $_COOKIE['login']["$codeSociete"]; - } - - $actif = $this->societeuser->estActif($codeSociete); - } - - $this->genererVueAjax - ( - array - ( - 'codeUtilisateur' => $codeUtilisateur, - 'societeExiste' => $societeExiste, - 'actif' => $actif - ) - ); - } - - public function rechercher() - { - $codeSociete = $this->requete->getParametreFormulaire("codeSociete"); - - $bool = $this->societeuser->existeligne($codeSociete); - - echo $bool ? 'true' : 'false'; - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxchangerlangue.php b/Controleur/ControleurAjaxchangerlangue.php deleted file mode 100755 index 26f67c2..0000000 --- a/Controleur/ControleurAjaxchangerlangue.php +++ /dev/null @@ -1,21 +0,0 @@ -utilisateur = new Utilisateur(); - } - - public function index() - { - } - - public function changerlangue() - { - $this->utilisateur->changerlangueutilisateur(); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxchargerlisteprestataires.php b/Controleur/ControleurAjaxchargerlisteprestataires.php deleted file mode 100755 index 6b0735f..0000000 --- a/Controleur/ControleurAjaxchargerlisteprestataires.php +++ /dev/null @@ -1,54 +0,0 @@ -prestataire = new Prestataire(); - } - - public function index() { - - $libelle = $this->requete->getParametreFormulaire("libelle"); - - if ($libelle=="") { - $prestataires = $this->prestataire->getprestatairevide(); - }else{ - $prestataires = $this->prestataire->getprestatairerdv($libelle); - } - - $this->genererVueAjax(array('prestataires' => $prestataires)); - } - -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Controleur/ControleurAjaxconsosadherent.php b/Controleur/ControleurAjaxconsosadherent.php deleted file mode 100755 index 63e6089..0000000 --- a/Controleur/ControleurAjaxconsosadherent.php +++ /dev/null @@ -1,25 +0,0 @@ -adherent = new Adherent(); - } - - public function index() { - - $idAdherent = $this->requete->getParametreFormulaire("idAdherent"); - - $prestations = $this->adherent->getConsosAdherent($idAdherent); - - $total_prestation = $this->adherent->getConsosTotalAdherent($idAdherent); - - $this->genererVueAjax(array('prestations' => $prestations, 'total_prestation' => $total_prestation)); - - - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxconsosbeneficiaire.php b/Controleur/ControleurAjaxconsosbeneficiaire.php deleted file mode 100755 index 6e460ea..0000000 --- a/Controleur/ControleurAjaxconsosbeneficiaire.php +++ /dev/null @@ -1,34 +0,0 @@ -beneficiaire = new Beneficiaire(); - } - - public function index() { - - $idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire"); - - $prestations = $this->beneficiaire->getConsosBeneficiaire($idBeneficiaire); - - $total_prestation = $this->beneficiaire->getConsosTotalBeneficiaire($idBeneficiaire); - - $this->genererVueAjax(array('prestations' => $prestations, 'total_prestation' => $total_prestation)); - - - - } - - public function majplafond() - { - $idLimite = $this->requete->getParametreFormulaire("idLimite"); - $plafond = $this->requete->getParametreFormulaire("plafond"); - - $this->beneficiaire->majPlafondBeneficiaire($idLimite, $plafond); - - } -} diff --git a/Controleur/ControleurAjaxconsulteractesgarantiebareme.php b/Controleur/ControleurAjaxconsulteractesgarantiebareme.php deleted file mode 100755 index c310116..0000000 --- a/Controleur/ControleurAjaxconsulteractesgarantiebareme.php +++ /dev/null @@ -1,70 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - $this->actifGarantieOuiNon = (new Ouinon())->getListe(); - $this->actifGarantieLienOuiNon = (new Ouinon())->getListe(); - $this->actifActeOuiNon = (new Ouinon())->getListe(); - $this->actifActeLienOuiNon = (new Ouinon())->getListe(); - - $this->periodicite = new periodicite(); - } - - public function index() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $_SESSION['idBaremePriseEnCharge'] = $idBaremePriseEnCharge; - $_SESSION['codeGarantie'] = $codeGarantie; - - $periodicite = $this->periodicite->getListe(); - - $periodiciteFiltre = $this->periodicite->getListeFiltrer(); - - $forfaitTaux = $this->garantie->getTauxForfait(); - - $tmBareme = $this->garantie->getTmBareme($idBaremePriseEnCharge); - - $lienParente = $this->garantie->getLienParente(); - - $observation = $this->garantie->getObservationplafond(); - $nomgarantie = $this->garantie->getNomGarantie($codeGarantie); - - if($codeGarantie=="HOS"){ - $actesadd = null; - }else{ - $actesadd = $this->garantie->getActesGarantieBaremeAdd($idBaremePriseEnCharge,$codeGarantie); - } - - - $typeremboursement = $this->garantie->getTypeRemboursement(); - - - $this->genererVueAjax(array - ( - 'garantie' =>$nomgarantie, 'periodicite' => $periodicite, - 'observation' =>$observation, 'actesadd' => $actesadd, - 'tmBareme' => $tmBareme, 'typeremboursement' =>$typeremboursement, - 'lienParente' =>$lienParente, 'periodiciteFiltre' => $periodiciteFiltre, - 'actifGarantieOuiNon' => $this->actifGarantieOuiNon, - 'actifGarantieLienOuiNon' => $this->actifGarantieLienOuiNon, - 'actifActeOuiNon' => $this->actifActeOuiNon, - 'actifActeLienOuiNon' => $this->actifActeLienOuiNon - ) - ); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxconsultertableauprestation.php b/Controleur/ControleurAjaxconsultertableauprestation.php deleted file mode 100755 index 9fc9b41..0000000 --- a/Controleur/ControleurAjaxconsultertableauprestation.php +++ /dev/null @@ -1,19 +0,0 @@ -college_temp2 = new College_temp(); - } - - public function index() - { - $idCollegeTemp = $_SESSION['idCollegeTemp']; - $tableau_prestations = $this->college_temp2->getPrestation($idCollegeTemp); - - $this->genererVueAjax(array('tableau_prestations' => $tableau_prestations)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxcontextbeneficiaire.php b/Controleur/ControleurAjaxcontextbeneficiaire.php deleted file mode 100755 index 7c1d840..0000000 --- a/Controleur/ControleurAjaxcontextbeneficiaire.php +++ /dev/null @@ -1,33 +0,0 @@ -finger = new Finger(); - } - - public function index() { - $idBeneficiaire = $this->requete->getParametre("idBeneficiaire"); - - if ($idBeneficiaire == $_SESSION['idBeneficiaire_sav']) - { - $_SESSION['okId'] = $this->requete->getParametre("okId"); - } - else - { - $_SESSION['okId'] = "-1"; - } - $_SESSION['idBeneficiaire_C'] = $idBeneficiaire; - $_SESSION['idBeneficiaire_sav'] = $_SESSION['idBeneficiaire_C']; - } - - public function saveenroleur() - { - $user_id = $this->requete->getParametreFormulaire("user_id"); - $this->finger->saveenroleur($user_id); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxcontextfeuillemaladie.php b/Controleur/ControleurAjaxcontextfeuillemaladie.php deleted file mode 100755 index 3ed76ff..0000000 --- a/Controleur/ControleurAjaxcontextfeuillemaladie.php +++ /dev/null @@ -1,12 +0,0 @@ -requete->getParametre("numeroFeuilleMaladie"); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxcontextpharmaciencien.php b/Controleur/ControleurAjaxcontextpharmaciencien.php deleted file mode 100755 index c05cd9d..0000000 --- a/Controleur/ControleurAjaxcontextpharmaciencien.php +++ /dev/null @@ -1,13 +0,0 @@ -requete->getParametre("numeroBonOrdonnance"); - $_SESSION['codePrestataireLivraison_C'] = $this->requete->getParametre("codePrestataireLivraison"); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdeconnexion.php b/Controleur/ControleurAjaxdeconnexion.php deleted file mode 100755 index 39e564e..0000000 --- a/Controleur/ControleurAjaxdeconnexion.php +++ /dev/null @@ -1,17 +0,0 @@ -utilisateur = new Utilisateur(); - } - - public function index() { - $login = $this->requete->getSession()->getAttribut("login"); - $this->utilisateur->viderTablesTemporairesUser($login); - $this->requete->getSession()->detruire(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdemanderdv.php b/Controleur/ControleurAjaxdemanderdv.php deleted file mode 100755 index 78381f5..0000000 --- a/Controleur/ControleurAjaxdemanderdv.php +++ /dev/null @@ -1,61 +0,0 @@ -rendezvous = new Rendezvous(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - $codeEtatRdv = $this->requete->getParametreFormulaire("codeEtatRdv"); - - $_SESSION['codeEtatRdv'] = $codeEtatRdv; - - $demandes = $this->rendezvous->getPrisesRdv($idAdherent, $d1, $d2, $codeEtatRdv); - - $this->genererVueAjax(array('demandes' => $demandes)); - } - - public function enregistrer() - { - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - $debutRdv = $this->requete->getParametreDate("debutRdv"); - $finRdv = $this->requete->getParametreDate("finRdv"); - - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $codeSpecialite = $this->requete->getParametreFormulaire("codeSpecialite"); - - $motifRdv = $this->requete->getParametreFormulaire("motifRdv"); - - $this->rendezvous->enregistrerrdv($numeroBeneficiaire, $debutRdv, $finRdv, $codePrestataire, $codeSpecialite, $motifRdv); - } - - public function selectionner() - { - $idDemande = $this->requete->getParametreFormulaire("idDemande"); - - $_SESSION['idDemandeRdv'] = $idDemande; - } - - - public function modifier() - { - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - $debutRdv = $this->requete->getParametreDate("debutRdv"); - $finRdv = $this->requete->getParametreDate("finRdv"); - - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $codeSpecialite = $this->requete->getParametreFormulaire("codeSpecialite"); - - $motifRdv = $this->requete->getParametreFormulaire("motifRdv"); - - $this->rendezvous->modifierrdv($numeroBeneficiaire, $debutRdv, $finRdv, $codePrestataire, $codeSpecialite, $motifRdv); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdemanderemboursement.php b/Controleur/ControleurAjaxdemanderemboursement.php deleted file mode 100755 index 7dd52dc..0000000 --- a/Controleur/ControleurAjaxdemanderemboursement.php +++ /dev/null @@ -1,39 +0,0 @@ -remb = new Remboursement(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - $codeEtatDemandeRemboursement = $this->requete->getParametreFormulaire("codeEtatDemandeRemboursement"); - - $demandes = $this->remb->getDemandesRemboursement($idAdherent, $d1, $d2, $codeEtatDemandeRemboursement); - - $this->genererVueAjax(array('demandes' => $demandes)); - } - - public function enregistrerdemande() - { - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - $commentaires = $this->requete->getParametreFormulaire("commentaires"); - - $this->remb->enregistrerdemande($numeroBeneficiaire, $commentaires); - } - - public function selectionnerremb() - { - $idDemande = $this->requete->getParametreFormulaire("idDemande"); - - $_SESSION['idDemandeRemboursement'] = $idDemande; - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxderogation.php b/Controleur/ControleurAjaxderogation.php deleted file mode 100755 index 6865b97..0000000 --- a/Controleur/ControleurAjaxderogation.php +++ /dev/null @@ -1,26 +0,0 @@ -derogation = new Derogation(); - } - - public function index() - { - $codePrestataire = $_SESSION['codePrestataire_C']; - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - $_SESSION['d1_C'] = $d1; - $_SESSION['d2_C'] = $d2; - - $derogations = $this->derogation->getderogations($codePrestataire, $idBeneficiaire, $d1, $d2); - - $this->genererVueAjax(array('derogations' => $derogations)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxderogations.php b/Controleur/ControleurAjaxderogations.php deleted file mode 100755 index c0f0861..0000000 --- a/Controleur/ControleurAjaxderogations.php +++ /dev/null @@ -1,31 +0,0 @@ -derogation = new Derogation(); - $this->prestataire = new Prestataire(); - } - - public function index() - { - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $codeDerogation = $this->requete->getParametreFormulaire("codeDerogation"); - $codeReponseDerogation = $this->requete->getParametreFormulaire("codeReponseDerogation"); - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']); - - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $derogations = $this->derogation->getderogations($codePrestataire, $codeDerogation, $codeReponseDerogation, $debut, $fin); - - $this->genererVueAjax(array('derogations' => $derogations)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdestinatairesms.php b/Controleur/ControleurAjaxdestinatairesms.php deleted file mode 100755 index e1cfbb1..0000000 --- a/Controleur/ControleurAjaxdestinatairesms.php +++ /dev/null @@ -1,73 +0,0 @@ -messagerie = new Messagerie(); -} - - public function index() - { - $this->genererVueAjax(); - } - - public function consulter() - { - $date1 = $this->requete->getParametreDate("date1"); - $date2 = $this->requete->getParametreDate("date2"); - - $messages_envoyes = $this->messagerie->getenvoisms($date1, $date2); - - $messages_en_cours = $this->messagerie->getenvoismsencours($date1, $date2); - - $this->genererVueAjax(array('messages_envoyes' => $messages_envoyes, 'messages_en_cours' => $messages_en_cours)); - } - - public function consulterwhatsapp() - { - $date1 = $this->requete->getParametreDate("date1"); - $date2 = $this->requete->getParametreDate("date2"); - - $messages_envoyes = $this->messagerie->getenvoiwhatsapp($date1, $date2); - - $this->genererVueAjax(array('messages_envoyes' => $messages_envoyes)); - } - - public function consulterwhatsappencours() - { - $date1 = $this->requete->getParametreDate("date1"); - $date2 = $this->requete->getParametreDate("date2"); - - $messages_en_cours = $this->messagerie->getenvoiwhatsappencours($date1, $date2); - - $this->genererVueAjax(array('messages_en_cours' => $messages_en_cours)); - } - - - public function mettrewhatsappattenteassureur() - { - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - - $this->messagerie->mettrewhatsappattenteassureur($textMessage); - } - - public function mettrewhatsappattenteprestataire() - { - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - - $this->messagerie->mettrewhatsappattenteprestataire($codePrestataire, $textMessage); - } - - public function mettrewhatsappattenteassureurprestataire() - { - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - - $this->messagerie->mettrewhatsappattenteassureurprestataire($codePrestataire, $textMessage); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdetailordonnance.php b/Controleur/ControleurAjaxdetailordonnance.php deleted file mode 100755 index f94b7dd..0000000 --- a/Controleur/ControleurAjaxdetailordonnance.php +++ /dev/null @@ -1,20 +0,0 @@ -detailprescription = new Detailprescription(); - } - - public function index() - { - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - - $detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance); - - $this->genererVueAjax(array('detailprescriptions' => $detailprescriptions)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdetailpharmacie.php b/Controleur/ControleurAjaxdetailpharmacie.php deleted file mode 100755 index 03f0a72..0000000 --- a/Controleur/ControleurAjaxdetailpharmacie.php +++ /dev/null @@ -1,71 +0,0 @@ -prescription = new Prescription_temp(); - $this->detailprescription = new Detailprescription(); - } - - public function index() - { - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription(); - - $detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription); - - $detailnonlivres = $this->prescription->getdetailnonlivre(); - - // $detaillivres = $this->prescription->getdetaillivre(); - $detaillivres = $this->prescription->getdetaillivrecso(); - - $this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, - 'detailnonlivres' => $detailnonlivres, 'detaillivres' => $detaillivres)); - } - - public function ajoutermedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - // $this->prescription->ajoutermedicament($idMedicament); - $this->prescription->ajoutermedicamentcso($idMedicament); - - $this->executerAction("index"); - } - - public function ajoutermedicamenttous() - { - // $this->prescription->ajoutermedicamenttous(); - $this->prescription->ajoutermedicamenttouscso(); - $this->executerAction("index"); - } - - public function retirermedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - // $this->prescription->retirermedicament($idMedicament); - $this->prescription->retirermedicamentcso($idMedicament); - - $this->executerAction("index"); - } - - public function retirermedicamenttous() - { - // $this->prescription->retirermedicamenttous(); - $this->prescription->retirermedicamenttouscso(); - $this->executerAction("index"); - } - - public function enregistrerpharmacie() - { - $this->prescription->enregistrerpharmacie(); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdetailprescription.php b/Controleur/ControleurAjaxdetailprescription.php deleted file mode 100755 index eface68..0000000 --- a/Controleur/ControleurAjaxdetailprescription.php +++ /dev/null @@ -1,36 +0,0 @@ -prescription = new Prescription(); - $this->detailprescription = new Detailprescription(); - } - - public function index() - { - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription($numeroPrescription); - - $detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription); - - $this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions)); - } - - public function consulterremplacement() - { - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - - $medicaments_remplaces = $this->detailprescription->getmedicamentsremplaces($numeroBonOrdonnance); - - $this->genererVueAjax(array('medicaments_remplaces' => $medicaments_remplaces)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdetailprescriptionexamen.php b/Controleur/ControleurAjaxdetailprescriptionexamen.php deleted file mode 100755 index 1812ef2..0000000 --- a/Controleur/ControleurAjaxdetailprescriptionexamen.php +++ /dev/null @@ -1,57 +0,0 @@ -examen = new Examen_temp(); - $this->detailexamen = new Detailexamem(); - } - - public function index() - { - $numeroExamen = $_SESSION['numeroExamen_C']; - - $examen = $this->examen->getexamentemp(); - - $detailexamens = $this->detailexamen->getdetailexamenfeuille(); - $nbExamens_0 = count($detailexamens); - - $this->genererVueAjax(array('examen' => $examen, 'detailexamens' => $detailexamens, 'nbExamens_0' => $nbExamens_0)); - } - - public function ajouterexamen() - { - $codeActe = $this->requete->getParametreFormulaire("codeActe"); - $ententePrealable = $this->requete->getParametreFormulaire("ententePrealable"); - - $this->detailexamen->ajouterexamen($codeActe, $ententePrealable); - - // $this->executerAction("index"); - } - - public function majquantite() - { - $idExamen = $this->requete->getParametre("idExamen"); - $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); - - $this->detailexamen->majquantite($idExamen, $quantite); - - $this->executerAction("index"); - } - - public function supprimer() - { - $idExamen = $this->requete->getParametre("idExamen"); - - $this->detailexamen->supprimerexamen($idExamen); - - $this->executerAction("index"); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdetailseance.php b/Controleur/ControleurAjaxdetailseance.php deleted file mode 100755 index 49960bd..0000000 --- a/Controleur/ControleurAjaxdetailseance.php +++ /dev/null @@ -1,22 +0,0 @@ -seance = new Seance_temp(); - } - - public function index() - { - $this->genererVueAjax(); - } - - public function enregistrerseance() - { - $this->seance->enregistrerseance(); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdiagnosticsbeneficiaire.php b/Controleur/ControleurAjaxdiagnosticsbeneficiaire.php deleted file mode 100755 index 4c17410..0000000 --- a/Controleur/ControleurAjaxdiagnosticsbeneficiaire.php +++ /dev/null @@ -1,22 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - - $diagnostics = $this->feuillemaladie->getDiagnosticsBeneficiaire($idBeneficiaire); - - $this->genererVueAjax(array('diagnostics' => $diagnostics)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdossiercons.php b/Controleur/ControleurAjaxdossiercons.php deleted file mode 100755 index 1d08d75..0000000 --- a/Controleur/ControleurAjaxdossiercons.php +++ /dev/null @@ -1,28 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $numeroBonConsultation = $this->requete->getParametreFormulaire("numeroBonConsultation"); - - $factures = $this->feuillemaladie->getfacturesfeuilleconsultation($numeroBonConsultation); - - $factures_total = null; - - if(count($factures)>"0") - { - $factures_total = $factures['0']; - } - - $this->genererVueAjax(array('factures' => $factures, 'factures_total' => $factures_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdossiers.php b/Controleur/ControleurAjaxdossiers.php deleted file mode 100755 index 159434c..0000000 --- a/Controleur/ControleurAjaxdossiers.php +++ /dev/null @@ -1,22 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladie($idBeneficiaire, $d1, $d2) ; - - $this->genererVueAjax(array('feuillemaladies' => $feuillemaladies)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdossierscontestes.php b/Controleur/ControleurAjaxdossierscontestes.php deleted file mode 100755 index 7cffd5a..0000000 --- a/Controleur/ControleurAjaxdossierscontestes.php +++ /dev/null @@ -1,32 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiecontestee($idAdherent, $d1, $d2) ; - - //var_dump($feuillemaladies); die(); - - $this->genererVueAjax(array('feuillemaladies' => $feuillemaladies)); - } - - public function reactiver() - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $motif = $this->requete->getParametreFormulaire("motif"); - - $this->feuillemaladie->reactiverdossier($numeroFeuilleMaladie, $motif); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxdossiersfamille.php b/Controleur/ControleurAjaxdossiersfamille.php deleted file mode 100755 index 9cee3f6..0000000 --- a/Controleur/ControleurAjaxdossiersfamille.php +++ /dev/null @@ -1,23 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiefamille($idAdherent, $d1, $d2) ; - - $this->genererVueAjax(array('feuillemaladies' => $feuillemaladies)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxententeprealables.php b/Controleur/ControleurAjaxententeprealables.php deleted file mode 100755 index 72577ae..0000000 --- a/Controleur/ControleurAjaxententeprealables.php +++ /dev/null @@ -1,30 +0,0 @@ -ententeprealable = new Ententeprealable(); - $this->prestataire = new Prestataire(); - } - - public function index() - { - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $codeReponseEntentePrealable = $this->requete->getParametreFormulaire("codeReponseEntentePrealable"); - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']); - - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $ententeprealables = $this->ententeprealable->getEntenteprealables($codePrestataire, $codeReponseEntentePrealable, $debut, $fin); - - $this->genererVueAjax(array('ententeprealables' => $ententeprealables)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxententeprealablesmont.php b/Controleur/ControleurAjaxententeprealablesmont.php deleted file mode 100755 index 2f07941..0000000 --- a/Controleur/ControleurAjaxententeprealablesmont.php +++ /dev/null @@ -1,22 +0,0 @@ -ententeprealable = new Ententeprealable(); - } - - public function index() - { - $codeReponseEntentePrealable = $this->requete->getParametreFormulaire("codeReponseEntentePrealable"); - - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $ententeprealables = $this->ententeprealable->getEntenteprealablesmont($codeReponseEntentePrealable, $debut, $fin); - - $this->genererVueAjax(array('ententeprealables' => $ententeprealables)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxententeprealablesopt.php b/Controleur/ControleurAjaxententeprealablesopt.php deleted file mode 100755 index e04f023..0000000 --- a/Controleur/ControleurAjaxententeprealablesopt.php +++ /dev/null @@ -1,22 +0,0 @@ -ententeprealable = new Ententeprealable(); - } - - public function index() - { - $codeReponseEntentePrealable = $this->requete->getParametreFormulaire("codeReponseEntentePrealable"); - - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $ententeprealables = $this->ententeprealable->getEntenteprealablesopt($codeReponseEntentePrealable, $debut, $fin); - - $this->genererVueAjax(array('ententeprealables' => $ententeprealables)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxententeprealablespha.php b/Controleur/ControleurAjaxententeprealablespha.php deleted file mode 100755 index 7b20983..0000000 --- a/Controleur/ControleurAjaxententeprealablespha.php +++ /dev/null @@ -1,22 +0,0 @@ -ententeprealable = new Ententeprealable(); - } - - public function index() - { - $codeReponseEntentePrealable = $this->requete->getParametreFormulaire("codeReponseEntentePrealable"); - - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $ententeprealables = $this->ententeprealable->getEntenteprealablespha($codeReponseEntentePrealable, $debut, $fin); - - $this->genererVueAjax(array('ententeprealables' => $ententeprealables)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxenvoimaildivers.php b/Controleur/ControleurAjaxenvoimaildivers.php deleted file mode 100755 index 31c9310..0000000 --- a/Controleur/ControleurAjaxenvoimaildivers.php +++ /dev/null @@ -1,116 +0,0 @@ -finger = new Finger(); - } - - public function index() - { - $this->genererVueAjax(); - } - - public function verifiertentativeidentitification() - { - $user_id = $this->requete->getParametreFormulaire("user_id"); - - $nbTentative = $this->finger->verifier_tentative_identification($user_id); - - $_SESSION['nbTentative'] = $nbTentative; - $this->executerAction("index"); - } - - public function mailfraudeidentite() - { - require_once 'Framework/Ebenegmail.php'; - - $emailDestination = $_SESSION['emailGestionBon_C']; - - /* Pour les tests */ - $email_standard = $_SESSION['email_standard']; - if($email_standard>" ") - { - $emailDestination .= ";".$email_standard ; - } - /* Fin mails tests */ - - /* Pour empêcher les envois de mails */ - $emailDestination = "lkane@ebene.info"; - /* Fin Pour empêcher les envois de mails */ - - $obejt = "ALERTE PLUS DE 3 TENTATIVES D'IDENTIFICATION"; - - $body = "- Prestataire : ".$_SESSION['prestataire_C']." - -- Patient : ".$_SESSION['beneficiaire_C']." (".$_SESSION['numeroBeneficiaire_C'].") - -- Date : ".heureCourante()." - -Merci et bonne réception."; - - $body = convertirc($body); - - $addr = explode(';', $emailDestination); - foreach ($addr as $ad) - { - $mail->AddAddress(trim($ad) ); - } - - $mail->Subject = $obejt; - - $mail->Body=$body; - - $mail->send(); - } - - public function mailententeprealable() - { - $numeroBon = $this->requete->getParametreFormulaire("numeroBon"); - - require_once 'Framework/Ebenegmail.php'; - - $emailDestination = $_SESSION['emailMedecinConseil_C']; - - /* Pour les tests */ - $email_standard = $_SESSION['email_standard']; - if($email_standard>" ") - { - $emailDestination .= ";".$email_standard ; - } - /* Fin mails tests */ - - /* Pour empêcher les envois de mails */ - $emailDestination = "lkane@ebene.info"; - /* Fin Pour empêcher les envois de mails */ - - $obejt = "ALERTE HOSPITALISATION"; - - $body = "- Prestataire : ".$_SESSION['prestataire_C']." - -- Patient : ".$_SESSION['beneficiaire_C']." (".$_SESSION['numeroBeneficiaire_C'].") - -- Date : ".heureCourante()." - -- N° Bon Hospitalisation : ".$numeroBon." - -Merci et bonne réception."; - - $body = convertirc($body); - - $addr = explode(';', $emailDestination); - foreach ($addr as $ad) - { - $mail->AddAddress(trim($ad) ); - } - - $mail->Subject = $obejt; - - $mail->Body=$body; - - $mail->send(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxenvoism_kanzea_v2.php b/Controleur/ControleurAjaxenvoism_kanzea_v2.php deleted file mode 100755 index f6eab13..0000000 --- a/Controleur/ControleurAjaxenvoism_kanzea_v2.php +++ /dev/null @@ -1,222 +0,0 @@ -envoimail = new Envoimail(); - } - - public function index() - { - } - - - // fonction_envoyersms_kaneza_avec_curl => En vigueur 02/06/2018 - - public function envoyersms() - { - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - - $url = "https://gateway.esicia.com/sendsms/?"; - - /* pour evoyer en boucle sur la liste des destinataires - foreach ($addr as $ad) - { - if(tester_une_adresse_email($ad)) - { - $mail_C->AddAddress(trim($ad) ); - } - else - { - // echo "Veuillez revoir cette adresse PHP : " . $ad; - // exit(); - } - } - */ - - // Pour tester - $destinataires = "250780440758"; - $message = "TESTSMSKANEZA"; - // Fin tester - - $postFields = array( - 'ohereza' =>'MEDICARE', - 'kuri' =>$destinataires, - 'ubutumwa' =>$message, - 'client' =>'radiant', - 'password' =>'umugozi', - 'msgid' =>'kane' - ); - - $post = http_build_query($postFields); - - $url .= $post; - - echo $url; - exit(); - - $result= file_get_contents($url); - print_r($result); - exit(); - } - -/* fonction_envoyersms_kaneza_avec_curl - public function envoyersms() - { - - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - $url = "https://gateway.esicia.com/sendsms/"; - - - - // pour evoyer en boucle sur la liste des destinataires - foreach ($addr as $ad) - { - if(tester_une_adresse_email($ad)) - { - $mail_C->AddAddress(trim($ad) ); - } - else - { - // echo "Veuillez revoir cette adresse PHP : " . $ad; - // exit(); - } - } - // FIN EACH - - $destinataires = "250780440758"; - $message = "TESTSMSKANEZA"; - - // utilisation de la méthode POST de cURL - - $postFields = array( - 'ohereza' =>'MEDICARE', - 'kuri' =>$destinataires, - 'ubutumwa' =>$message, - 'client' =>'radiant', - 'password' =>'umugozi', - 'msgid' =>'kane' - ); - - $post = http_build_query($postFields); - - $url .= "?".$post; - - // echo $url; - // exit(); - - $result= file_get_contents($url); - print_r($result); - exit(); - - $ch=curl_init(); - - if(empty($ch)) - { - die("ERREUR curl_init : Il semble que cURL ne soit pas disponible."); - } - - $options=array - ( - CURLOPT_URL => $url, // Url cible (l'url de la page que vous voulez télécharger) - CURLOPT_RETURNTRANSFER => TRUE, // Retourner le contenu téléchargé dans une chaine (au lieu de l'afficher directement) - CURLOPT_HEADER => FALSE, // Ne pas inclure l'entête de réponse du serveur dans la chaine retournée - CURLOPT_FAILONERROR => TRUE, // Gestion des codes d'erreur HTTP supérieurs ou égaux à 400 - CURLOPT_POST => TRUE, // Effectuer une requête de TYPE POST - CURLOPT_TIMEOUT => 10, - CURLOPT_POSTFIELDS => $postFields // Le tableau associatif contenant les VARIABLES envoyées par POST au serveur - // CURLOPT_POSTFIELDS => $post // Le tableau associatif contenant les VARIABLES envoyées par POST au serveur - ); - - // var_dump($options); - // exit(); - - curl_setopt_array($ch, $options); - - if( ! $result = curl_exec($ch)) - { - trigger_error(curl_error($ch)); - } - - // $info = curl_getinfo($ch); - - curl_close($ch); - - // var_dump($result); - // var_dump($info); - // print_r($info); - // echo $result; - // var_dump($result); - // print_r($result); - // return $result; - } -*/ - -/* fonction_envoyersms_hooza_victor_nkindi - - public function envoyersms() - { - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - - $this->envoimail->logenvoisms($destinataires, $message); - - - // RADIANT - $get = array('username'=>'HoAj-radiant', - 'password'=>'radiant', - 'type'=>'0', - 'dlr'=>'1', - 'destination'=>$destinataires, - 'source'=>'MEDICARE', - 'message'=>$message - ); - - // EBENE - $get = array('username'=>'HoAj-ebene', - 'password'=>'ebene201', - 'type'=>'0', - 'dlr'=>'1', - 'destination'=>$destinataires, - 'source'=>'INTERSANTE', - 'message'=>$message - ); - - $url = "http://rslr.connectbind.com/bulksms/bulksms"; - - - $defaults = array( - CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get), - // CURLOPT_URL => $url, - CURLOPT_HEADER => 0, - CURLOPT_RETURNTRANSFER => TRUE, - CURLOPT_TIMEOUT => 10 - ); - - - $ch = curl_init(); - - curl_setopt_array($ch, ($defaults)); - if( ! $result = curl_exec($ch)) - { - trigger_error(curl_error($ch)); - } - - curl_close($ch); - - return $result; - } -*/ -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxenvoisms_hooza.php b/Controleur/ControleurAjaxenvoisms_hooza.php deleted file mode 100755 index c09e5d2..0000000 --- a/Controleur/ControleurAjaxenvoisms_hooza.php +++ /dev/null @@ -1,49 +0,0 @@ -1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'ionCube')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'get-loader.ioncube.com')." for install assistance.\n\n");exit(199); -?> -HR+cPuSQWDL8vNWQ5QaLzaYH68lNw4HTTcZdGOIuDp+FT0Yl15HZPWZDycygUtPUe2gBRf8CAsxc -YjD6jP4Ds1OHY9xS3ZsyIBh1O763vax8L1Y+USB/xim7cvRZ7wE4zFOMf7CJN6alEW81ze4MCi9n -Uf3ed7wi6U4dDS+OqqN8yH9XL3iB/OFWsGEOcxXR9K3OsrIZiZ5OcTDjEBWIhUcvYedx0PobUaWi -24EDLj+vRGjdfmPIvn+mTAF+ekALnM64niYk0mBzrIvv01redt1+81KxoIXb7qeRDP9YcHqB/I2W -HxGKO3SzEs/jMWMQBBeafEjBAFJXhEufC0j974AIrp9YsJC0cedRQWEaGkTZcup562HvQZvgbi53 -LARvUg6OnqwszcRaWVaUcaxI2WCQu0zTiejBklNlzzGmExSZVTL8wkT7UvIzNZjcHAZAOfufPvPn -ZPeiBGdQvXZMFY1f+htWunWZH8zfR2saNFJDmH8DDY1inK3GHH36qIcAuML0W/UHafxqVo5bCld1 -GKSoRe400HOl8v4SQjRN+MF7O73XEsgnLks81esVdfAUVHyOj5r6rI+tt+FjC0muqcVjfdP83YaK -73cm33SpWGDjdNeV7/F7cxJrEq+aOPq0aVZW3ClYaDQeA6FBxODhf1S8dZ1Dce0ndGO2z5H872a8 -z6mfxXYT7cv6Cb7ArNRRb3zIqlfcl+wOzwG9BDx/8ZWVdMX4aYe8biTgVkHd1AMlSo32tEXKKegE -SO7QyMxCIOcBG3Q/3l4PiMSNXRcjvWGd7N2xSlU4YY2D6F/91I2hlxHBwYPOkThddcpH4yd93UTg -MO4ZWz3S8hZ5f2h+AT8HbvmP+IBLhCZbynQBSmQDcGLaidjVqJKclnbVhyoKG0ZIpRlYhuDtXMo3 -0VvPRzV+ylGdEn8Sm7Ma1fCX8pcmKwdV9ocu+dfeaMWwCMXvrLJUwr5Fk+px+0gL6Cg7a4BZznos -jWGKKm/GwfhmGifZdsJbYT4XUnF/pBZv45u1NlzuYXOwksjTTdVITcE6bsOisSdAyDfJ8tL0cAcY -6gDqsbX3QilZ2kZDChZkD/CrR/99f1WxE6YYIvPbbmt4bjL3C0t/qas/bSzHE+S/yeSl0IFFfGDB -GD78V6d+r9RLx7eLSAnAkSkJRcg71/LgYBBVZIB9emC6CPmCg7E1PJz5EtdCgzB44bP8kYbfSzq1 -O2geyR1peXkmBqz99wUobBo8PxcVeWg6lh5TU/MaL/uOrS6zgBM4lLJgSp5zu79cTNeQEfXGeKyj -+UOVjdVtvgx2nWJ1qE5rp8kHEeSN/9KutvFNqjxcPkgg8JCw9BbQTkl3SgGfEyq8KyiKyZ/hpgx7 -XKCRpjJcKwx7peNrze3XkQ+Jp1cB0UhrWtFgvefv4E3in8/WSz7bSRAt64SD59tpBZXoCdIi9YIE -biD7+0698FEJV2/QZVYcFKw0Xrz+4fs8j5+YWZ0l3vPW3zAUgIkH6D00lDe/alyongukcvQyCdnL -GkdVK8pFEukhsG1urdYLDl6jTO4u7dobSE9OiU2cB+oPt3WkYL5Rl64TahId8oDWU80goSkAYhmK -UYlBjM/lJV2gAH7588ACp5gjnIZIiyE3UPF11pDq2bRpLam/aVJXuJSoPja8HBo5d8o965aLGhPw -0HB5WIS8KITX5lfDfcDMka84JWGmvgvX9gxKTLohQVxwIn/oohrI/++rrfaPeWSd3GVty7QKb5hI -9d4mtMfoWMeSs3D8rFTaUuF1v4IyIwUBJ+MfKtXt/2GbquBsRoUy/wpRl66RlfQxPBvHn29888tm -AvZLbmsMEB1Ef8fQT3DcqUZtM7h9LVa8b7NfC+dB18GYMiRlCCczLaiLwp0UrvyWSUp8Pcwm4NwB -VDQIFoc4yuiWWTYC1k48q9qbPTpPu36DzRmCfWqCZhQYmx6GgibqS0iEeho1tKTDrp38uZ9q0891 -h2MHYGCfvcn+ivAe/bCUkYh2ikqUNy0LM2BBKOo5PMKrdpjoY2YkJENWHKMyQTBjJJPDCf34IXp/ -+ZwCoALMkdHabaEZ/9Ar93QK/prnYhxj5yqnl/kU1HzNgdF2rejHxmUOOsUpcTg43JC24XCUFNab -d2uLnI1XabwbywDAnFy6AUTODL7QXhCvQG2RLLHz6kfgqhole9C/rwgbRaXAabL3oNXrKSnJcMTT -aBI1q1aA+HJUsbHM4jocEupE6xo9d9VE1oVKcJOLk/xtwQ99JzIkoxJcxRNrzeZElNsCmjXM8Sl2 -rxbjxqpcZ2gBdYyNlrlYaRAiW/pncYbYDTefE30b+ZJ/XKnQ3KEFnWu8eqrjN4Dfxtq4ux3lTohh -3/QuNI0w/9SxF+HyMbwvmNLb56JedK188RoZUIWpSAkaNGuK8BdukD6qQwLE57VKLcmiSsOXD56d -RpYdM9vSnWoRt7nacMygCSaPb7n7OwCeV/Ew6EQrVW7X50bVbeGIOIDwgqPid5lAFiNNqAKMIDte -gNiJRXmKq+UABdMa/sQPalic++hde9Nwd2Sce6QJwI+/6klU2vu3REaYGNbuRS9TkmQDtqrhLbc4 -u+XBYDVp5iADmzU8Iqc15oqTj5RqNx8gYYU1DnodixmAlBS/BjTeolcQOmr/+UVGHsZdddWNy7Ap -RRCvMZQLtxd5NQPMLGtImpeTPJf3Od3pLgDZftZcmUQ2aZNsIKfdLJ8/sICQQ2A80MY6CNCQLYpC -I35dZgDx/thqEd85GXFRe0h2iKgnww3kCl+8amtyYj+JbhA40h7DpkKWtx6tcQnufnfVIqu4JHnS -wYv63km3EdOxnOznLpPH8p8goj1TzkUiyicCJeUX1CZyCGRIitGrQAjOhryVRHYvSuFx+dqHsT8z -7lTA+p7KrME1B3+Z1t96H2HDFN/fNkN2IFD+6ViEBpkUvpUSdk+BUJ6A8z/xHlhwi5WlW/bxldhE -lwk+srGaVuFRylAxbgBnEzdPmDYAq0xyKw6MiIk9JcD3CWTdE0VuOx7/1L+HIMPtJ5PFOCxI+ye/ -5I5OQlinyAsAUykEcYL5eDrtfvSMLJNUG3qpC8FtnZDbQ34OQyf5de3ScCvezlcmePo2jOe9VyMr -WLJ/aNG5vgX4y2m3ifqR+v9lFvfI6EeR5DvQWw4PII/N9p8dC8vlq0ZKNQ7ruXqQhtDLPNT5HGtb -Ua7B5aerbtfx86nyia0eKn9VknIGGey443LEgwa4X+2VHVCYYVRxKZ3tuNoiB2e3bGcd6pWu2rAF -7f/qKzRkERPxWjTKrHVweyWsuCp2aaWU/9UAoedsPaqwAfkPEmEkYPdSlI5yKM+zcK3tBl7amT0z -1h0CTeNevoOPG0oILYVDTAmz02Zg5FaDG3ArRwfCiNw4RWEnX+9XeOyjIB+yk4gbUapy0gTW1GBL -irXGCt8TdhMNIWvkEvMiU86ucENjk2kk1ugk40G6I9WIkWcSNVy9 \ No newline at end of file diff --git a/Controleur/ControleurAjaxenvoisms_old.php b/Controleur/ControleurAjaxenvoisms_old.php deleted file mode 100755 index c09e5d2..0000000 --- a/Controleur/ControleurAjaxenvoisms_old.php +++ /dev/null @@ -1,49 +0,0 @@ -1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}if(function_exists('dl')){@dl($__ln);}}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo("Site error: the ".(php_sapi_name()=='cli'?'ionCube':'ionCube')." PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.\n\nPlease visit ".(php_sapi_name()=='cli'?'get-loader.ioncube.com':'get-loader.ioncube.com')." for install assistance.\n\n");exit(199); -?> -HR+cPuSQWDL8vNWQ5QaLzaYH68lNw4HTTcZdGOIuDp+FT0Yl15HZPWZDycygUtPUe2gBRf8CAsxc -YjD6jP4Ds1OHY9xS3ZsyIBh1O763vax8L1Y+USB/xim7cvRZ7wE4zFOMf7CJN6alEW81ze4MCi9n -Uf3ed7wi6U4dDS+OqqN8yH9XL3iB/OFWsGEOcxXR9K3OsrIZiZ5OcTDjEBWIhUcvYedx0PobUaWi -24EDLj+vRGjdfmPIvn+mTAF+ekALnM64niYk0mBzrIvv01redt1+81KxoIXb7qeRDP9YcHqB/I2W -HxGKO3SzEs/jMWMQBBeafEjBAFJXhEufC0j974AIrp9YsJC0cedRQWEaGkTZcup562HvQZvgbi53 -LARvUg6OnqwszcRaWVaUcaxI2WCQu0zTiejBklNlzzGmExSZVTL8wkT7UvIzNZjcHAZAOfufPvPn -ZPeiBGdQvXZMFY1f+htWunWZH8zfR2saNFJDmH8DDY1inK3GHH36qIcAuML0W/UHafxqVo5bCld1 -GKSoRe400HOl8v4SQjRN+MF7O73XEsgnLks81esVdfAUVHyOj5r6rI+tt+FjC0muqcVjfdP83YaK -73cm33SpWGDjdNeV7/F7cxJrEq+aOPq0aVZW3ClYaDQeA6FBxODhf1S8dZ1Dce0ndGO2z5H872a8 -z6mfxXYT7cv6Cb7ArNRRb3zIqlfcl+wOzwG9BDx/8ZWVdMX4aYe8biTgVkHd1AMlSo32tEXKKegE -SO7QyMxCIOcBG3Q/3l4PiMSNXRcjvWGd7N2xSlU4YY2D6F/91I2hlxHBwYPOkThddcpH4yd93UTg -MO4ZWz3S8hZ5f2h+AT8HbvmP+IBLhCZbynQBSmQDcGLaidjVqJKclnbVhyoKG0ZIpRlYhuDtXMo3 -0VvPRzV+ylGdEn8Sm7Ma1fCX8pcmKwdV9ocu+dfeaMWwCMXvrLJUwr5Fk+px+0gL6Cg7a4BZznos -jWGKKm/GwfhmGifZdsJbYT4XUnF/pBZv45u1NlzuYXOwksjTTdVITcE6bsOisSdAyDfJ8tL0cAcY -6gDqsbX3QilZ2kZDChZkD/CrR/99f1WxE6YYIvPbbmt4bjL3C0t/qas/bSzHE+S/yeSl0IFFfGDB -GD78V6d+r9RLx7eLSAnAkSkJRcg71/LgYBBVZIB9emC6CPmCg7E1PJz5EtdCgzB44bP8kYbfSzq1 -O2geyR1peXkmBqz99wUobBo8PxcVeWg6lh5TU/MaL/uOrS6zgBM4lLJgSp5zu79cTNeQEfXGeKyj -+UOVjdVtvgx2nWJ1qE5rp8kHEeSN/9KutvFNqjxcPkgg8JCw9BbQTkl3SgGfEyq8KyiKyZ/hpgx7 -XKCRpjJcKwx7peNrze3XkQ+Jp1cB0UhrWtFgvefv4E3in8/WSz7bSRAt64SD59tpBZXoCdIi9YIE -biD7+0698FEJV2/QZVYcFKw0Xrz+4fs8j5+YWZ0l3vPW3zAUgIkH6D00lDe/alyongukcvQyCdnL -GkdVK8pFEukhsG1urdYLDl6jTO4u7dobSE9OiU2cB+oPt3WkYL5Rl64TahId8oDWU80goSkAYhmK -UYlBjM/lJV2gAH7588ACp5gjnIZIiyE3UPF11pDq2bRpLam/aVJXuJSoPja8HBo5d8o965aLGhPw -0HB5WIS8KITX5lfDfcDMka84JWGmvgvX9gxKTLohQVxwIn/oohrI/++rrfaPeWSd3GVty7QKb5hI -9d4mtMfoWMeSs3D8rFTaUuF1v4IyIwUBJ+MfKtXt/2GbquBsRoUy/wpRl66RlfQxPBvHn29888tm -AvZLbmsMEB1Ef8fQT3DcqUZtM7h9LVa8b7NfC+dB18GYMiRlCCczLaiLwp0UrvyWSUp8Pcwm4NwB -VDQIFoc4yuiWWTYC1k48q9qbPTpPu36DzRmCfWqCZhQYmx6GgibqS0iEeho1tKTDrp38uZ9q0891 -h2MHYGCfvcn+ivAe/bCUkYh2ikqUNy0LM2BBKOo5PMKrdpjoY2YkJENWHKMyQTBjJJPDCf34IXp/ -+ZwCoALMkdHabaEZ/9Ar93QK/prnYhxj5yqnl/kU1HzNgdF2rejHxmUOOsUpcTg43JC24XCUFNab -d2uLnI1XabwbywDAnFy6AUTODL7QXhCvQG2RLLHz6kfgqhole9C/rwgbRaXAabL3oNXrKSnJcMTT -aBI1q1aA+HJUsbHM4jocEupE6xo9d9VE1oVKcJOLk/xtwQ99JzIkoxJcxRNrzeZElNsCmjXM8Sl2 -rxbjxqpcZ2gBdYyNlrlYaRAiW/pncYbYDTefE30b+ZJ/XKnQ3KEFnWu8eqrjN4Dfxtq4ux3lTohh -3/QuNI0w/9SxF+HyMbwvmNLb56JedK188RoZUIWpSAkaNGuK8BdukD6qQwLE57VKLcmiSsOXD56d -RpYdM9vSnWoRt7nacMygCSaPb7n7OwCeV/Ew6EQrVW7X50bVbeGIOIDwgqPid5lAFiNNqAKMIDte -gNiJRXmKq+UABdMa/sQPalic++hde9Nwd2Sce6QJwI+/6klU2vu3REaYGNbuRS9TkmQDtqrhLbc4 -u+XBYDVp5iADmzU8Iqc15oqTj5RqNx8gYYU1DnodixmAlBS/BjTeolcQOmr/+UVGHsZdddWNy7Ap -RRCvMZQLtxd5NQPMLGtImpeTPJf3Od3pLgDZftZcmUQ2aZNsIKfdLJ8/sICQQ2A80MY6CNCQLYpC -I35dZgDx/thqEd85GXFRe0h2iKgnww3kCl+8amtyYj+JbhA40h7DpkKWtx6tcQnufnfVIqu4JHnS -wYv63km3EdOxnOznLpPH8p8goj1TzkUiyicCJeUX1CZyCGRIitGrQAjOhryVRHYvSuFx+dqHsT8z -7lTA+p7KrME1B3+Z1t96H2HDFN/fNkN2IFD+6ViEBpkUvpUSdk+BUJ6A8z/xHlhwi5WlW/bxldhE -lwk+srGaVuFRylAxbgBnEzdPmDYAq0xyKw6MiIk9JcD3CWTdE0VuOx7/1L+HIMPtJ5PFOCxI+ye/ -5I5OQlinyAsAUykEcYL5eDrtfvSMLJNUG3qpC8FtnZDbQ34OQyf5de3ScCvezlcmePo2jOe9VyMr -WLJ/aNG5vgX4y2m3ifqR+v9lFvfI6EeR5DvQWw4PII/N9p8dC8vlq0ZKNQ7ruXqQhtDLPNT5HGtb -Ua7B5aerbtfx86nyia0eKn9VknIGGey443LEgwa4X+2VHVCYYVRxKZ3tuNoiB2e3bGcd6pWu2rAF -7f/qKzRkERPxWjTKrHVweyWsuCp2aaWU/9UAoedsPaqwAfkPEmEkYPdSlI5yKM+zcK3tBl7amT0z -1h0CTeNevoOPG0oILYVDTAmz02Zg5FaDG3ArRwfCiNw4RWEnX+9XeOyjIB+yk4gbUapy0gTW1GBL -irXGCt8TdhMNIWvkEvMiU86ucENjk2kk1ugk40G6I9WIkWcSNVy9 \ No newline at end of file diff --git a/Controleur/ControleurAjaxenvoismshooza.php b/Controleur/ControleurAjaxenvoismshooza.php deleted file mode 100755 index 2847650..0000000 --- a/Controleur/ControleurAjaxenvoismshooza.php +++ /dev/null @@ -1,225 +0,0 @@ -envoimail = new Envoimail(); - } - - public function index() - { - } - - - // fonction_envoyersms_kaneza_avec_curl => En vigueur 02/06/2018 - - public function envoyersms() - { - // echo 'Curl: ', function_exists('curl_init') ? 'Enabled' : 'Disabled'; - // exit(); - - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - - $url = "https://gateway.esicia.com/sendsms/?"; - - /* pour evoyer en boucle sur la liste des destinataires - foreach ($addr as $ad) - { - if(tester_une_adresse_email($ad)) - { - $mail_C->AddAddress(trim($ad) ); - } - else - { - // echo "Veuillez revoir cette adresse PHP : " . $ad; - // exit(); - } - } - */ - - // Pour tester - $destinataires = "250780440758"; - $message = "TESTSMSKANEZA"; - // Fin tester - - $postFields = array( - 'ohereza' =>'MEDICARE', - 'kuri' =>$destinataires, - 'ubutumwa' =>$message, - 'client' =>'radiant', - 'password' =>'umugozi', - 'msgid' =>'kane' - ); - - $post = http_build_query($postFields); - - $url .= $post; - - echo $url; - exit(); - - $result= file_get_contents($url); - print_r($result); - exit(); - } - -/* fonction_envoyersms_kaneza_avec_curl - public function envoyersms() - { - - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - $url = "https://gateway.esicia.com/sendsms/"; - - - - // pour evoyer en boucle sur la liste des destinataires - foreach ($addr as $ad) - { - if(tester_une_adresse_email($ad)) - { - $mail_C->AddAddress(trim($ad) ); - } - else - { - // echo "Veuillez revoir cette adresse PHP : " . $ad; - // exit(); - } - } - // FIN EACH - - $destinataires = "250780440758"; - $message = "TESTSMSKANEZA"; - - // utilisation de la méthode POST de cURL - - $postFields = array( - 'ohereza' =>'MEDICARE', - 'kuri' =>$destinataires, - 'ubutumwa' =>$message, - 'client' =>'radiant', - 'password' =>'umugozi', - 'msgid' =>'kane' - ); - - $post = http_build_query($postFields); - - $url .= "?".$post; - - // echo $url; - // exit(); - - $result= file_get_contents($url); - print_r($result); - exit(); - - $ch=curl_init(); - - if(empty($ch)) - { - die("ERREUR curl_init : Il semble que cURL ne soit pas disponible."); - } - - $options=array - ( - CURLOPT_URL => $url, // Url cible (l'url de la page que vous voulez télécharger) - CURLOPT_RETURNTRANSFER => TRUE, // Retourner le contenu téléchargé dans une chaine (au lieu de l'afficher directement) - CURLOPT_HEADER => FALSE, // Ne pas inclure l'entête de réponse du serveur dans la chaine retournée - CURLOPT_FAILONERROR => TRUE, // Gestion des codes d'erreur HTTP supérieurs ou égaux à 400 - CURLOPT_POST => TRUE, // Effectuer une requête de TYPE POST - CURLOPT_TIMEOUT => 10, - CURLOPT_POSTFIELDS => $postFields // Le tableau associatif contenant les VARIABLES envoyées par POST au serveur - // CURLOPT_POSTFIELDS => $post // Le tableau associatif contenant les VARIABLES envoyées par POST au serveur - ); - - // var_dump($options); - // exit(); - - curl_setopt_array($ch, $options); - - if( ! $result = curl_exec($ch)) - { - trigger_error(curl_error($ch)); - } - - // $info = curl_getinfo($ch); - - curl_close($ch); - - // var_dump($result); - // var_dump($info); - // print_r($info); - // echo $result; - // var_dump($result); - // print_r($result); - // return $result; - } -*/ - -/* fonction_envoyersms_hooza_victor_nkindi - - public function envoyersms() - { - $destinataires = $this->requete->getParametreFormulaire("destinataires"); - $message = $this->requete->getParametreFormulaire("message"); - // $typeSms = $this->requete->getParametreFormulaire("typeSms"); - - - $this->envoimail->logenvoisms($destinataires, $message); - - - // RADIANT - $get = array('username'=>'HoAj-radiant', - 'password'=>'radiant', - 'type'=>'0', - 'dlr'=>'1', - 'destination'=>$destinataires, - 'source'=>'MEDICARE', - 'message'=>$message - ); - - // EBENE - $get = array('username'=>'HoAj-ebene', - 'password'=>'ebene201', - 'type'=>'0', - 'dlr'=>'1', - 'destination'=>$destinataires, - 'source'=>'INTERSANTE', - 'message'=>$message - ); - - $url = "http://rslr.connectbind.com/bulksms/bulksms"; - - - $defaults = array( - CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get), - // CURLOPT_URL => $url, - CURLOPT_HEADER => 0, - CURLOPT_RETURNTRANSFER => TRUE, - CURLOPT_TIMEOUT => 10 - ); - - - $ch = curl_init(); - - curl_setopt_array($ch, ($defaults)); - if( ! $result = curl_exec($ch)) - { - trigger_error(curl_error($ch)); - } - - curl_close($ch); - - return $result; - } -*/ -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfacturecons.php b/Controleur/ControleurAjaxfacturecons.php deleted file mode 100755 index 224595f..0000000 --- a/Controleur/ControleurAjaxfacturecons.php +++ /dev/null @@ -1,139 +0,0 @@ -prescription = new Prescription_temp(); - $this->detailprescription = new Detailprescription(); - $this->prestation = new Prestationactes(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription_pha($numeroBonOrdonnance); - - $detailprescriptions = $this->detailprescription->getdetailprescription_pha($numeroBonOrdonnance); - - $detailnonlivres = $this->prescription->getdetailnonlivre(); - - // $detaillivres = $this->prescription->getdetaillivre(); - $detaillivres = $this->prescription->getdetaillivrepha(); - - // $factures = $this->prescription->getfactures_ordonnance($numeroBonOrdonnance); - - $garantieadherent_temp = $this->prestation->getgarantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); - - /* - $this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres, - 'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp, 'factures' => $factures)); - */ - - $this->genererVueAjax(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'detailnonlivres' => $detailnonlivres, - 'detaillivres' => $detaillivres, 'garantieadherent_temp' => $garantieadherent_temp)); - } - - public function ajoutermedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - $this->prescription->ajoutermedicament($idMedicament); - - $this->executerAction("index"); - } - - public function ajoutermedicamenttous() - { - $this->prescription->ajoutermedicamenttous(); - $this->executerAction("index"); - } - - public function retirermedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - $this->prescription->retirermedicament($idMedicament); - - $this->executerAction("index"); - } - - public function retirermedicamenttous() - { - $this->prescription->retirermedicamenttous(); - $this->executerAction("index"); - } - - public function enregistrerpharmacie() - { - $this->prescription->facturerpharmacie(); - } - - public function annulersubstitutionmedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - $this->prescription->annulersubstitutionmedicament($idMedicament); - - $this->executerAction("index"); - } - - public function enregistrersubstitutionmedicament() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - $prixSubstitut = $this->requete->getParametreFormulaire("prixSubstitut", "numerique"); - - $this->prescription->enregistrersubstitutionmedicament($idMedicament, $prixSubstitut); - - $this->executerAction("index"); - } - - public function ajoutermedicamentprescription() - { - $codeMedicament = $this->requete->getParametreFormulaire("codeMedicament"); - - $this->detailprescription->ajoutermedicamentpha($codeMedicament); - - $this->executerAction("index"); - } - - public function majquantitepha() - { - $idMedicament = $this->requete->getParametre("idMedicament"); - $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); - - $this->detailprescription->majquantitepha($idMedicament, $quantite); - - $this->executerAction("index"); - } - - public function demanderaccordpha() - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - $this->detailprescription->demanderaccordpha($idMedicament); - - $this->executerAction("index"); - } - - public function majprixpha() - { - $idMedicament = $this->requete->getParametre("idMedicament"); - $prix = $this->requete->getParametreFormulaire("prix", "numerique"); - - $this->detailprescription->majprixpha($idMedicament, $prix); - - $this->executerAction("index"); - } -} - diff --git a/Controleur/ControleurAjaxfactureconsassure.php b/Controleur/ControleurAjaxfactureconsassure.php deleted file mode 100755 index 319d98c..0000000 --- a/Controleur/ControleurAjaxfactureconsassure.php +++ /dev/null @@ -1,72 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $_SESSION['idFacture_C'] = $idFacture; - - $facture = $this->facture->consulterfacturefacture($idFacture) ; - - $this->genererVueAjax(array('facture' => $facture)); - } - - public function feuillemaladie() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ; - - $diagnostics = $this->facture->consulterfacturediagnostics($idFacture); - - $this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics)); - } - - public function prestationactes() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $prestations = $this->facture->consulterfactureprestationactes($idFacture) ; - - $this->genererVueAjax(array('prestations' => $prestations)); - } - - public function medicaments() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $medicaments = $this->facture->consulterfacturemedicaments($idFacture) ; - - $this->genererVueAjax(array('medicaments' => $medicaments)); - } - - public function geds() - { - unset($_FILES['fichier_upload']); - - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $geds = $this->facture->getgedfacture($idFacture); - - $this->genererVueAjax(array('geds' => $geds)); - } - - public function verres() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $verres = $this->facture->consulterfactureverres($idFacture) ; - - $this->genererVueAjax(array('verres' => $verres)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfactureconspop.php b/Controleur/ControleurAjaxfactureconspop.php deleted file mode 100755 index 7e21cb4..0000000 --- a/Controleur/ControleurAjaxfactureconspop.php +++ /dev/null @@ -1,72 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $_SESSION['idFacture_C'] = $idFacture; - - $facture = $this->facture->consulterfacturefacture($idFacture) ; - - $this->genererVueAjax(array('facture' => $facture)); - } - - public function feuillemaladie() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ; - - $diagnostics = $this->facture->consulterfacturediagnostics($idFacture); - - $this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics)); - } - - public function prestationactes() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $prestations = $this->facture->consulterfactureprestationactes($idFacture) ; - - $this->genererVueAjax(array('prestations' => $prestations)); - } - - public function medicaments() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $medicaments = $this->facture->consulterfacturemedicaments($idFacture) ; - - $this->genererVueAjax(array('medicaments' => $medicaments)); - } - - public function geds() - { - unset($_FILES['fichier_upload']); - - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $geds = $this->facture->getgedfacture($idFacture); - - $this->genererVueAjax(array('geds' => $geds)); - } - - public function verres() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $verres = $this->facture->consulterfactureverres($idFacture) ; - - $this->genererVueAjax(array('verres' => $verres)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfactureconsprestataire.php b/Controleur/ControleurAjaxfactureconsprestataire.php deleted file mode 100755 index 241aa8a..0000000 --- a/Controleur/ControleurAjaxfactureconsprestataire.php +++ /dev/null @@ -1,72 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $_SESSION['idFacture_C'] = $idFacture; - - $facture = $this->facture->consulterfacturefacture($idFacture) ; - - $this->genererVueAjax(array('facture' => $facture)); - } - - public function feuillemaladie() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $feuillemaladie = $this->facture->consulterfacturefeuillemaladie($idFacture) ; - - $diagnostics = $this->facture->consulterfacturediagnostics($idFacture); - - $this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'diagnostics' => $diagnostics)); - } - - public function prestationactes() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $prestations = $this->facture->consulterfactureprestationactes($idFacture) ; - - $this->genererVueAjax(array('prestations' => $prestations)); - } - - public function medicaments() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $medicaments = $this->facture->consulterfacturemedicaments($idFacture) ; - - $this->genererVueAjax(array('medicaments' => $medicaments)); - } - - public function geds() - { - unset($_FILES['fichier_upload']); - - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $geds = $this->facture->getgedfacture($idFacture); - - $this->genererVueAjax(array('geds' => $geds)); - } - - public function verres() - { - $idFacture = $this->requete->getParametreFormulaire("idFacture"); - - $verres = $this->facture->consulterfactureverres($idFacture) ; - - $this->genererVueAjax(array('verres' => $verres)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfacturerfeuillemaladie.php b/Controleur/ControleurAjaxfacturerfeuillemaladie.php deleted file mode 100755 index 38860d9..0000000 --- a/Controleur/ControleurAjaxfacturerfeuillemaladie.php +++ /dev/null @@ -1,20 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - } - - public function facturer() - { - $this->feuillemaladie->facturer(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfactures.php b/Controleur/ControleurAjaxfactures.php deleted file mode 100755 index 9ef80a2..0000000 --- a/Controleur/ControleurAjaxfactures.php +++ /dev/null @@ -1,22 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - $factures = $this->facture->getfactures($idBeneficiaire, $d1, $d2) ; - - $this->genererVueAjax(array('factures' => $factures)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfacturesfamille.php b/Controleur/ControleurAjaxfacturesfamille.php deleted file mode 100755 index def944b..0000000 --- a/Controleur/ControleurAjaxfacturesfamille.php +++ /dev/null @@ -1,22 +0,0 @@ -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)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfacturesfeuille.php b/Controleur/ControleurAjaxfacturesfeuille.php deleted file mode 100755 index eced291..0000000 --- a/Controleur/ControleurAjaxfacturesfeuille.php +++ /dev/null @@ -1,29 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - - $factures = $this->feuillemaladie->getfacturesfeuille($numeroFeuilleMaladie); - - $factures_total = null; - - if(count($factures)>"0") - { - $factures_total = $factures['0']; - } - - $this->genererVueAjax(array('factures' => $factures, 'factures_total' => $factures_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxfeuillemaladie.php b/Controleur/ControleurAjaxfeuillemaladie.php deleted file mode 100755 index ff0169c..0000000 --- a/Controleur/ControleurAjaxfeuillemaladie.php +++ /dev/null @@ -1,39 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - $this->prestation = new Prestationactes(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $garantieadherent_temp = null; - - $infosfeuillemaladie = $this->feuillemaladie->getinfosfeuillemaladie($numeroFeuilleMaladie); - $facture = $infosfeuillemaladie['facture']; - - $this->prestation->vider_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); - - if($facture==0) - { - $garantieadherent_temp = $this->prestation->init_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); - } - - $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); - - $prestations = $this->prestation->getprestationsfeuille($numeroFeuilleMaladie, $codePrestataire); - - $this->genererVueAjax(array('feuillemaladie' => $feuillemaladie, 'prestations' => $prestations, - 'garantieadherent_temp' => $garantieadherent_temp)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxged.php b/Controleur/ControleurAjaxged.php deleted file mode 100755 index 9335a30..0000000 --- a/Controleur/ControleurAjaxged.php +++ /dev/null @@ -1,34 +0,0 @@ -ged = new Ged(); - } - - public function index() { - // $this->genererVueAjax(array('reponse' => $reponse)); - $this->genererVueAjax(); - } - - public function verifierexistancefichier() - { - $cheminFichier = $this->requete->getParametreFormulaire("cheminFichier"); - - // modifié à cause de l'url distant chez le prestataire => remote_file_exists($url) - // if(file_exists($cheminFichier)) - if(remote_file_exists($cheminFichier)) - { - $reponse = "1"; - } else - { - $reponse = "0"; - } - - echo "$reponse"; - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxhistoriqueprestation.php b/Controleur/ControleurAjaxhistoriqueprestation.php deleted file mode 100755 index dd0cee5..0000000 --- a/Controleur/ControleurAjaxhistoriqueprestation.php +++ /dev/null @@ -1,90 +0,0 @@ -examen = new Examen(); - $this->prestationactes = new Prestationactes(); - $this->garantie = new Garantie(); - - } - - public function index() - { - /* - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $beneficiaire = $this->prestationactes->getInfoBeneficiaire($numeroBeneficiaire); - - $garanties = $this->garantie->getListePourActe(); - - $this->genererVueAjax(/*array('beneficiaire' => $beneficiaire, 'garanties' => $garanties)); - */ - $this->genererVueAjax(); - } - - public function prestations() - { - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - - //$_SESSION['numeroBeneficiaire'] = $numeroBeneficiaire; - - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - - $d1 = $this->requete->getParametreDate("d1"); - $d2 = $this->requete->getParametreDate("d2"); - - - $garanties = $this->garantie->getListePourActe(); - - $historiqueprestations = $this->prestationactes->gethistoriqueprestation($numeroAdherent, $codeGarantie, $d1, $d2); - - $totalprestations = $this->prestationactes->gettotalprestation($numeroAdherent, $codeGarantie, $d1, $d2); - - - $this->genererVueAjax(array('garanties' => $garanties,'historiqueprestations' => $historiqueprestations, - 'totalprestations' => $totalprestations)); - - } - - public function majquantite() - { - $idExamen = $this->requete->getParametre("idExamen"); - $quantite = $this->requete->getParametreFormulaire("quantite", "numerique"); - - $tm = intval($_SESSION['tm_C']); - - $this->examen->majquantite($idExamen, $quantite, $tm); - - $this->executerAction("index"); - } - - public function supprimer() - { - $idExamen = $this->requete->getParametre("idExamen"); - - $this->examen->supprimerexamen($idExamen); - - $this->examen->updateexamen($_SESSION['numeroFeuilleMaladie_C']); - - $this->executerAction("index"); - } - - - public function gettotalprestation($numeroBeneficiaire, $codeGarantie, $d1, $d2) - { - $sql = 'call sp_get_total_historique_prestation(?, ?, ?, ?);'; - - $resultat = $this->executerRequete($sql, array($numeroBeneficiaire, $codeGarantie, $d1, $d2)); - - return $resultat->fetch(PDO::FETCH_ASSOC); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxhistsupprempreinte.php b/Controleur/ControleurAjaxhistsupprempreinte.php deleted file mode 100755 index 3bd7537..0000000 --- a/Controleur/ControleurAjaxhistsupprempreinte.php +++ /dev/null @@ -1,21 +0,0 @@ -beneficiaire = new Beneficiaire(); - } - - public function index() - { - $debut = $this->requete->getParametreDate("debut"); - $fin = $this->requete->getParametreDate("fin"); - - $empreintesupprimers = $this->beneficiaire->gethistoempreintesupprimers($debut, $fin); - - $this->genererVueAjax(array('empreintesupprimers' => $empreintesupprimers)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaximprimerlimite.php b/Controleur/ControleurAjaximprimerlimite.php deleted file mode 100755 index e61f9cc..0000000 --- a/Controleur/ControleurAjaximprimerlimite.php +++ /dev/null @@ -1,88 +0,0 @@ -adherent = new Adherent(); - $this->garantieadherent = new Garantieadherent(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - - $adherent = $this->adherent->getContexteAdherentId($idAdherent); - $garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent); - $totalgarantieadherent = $this->garantieadherent->getTotalGarantieAdherent($idAdherent); - - $pdf = new FPDF(); - $pdf->AliasNbPages(); - $pdf->AddPage(); - - $ht=10; - - $pdf->SetMargins(10, 10, 10) ; - - $pdf->SetFont('Arial','BI', 9); - - $pdf->Cell(0,$ht,convertirc("RADIANT INSURANCE COMPANY : KIGALI"),0,1,'C',false); - - $pdf->SetFont('Arial','BIU', 9); - - $pdf->Cell(0,$ht,convertirc("LILITES DE LA FAMILLE"),0,1,'C',false); - - $pdf->SetFont('Arial','BI', 9); - - $pdf->Cell(30,$ht,convertirc("Nom Adhérent"),0,0,'C',false); - $pdf->Cell(50,$ht,convertirc(" : ".$adherent['nom']),0,0,'L',false); - - $pdf->Cell(40,$ht,convertirc("Prénoms Adhérent"),0,0,'C',false); - $pdf->Cell(60,$ht,convertirc(" : ".$adherent['prenoms']),0,1,'L',false); - - $pdf->SetFont('Arial','', 9); - - $pdf->Cell(0,$ht,convertirc('Edité le : '.heureCourante()),0,1,'R',false); - - $pdf->SetFont('Arial','BI', 9); - - $pdf->Cell(55,$ht,convertirc("Garantie"),1,0,'C',false); - $pdf->Cell(30,$ht,convertirc("Annuelles"),1,0,'C',false); - $pdf->Cell(15,$ht,convertirc("Taux(%)"),1,0,'C',false); - $pdf->Cell(30,$ht,convertirc("En vigeur"),1,0,'C',false); - $pdf->Cell(30,$ht,convertirc("Consommations"),1,0,'C',false); - $pdf->Cell(30,$ht,convertirc("Solde"),1,1,'C',false); - - $pdf->SetFont('Arial','', 9); - - foreach ($garantieadherents as $garantieadherent) - { - $pdf->Cell(55,$ht,convertirc($garantieadherent['garantie']),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($garantieadherent['plafondAnnuel']),1,0,'C',false); - $pdf->Cell(15,$ht,$garantieadherent['tauxAvenant'],1,0,'C',false); - $pdf->Cell(30,$ht,format_N($garantieadherent['plafond']),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($garantieadherent['consommation']),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($garantieadherent['solde']),1,1,'C',false); - } - - $pdf->SetFont('Arial','BI', 9); - - $pdf->Cell(55,$ht,convertirc("Totaux : "),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($totalgarantieadherent['plafondAnnuel']),1,0,'C',false); - $pdf->Cell(15,$ht,"",1,0,'C',false); - $pdf->Cell(30,$ht,format_N($totalgarantieadherent['plafond']),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($totalgarantieadherent['consommation']),1,0,'C',false); - $pdf->Cell(30,$ht,format_N($totalgarantieadherent['solde']),1,1,'C',false); - - $fichier="Temp/limites_famille"."_".uniqid().".pdf"; - $pdf->Output($fichier,"F"); - echo 'Télécharger le résultat : LIMITES DE LA FAMILLE'; - exit(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinfosbeneficiaire.php b/Controleur/ControleurAjaxinfosbeneficiaire.php deleted file mode 100755 index ff5921c..0000000 --- a/Controleur/ControleurAjaxinfosbeneficiaire.php +++ /dev/null @@ -1,86 +0,0 @@ -beneficiaire = new Beneficiaire(); - $this->police = new Police(); - $this->garantieadherent = new Garantieadherent(); - $this->adherent = new Adherent(); - - $this->garantie = new Garantie(); - - $_SESSION['modeDevis'] = "0"; - } - - public function index() - { - - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); - - $infos = $this->beneficiaire->getBeneficiaireNumeroId($numeroBeneficiaire); - - $idBeneficiaire = $infos['idBeneficiaire']; - //var_dump($idBeneficiaire); - - $dateJour = date('Y-m-d'); - - $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - $idPolice = $infos['idPolice']; - - $this->police->getContextePoliceId($idPolice); - $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $idAdherent = $infos['idAdherent']; - - $garantieadherents = $this->garantieadherent->getGarantieBeneficiaire($idBeneficiaire); - - $beneficiaire = $this->beneficiaire->getBeneficiaireId($idBeneficiaire); - - $_SESSION['dateEffetCouvert'] = $beneficiaire['dateEffetCouvert']; - - $this->adherent->getNbassure($idPolice); - - $adherent = $this->adherent->getContexteAdherentId($idAdherent); - $beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour); - $totalbeneficiaires = $this->beneficiaire->getTotalBeneficiairesId($idAdherent); - - $this->adherent->controlerplafondadherentannuel($idAdherent); - $_SESSION['controlerPlafondBeneficiaire'] = "0"; - - $limite_adherent = $this->garantieadherent->getSituationPolice($infos['idBeneficiaire']); - - $actes = $this->garantieadherent->getBaremePlafondAdherent($idAdherent, $idBeneficiaire); - - $police = $this->beneficiaire->getSituationPolice($idBeneficiaire); - - $college = $this->beneficiaire->getSituationCollege($idBeneficiaire); - - $baseTarification = $this->beneficiaire->getBaseTarificationBeneficiaire($idBeneficiaire); - - $garanties = $this->garantie->getListePourActe(); - - $this->genererVueAjax(array('beneficiaire' => $beneficiaire, 'garantieadherents' => $garantieadherents, - 'adherent' => $adherent, 'beneficiaires' => $beneficiaires, 'totalbeneficiaires' => $totalbeneficiaires, - 'limite_adherent' => $limite_adherent, 'actes' => $actes, 'police' => $police, 'college' => $college, - 'baseTarification' => $baseTarification, 'numeroBeneficiaire' => $numeroBeneficiaire, 'garanties' => $garanties)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinsererbaremeactecollege.php b/Controleur/ControleurAjaxinsererbaremeactecollege.php deleted file mode 100755 index eef91bc..0000000 --- a/Controleur/ControleurAjaxinsererbaremeactecollege.php +++ /dev/null @@ -1,85 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - } - - public function index() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $actes = $this->garantie->getActesGarantieBareme($idBaremePriseEnCharge,$codeGarantie); - - $this->genererVueAjax(array - ( - 'actes' => $actes - )); - - } - - public function ajouter() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $codeActe = $this->requete->getParametreFormulaire("codeActe"); - - $dateEffetActe = $this->requete->getParametreDate("dateEffetActe"); - $forfaitPlafondActeAdherent = $this->requete->getParametreFormulaire("forfaitPlafondActeAdherent"); - $codePeriodicitePlafondActeAdherent = $this->requete->getParametreFormulaire("codePeriodicitePlafondActeAdherent"); - $nbreTransactionActeAdherent = $this->requete->getParametreFormulaire("nbreTransactionActeAdherent"); - $codePeriodiciteActeAdherent = $this->requete->getParametreFormulaire("codePeriodiciteActeAdherent"); - $forfaitPlafondActe = $this->requete->getParametreFormulaire("forfaitPlafondActe"); - $codePeriodicitePlafondActe = $this->requete->getParametreFormulaire("codePeriodicitePlafondActe"); - $nbreTransactionActe = $this->requete->getParametreFormulaire("nbreTransactionActe"); - $codePeriodiciteActe = $this->requete->getParametreFormulaire("codePeriodiciteActe"); - $codeTypeRemboursementActe = $this->requete->getParametreFormulaire("codeTypeRemboursementActe"); - $delaiCarenceActe = $this->requete->getParametreFormulaire("delaiCarenceActe"); - $ticketModerateurActe = $this->requete->getParametreFormulaire("ticketModerateurActe"); - $ageMinimumActe = $this->requete->getParametreFormulaire("ageMinimumActe"); - $ageMaximumActe = $this->requete->getParametreFormulaire("ageMaximumActe"); - $actifActe = $this->requete->getParametreFormulaire("actifActe"); - - $forfaitTmActe = $this->requete->getParametreFormulaire("forfaitTmActe"); - - $this->garantie->insererActeBareme($idBaremePriseEnCharge,$codeGarantie,$codeActe,$dateEffetActe,$forfaitPlafondActeAdherent, - $codePeriodicitePlafondActeAdherent,$nbreTransactionActeAdherent,$codePeriodiciteActeAdherent,$forfaitPlafondActe, - $codePeriodicitePlafondActe,$nbreTransactionActe,$codePeriodiciteActe,$codeTypeRemboursementActe,$delaiCarenceActe, - $ticketModerateurActe,$ageMinimumActe,$ageMaximumActe,$actifActe, $forfaitTmActe); - - - } - - public function controle() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - $codeActe = $this->requete->getParametreFormulaire("codeActe"); - - $maxDateEffetActeBareme = $this->garantie->getMaxDateEffetActeBareme($idBaremePriseEnCharge,$codeGarantie,$codeActe); - - $this->genererVueAjax(array - ( - 'maxDateEffetActeBareme' => $maxDateEffetActeBareme - )); - - - } - - public function supprimer() - { - $idActe = $this->requete->getParametreFormulaire("idActe"); - - $this->garantie->supprimerActeBareme($idActe); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinsererbaremeactelienparentecollege.php b/Controleur/ControleurAjaxinsererbaremeactelienparentecollege.php deleted file mode 100755 index 74ee0aa..0000000 --- a/Controleur/ControleurAjaxinsererbaremeactelienparentecollege.php +++ /dev/null @@ -1,88 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - } - - public function index() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $acteslienparente = $this->garantie->getActesGarantieBaremeLienParente($idBaremePriseEnCharge,$codeGarantie); - - - $this->genererVueAjax(array - ( - 'acteslienparente' => $acteslienparente - )); - - } - - public function ajouter() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $codeActeLienParente = $this->requete->getParametreFormulaire("codeActeLienParente"); - - $dateEffetActeLienParente = $this->requete->getParametreDate("dateEffetActeLienParente"); - - $codeLienParenteActeLienParente = $this->requete->getParametreFormulaire("codeLienParenteActeLienParente"); - - $forfaitPlafondActeLienParente = $this->requete->getParametreFormulaire("forfaitPlafondActeLienParente"); - $codePeriodicitePlafondActeLienParente = $this->requete->getParametreFormulaire("codePeriodicitePlafondActeLienParente"); - $nbreTransactionActeLienParente = $this->requete->getParametreFormulaire("nbreTransactionActeLienParente"); - $codePeriodiciteActeLienParente = $this->requete->getParametreFormulaire("codePeriodiciteActeLienParente"); - - $codeTypeRemboursementActeLienParente = $this->requete->getParametreFormulaire("codeTypeRemboursementActeLienParente"); - $delaiCarenceActeLienParente = $this->requete->getParametreFormulaire("delaiCarenceActeLienParente"); - $ticketModerateurActeLienParente = $this->requete->getParametreFormulaire("ticketModerateurActeLienParente"); - $ageMinimumActeLienParente = $this->requete->getParametreFormulaire("ageMinimumActeLienParente"); - $ageMaximumActeLienParente = $this->requete->getParametreFormulaire("ageMaximumActeLienParente"); - $actifActeLienParente = $this->requete->getParametreFormulaire("actifActeLienParente"); - - $forfaitTmActeLienParente = $this->requete->getParametreFormulaire("forfaitTmActeLienParente"); - - - $this->garantie->insererActeBaremeLienParente($idBaremePriseEnCharge,$codeGarantie,$codeActeLienParente,$dateEffetActeLienParente,$codeLienParenteActeLienParente, - $forfaitPlafondActeLienParente,$codePeriodicitePlafondActeLienParente,$nbreTransactionActeLienParente,$codePeriodiciteActeLienParente,$codeTypeRemboursementActeLienParente, - $delaiCarenceActeLienParente,$ticketModerateurActeLienParente,$ageMinimumActeLienParente,$ageMaximumActeLienParente,$actifActeLienParente, $forfaitTmActeLienParente); - - - } - - public function controle() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - $codeActeLienParente = $this->requete->getParametreFormulaire("codeActeLienParente"); - $codeLienParenteActeLienParente = $this->requete->getParametreFormulaire("codeLienParenteActeLienParente"); - - $maxDateEffetActeBaremeLienParente = $this->garantie->getMaxDateEffetActeBaremeLienParente($idBaremePriseEnCharge,$codeGarantie,$codeActeLienParente,$codeLienParenteActeLienParente); - - $this->genererVueAjax(array - ( - 'maxDateEffetActeBaremeLienParente' => $maxDateEffetActeBaremeLienParente - )); - - - } - - public function supprimer() - { - $idActe = $this->requete->getParametreFormulaire("idActe"); - - $this->garantie->supprimerActeBaremeLienparente($idActe); - - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinsererbaremegarantiecollege.php b/Controleur/ControleurAjaxinsererbaremegarantiecollege.php deleted file mode 100755 index a4999ac..0000000 --- a/Controleur/ControleurAjaxinsererbaremegarantiecollege.php +++ /dev/null @@ -1,73 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - } - - public function index() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $familleacte = $this->garantie->getFamilleActeGarantieBareme($idBaremePriseEnCharge,$codeGarantie); - - $maxDateEffetGarantie = $this->garantie->getMaxDateEffetGarantie($idBaremePriseEnCharge,$codeGarantie); - - - $this->genererVueAjax(array - ( - 'familleacte' => $familleacte, - 'maxDateEffetGarantie' => $maxDateEffetGarantie - )); - - } - - public function ajouter() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $dateEffetGarantie = $this->requete->getParametreDate("dateEffetGarantie"); - $forfaitPlafondGarantieAdherent = $this->requete->getParametreFormulaire("forfaitPlafondGarantieAdherent"); - $codePeriodicitePlafondGarantieAdherent = $this->requete->getParametreFormulaire("codePeriodicitePlafondGarantieAdherent"); - $nbreTransactionGarantieAdherent = $this->requete->getParametreFormulaire("nbreTransactionGarantieAdherent"); - $codePeriodiciteGarantieAdherent = $this->requete->getParametreFormulaire("codePeriodiciteGarantieAdherent"); - $forfaitPlafondGarantie = $this->requete->getParametreFormulaire("forfaitPlafondGarantie"); - $codePeriodicitePlafondGarantie = $this->requete->getParametreFormulaire("codePeriodicitePlafondGarantie"); - $nbreTransactionGarantie = $this->requete->getParametreFormulaire("nbreTransactionGarantie"); - $codePeriodiciteGarantie = $this->requete->getParametreFormulaire("codePeriodiciteGarantie"); - //$codeObservationFamilleActe = $this->requete->getParametreFormulaire("codeObservationFamilleActe"); - $codeTypeRemboursement = $this->requete->getParametreFormulaire("codeTypeRemboursement"); - $delaiCarenceFamilleActe = $this->requete->getParametreFormulaire("delaiCarenceFamilleActe"); - $ticketModerateurFamilleActe = $this->requete->getParametreFormulaire("ticketModerateurFamilleActe"); - $ageMinimumFamilleActe = $this->requete->getParametreFormulaire("ageMinimumFamilleActe"); - $ageMaximumFamilleActe = $this->requete->getParametreFormulaire("ageMaximumFamilleActe"); - $actifFamilleActe = $this->requete->getParametreFormulaire("actifFamilleActe"); - - $forfaitTmGarantie = $this->requete->getParametreFormulaire("forfaitTmGarantie"); - - - $this->garantie->insererGarantieBareme($idBaremePriseEnCharge,$codeGarantie,$dateEffetGarantie,$forfaitPlafondGarantieAdherent, - $codePeriodicitePlafondGarantieAdherent,$nbreTransactionGarantieAdherent,$codePeriodiciteGarantieAdherent,$forfaitPlafondGarantie, - $codePeriodicitePlafondGarantie,$nbreTransactionGarantie,$codePeriodiciteGarantie,$codeTypeRemboursement,$delaiCarenceFamilleActe, - $ticketModerateurFamilleActe,$ageMinimumFamilleActe,$ageMaximumFamilleActe,$actifFamilleActe,$forfaitTmGarantie); - - - } - - public function supprimer() - { - $idGarantie = $this->requete->getParametreFormulaire("idGarantie"); - - $this->garantie->supprimerGarantieBareme($idGarantie); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinsererbaremegarantielienparentecollege.php b/Controleur/ControleurAjaxinsererbaremegarantielienparentecollege.php deleted file mode 100755 index b3f8f0d..0000000 --- a/Controleur/ControleurAjaxinsererbaremegarantielienparentecollege.php +++ /dev/null @@ -1,83 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - } - - public function index() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $garantielienparente = $this->garantie->getGarantieLienParenteBareme($idBaremePriseEnCharge,$codeGarantie); - - - $this->genererVueAjax(array - ( - 'garantielienparente' => $garantielienparente - )); - - } - - public function ajouter() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $dateEffetGarantieLienParente = $this->requete->getParametreDate("dateEffetGarantieLienParente"); - $codeLienParente = $this->requete->getParametreFormulaire("codeLienParente"); - $forfaitPlafondGarantieLienParente = $this->requete->getParametreFormulaire("forfaitPlafondGarantieLienParente"); - $codePeriodicitePlafondGarantieLienParente = $this->requete->getParametreFormulaire("codePeriodicitePlafondGarantieLienParente"); - $nbreTransactionGarantieLienParente = $this->requete->getParametreFormulaire("nbreTransactionGarantieLienParente"); - $codePeriodiciteGarantieLienParente = $this->requete->getParametreFormulaire("codePeriodiciteGarantieLienParente"); - - //$codeObservationFamilleActeLienParente = $this->requete->getParametreFormulaire("codeObservationFamilleActeLienParente"); - - $codeTypeRemboursementLienParente = $this->requete->getParametreFormulaire("codeTypeRemboursementLienParente"); - - $delaiCarenceFamilleActeLienParente = $this->requete->getParametreFormulaire("delaiCarenceFamilleActeLienParente"); - $ticketModerateurFamilleActeLienParente = $this->requete->getParametreFormulaire("ticketModerateurFamilleActeLienParente"); - $ageMinimumFamilleActeLienParente = $this->requete->getParametreFormulaire("ageMinimumFamilleActeLienParente"); - $ageMaximumFamilleActeLienParente = $this->requete->getParametreFormulaire("ageMaximumFamilleActeLienParente"); - $actifFamilleActeLienParente = $this->requete->getParametreFormulaire("actifFamilleActeLienParente"); - - $forfaitTmGarantieLienParente = $this->requete->getParametreFormulaire("forfaitTmGarantieLienParente"); - - - $this->garantie->insererGarantieBaremeLienparente($idBaremePriseEnCharge,$codeGarantie,$dateEffetGarantieLienParente,$codeLienParente,$forfaitPlafondGarantieLienParente, - $codePeriodicitePlafondGarantieLienParente,$nbreTransactionGarantieLienParente,$codePeriodiciteGarantieLienParente,$codeTypeRemboursementLienParente, - $delaiCarenceFamilleActeLienParente,$ticketModerateurFamilleActeLienParente,$ageMinimumFamilleActeLienParente,$ageMaximumFamilleActeLienParente,$actifFamilleActeLienParente, - $forfaitTmGarantieLienParente); - - } - - public function controle() - { - $codeGarantie = $this->requete->getParametreFormulaire("codeGarantie"); - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - $codeLienParente = $this->requete->getParametreFormulaire("codeLienParente"); - - $maxDateEffetGarantieLienParente = $this->garantie->getMaxDateEffetGarantieLienparente($idBaremePriseEnCharge,$codeGarantie,$codeLienParente); - - $this->genererVueAjax(array - ( - 'maxDateEffetGarantieLienParente' => $maxDateEffetGarantieLienParente - )); - } - - public function supprimer() - { - $idGarantie = $this->requete->getParametreFormulaire("idGarantie"); - - $this->garantie->supprimerGarantieBaremeLienparente($idGarantie); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxinsererdetailbaremecollege.php b/Controleur/ControleurAjaxinsererdetailbaremecollege.php deleted file mode 100755 index 8718968..0000000 --- a/Controleur/ControleurAjaxinsererdetailbaremecollege.php +++ /dev/null @@ -1,48 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - - } - - public function index() - { - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $maxDateEffetBareme = $this->garantie->getMaxDateEffetBareme($idBaremePriseEnCharge); - - $detailbareme = $this->garantie->getDetailBareme($idBaremePriseEnCharge); - - $this->genererVueAjax(array - ( - 'maxDateEffetBareme' => $maxDateEffetBareme, - 'detailbareme' => $detailbareme - )); - - } - - public function ajouter() - { - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("idBaremePriseEnCharge"); - - $dateEffetBareme = $this->requete->getParametreDate("dateEffetBareme"); - $ticketModerateurBareme = $this->requete->getParametreFormulaire("ticketModerateurBareme"); - - $this->garantie->insererBareme($idBaremePriseEnCharge, $dateEffetBareme, $ticketModerateurBareme); - } - - public function supprimer() - { - $idDetail = $this->requete->getParametreFormulaire("idDetail"); - - $this->garantie->supprimerBareme($idDetail); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlienparente.php b/Controleur/ControleurAjaxlienparente.php deleted file mode 100755 index 2613fb1..0000000 --- a/Controleur/ControleurAjaxlienparente.php +++ /dev/null @@ -1,24 +0,0 @@ -remboursement = new Remboursement(); - } - - public function index() - { - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - $lienParente = $this->remboursement->getLienParenteBeneficaire($numeroBeneficiaire); - - - $this->genererVueAjax(array('lienParente' => $lienParente)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlisteged.php b/Controleur/ControleurAjaxlisteged.php deleted file mode 100755 index ba56d23..0000000 --- a/Controleur/ControleurAjaxlisteged.php +++ /dev/null @@ -1,24 +0,0 @@ -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->getged($d1, $d2, $nomOrigine); - - $this->genererVueAjax(array('geds' => $geds)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedadherent.php b/Controleur/ControleurAjaxlistegedadherent.php deleted file mode 100755 index 72e131b..0000000 --- a/Controleur/ControleurAjaxlistegedadherent.php +++ /dev/null @@ -1,24 +0,0 @@ -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->getgedadherent($d1, $d2, $nomOrigine); - - $this->genererVueAjax(array('geds' => $geds)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedbeneficiaire.php b/Controleur/ControleurAjaxlistegedbeneficiaire.php deleted file mode 100755 index 8a6461b..0000000 --- a/Controleur/ControleurAjaxlistegedbeneficiaire.php +++ /dev/null @@ -1,24 +0,0 @@ -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->getgedbeneficiaireprest($d1, $d2, $nomOrigine); - - $this->genererVueAjax(array('geds' => $geds)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedbeneficiaireprest.php b/Controleur/ControleurAjaxlistegedbeneficiaireprest.php deleted file mode 100755 index d493a40..0000000 --- a/Controleur/ControleurAjaxlistegedbeneficiaireprest.php +++ /dev/null @@ -1,24 +0,0 @@ -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->getgedbeneficiaireprest($d1, $d2, $nomOrigine); - - $this->genererVueAjax(array('geds' => $geds)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedfeuillemaladie.php b/Controleur/ControleurAjaxlistegedfeuillemaladie.php deleted file mode 100755 index 38d5286..0000000 --- a/Controleur/ControleurAjaxlistegedfeuillemaladie.php +++ /dev/null @@ -1,24 +0,0 @@ -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->getgedfeuillemaladie($d1, $d2, $nomOrigine); - - $this->genererVueAjax(array('geds' => $geds)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistegedpharmacie.php b/Controleur/ControleurAjaxlistegedpharmacie.php deleted file mode 100755 index e97be01..0000000 --- a/Controleur/ControleurAjaxlistegedpharmacie.php +++ /dev/null @@ -1,116 +0,0 @@ -ged = new Ged(); - } - - public function index($msgErreur=null) - { - unset($_FILES['fichier_upload']); - $geds = $this->ged->getgedpharmacie(); - $this->genererVueAjax(array('geds' => $geds)); - } - - public function chargerged($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->enregistrergedfeuillemaladie($nomOrigine, $nouveau_fichier, $taille); - $this->ged->enregistrergedpharmacie($nomOrigine, $nouveau_fichier, $taille); - } - 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; - $this->rediriger("Pharmacien"); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistemedecins.php b/Controleur/ControleurAjaxlistemedecins.php deleted file mode 100755 index 9042512..0000000 --- a/Controleur/ControleurAjaxlistemedecins.php +++ /dev/null @@ -1,28 +0,0 @@ -medecin = new Medecin(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $codePrestataire = $_SESSION['codePrestataire_C']; - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - $noOrdreMedecin = $this->requete->getParametreFormulaire("noOrdreMedecin"); - - $mdedecins_pop = $this->medecin->getmedeconspossibles($codePrestataire, $nomsearch, $noOrdreMedecin); - } - else - { - $mdedecins_pop = $this->medecin->getmedecinsvide(); - } - $this->genererVueAjax(array('mdedecins_pop' => $mdedecins_pop, 'nomsearch' => $nomsearch, 'noOrdreMedecin' => $noOrdreMedecin)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistemedecinsrequete.php b/Controleur/ControleurAjaxlistemedecinsrequete.php deleted file mode 100755 index de5af69..0000000 --- a/Controleur/ControleurAjaxlistemedecinsrequete.php +++ /dev/null @@ -1,28 +0,0 @@ -medecin = new Medecin(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $codePrestataire = $_SESSION['codePrestataire_C']; - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - $noOrdreMedecin = $this->requete->getParametreFormulaire("noOrdreMedecin"); - - $mdedecins_pop = $this->medecin->getmedeconspossibles($codePrestataire, $nomsearch, $noOrdreMedecin); - } - else - { - $mdedecins_pop = $this->medecin->getmedecinsvide(); - } - $this->genererVueAjax(array('mdedecins_pop' => $mdedecins_pop, 'nomsearch' => $nomsearch, 'noOrdreMedecin' => $noOrdreMedecin)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistemedicaments.php b/Controleur/ControleurAjaxlistemedicaments.php deleted file mode 100755 index a740348..0000000 --- a/Controleur/ControleurAjaxlistemedicaments.php +++ /dev/null @@ -1,28 +0,0 @@ -medicament = new Detailtarifmedicament(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - - $mdedicaments_pop = $this->medicament->getmedicamentspossibles($nomsearch); - } - else - { - $mdedicaments_pop = $this->medicament->getmedicamentvide(); - } - - $this->genererVueAjax(array('mdedicaments_pop' => $mdedicaments_pop, 'nomsearch' => $nomsearch)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistemedicamentspha.php b/Controleur/ControleurAjaxlistemedicamentspha.php deleted file mode 100755 index 4f7dad0..0000000 --- a/Controleur/ControleurAjaxlistemedicamentspha.php +++ /dev/null @@ -1,38 +0,0 @@ -medicament = new Detailtarifmedicament(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - - $mdedicaments_pop = $this->medicament->getmedicamentspossibles($nomsearch); - } - else - { - $mdedicaments_pop = $this->medicament->getmedicamentvide(); - } - - $this->genererVueAjax(array('mdedicaments_pop' => $mdedicaments_pop, 'nomsearch' => $nomsearch)); - } - - public function creermedicament() - { - $nomMedicament = $this->requete->getParametreFormulaire("libelleMedicament"); - $prixMedicament = $this->requete->getParametreFormulaire("prixMedicament", "numerique"); - $qteMedicament = $this->requete->getParametreFormulaire("qteMedicament", "numerique"); - - $this->medicament->creermedicament($nomMedicament, $prixMedicament, $qteMedicament); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlistemessagerie.php b/Controleur/ControleurAjaxlistemessagerie.php deleted file mode 100755 index 4f768d3..0000000 --- a/Controleur/ControleurAjaxlistemessagerie.php +++ /dev/null @@ -1,44 +0,0 @@ -messagerie = new Messagerie(); - } - - public function index() - { - $codePrestataire = $_SESSION['codePrestataire_C']; - - $date1 = $this->requete->getParametreDate("date1"); - $date2 = $this->requete->getParametreDate("date2"); - - $messageLu = $this->requete->getParametreFormulaire("messageLu"); - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - - $_SESSION['d1_C'] = $date1; - $_SESSION['d2_C'] = $date2; - - $messages = $this->messagerie->getmessages($codePrestataire, $date1, $date2, $messageLu, $textMessage) ; - - $messages_commun = $this->messagerie->getmessagescommun($date1, $date2); - - $this->genererVueAjax(array('messages' => $messages, 'messages_commun' => $messages_commun)); - - } - - public function repondremessage() - { - $idMessagerie = $this->requete->getParametreFormulaire("idMessagerie"); - $idParent = $this->requete->getParametreFormulaire("idParent"); - - $this->messagerie->repondremessage($idMessagerie, $idParent); - - // $this->executerAction("index"); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlisteprestataireparametrage.php b/Controleur/ControleurAjaxlisteprestataireparametrage.php deleted file mode 100755 index 88bcaf5..0000000 --- a/Controleur/ControleurAjaxlisteprestataireparametrage.php +++ /dev/null @@ -1,44 +0,0 @@ -prestataire = new Prestataire(); - } - - public function index() - { - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - $codeReseau = $this->requete->getParametreFormulaire("codeReseau"); - $libelle = $this->requete->getParametreFormulaire("libelle"); - - $codePays = $this->requete->getParametreFormulaire("codePays"); - $codeVille = $this->requete->getParametreFormulaire("codeVille"); - $codeLocalite = $this->requete->getParametreFormulaire("codeLocalite"); - - $prestataires = $this->prestataire->getprestataireparametrage($codeTypePrestataire, $codeReseau, $libelle, - $codePays, $codeVille, $codeLocalite) ; - - $this->genererVueAjax(array('prestataires' => $prestataires)); - } - - public function prestatairesactifs() - { - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - $codeReseau = $this->requete->getParametreFormulaire("codeReseau"); - $libelle = $this->requete->getParametreFormulaire("libelle"); - - $codePays = $this->requete->getParametreFormulaire("codePays"); - $codeVille = $this->requete->getParametreFormulaire("codeVille"); - $codeLocalite = $this->requete->getParametreFormulaire("codeLocalite"); - - $prestataires = $this->prestataire->getprestataireparametrageactif($codeTypePrestataire, $codeReseau, $libelle, - $codePays, $codeVille, $codeLocalite) ; - - $this->genererVueAjax(array('prestataires' => $prestataires)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlisteprestataires.php b/Controleur/ControleurAjaxlisteprestataires.php deleted file mode 100755 index 9fafda0..0000000 --- a/Controleur/ControleurAjaxlisteprestataires.php +++ /dev/null @@ -1,29 +0,0 @@ -prestataire = new Prestataire(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - $codePrestataire = $this->requete->getParametreFormulaire("codesearch"); - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $prestataires_pop = $this->prestataire->getprestatairelike($codePrestataire, $nomsearch); - } - else - { - $prestataires_pop = $this->prestataire->getprestatairesvide(); - } - $this->genererVueAjax(array('prestataires_pop' => $prestataires_pop, 'nomsearch' => $nomsearch, 'codePrestataire' => $codePrestataire)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlisteprestatairesb.php b/Controleur/ControleurAjaxlisteprestatairesb.php deleted file mode 100755 index 77739a6..0000000 --- a/Controleur/ControleurAjaxlisteprestatairesb.php +++ /dev/null @@ -1,29 +0,0 @@ -prestataire = new Prestataire(); - } - - public function index($nomsearch="") - { - if ($this->requete->existeParametre("valid")) - { - $nomsearch = $this->requete->getParametreFormulaire("nomsearch"); - $codePrestataire = $this->requete->getParametreFormulaire("codesearch"); - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $prestataires_pop = $this->prestataire->getprestatairelike($codePrestataire, $nomsearch); - } - else - { - $prestataires_pop = $this->prestataire->getprestatairesvide(); - } - $this->genererVueAjax(array('prestataires_pop' => $prestataires_pop, 'nomsearch' => $nomsearch, 'codePrestataire' => $codePrestataire)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxlocalite.php b/Controleur/ControleurAjaxlocalite.php deleted file mode 100755 index 92b0c9b..0000000 --- a/Controleur/ControleurAjaxlocalite.php +++ /dev/null @@ -1,31 +0,0 @@ -requete->getSession()->getAttribut('codeSociete'); - - $codePays = $this->requete->getParametreFormulaire("codePays"); - $codeVille = $this->requete->getParametreFormulaire("codeVille"); - - $listelocalite = (new Localite())->getListe($codePays, $codeVille); - $this->genererVueAjax(array('listelocalite' => $listelocalite)); - } - - public function consultation() - { - $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); - - $codePays = $this->requete->getParametreFormulaire("codePays"); - $codeVille = $this->requete->getParametreFormulaire("codeVille"); - - $listelocalite = (new Localite())->getListe($codePays, $codeVille); - $this->genererVueAjax(array('listelocalite' => $listelocalite)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmailattente.php b/Controleur/ControleurAjaxmailattente.php deleted file mode 100755 index 8dc570f..0000000 --- a/Controleur/ControleurAjaxmailattente.php +++ /dev/null @@ -1,150 +0,0 @@ -envoimail = new Envoimail(); - } - - public function index() - { - } - - public function ajouter() - { - $typeMail = $this->requete->getParametreFormulaire("typeMail"); - - if ($typeMail == 'mailhospitalisation') - { - $numeroBon = $this->requete->getParametreFormulaire("numeroBon"); - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - - $this->envoimail->ajoutermailhospitalisation($typeMail, $numeroBon, $numeroFeuilleMaladie); - } - - if ($typeMail == 'mailfacturationfeuillemaladie') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - - $this->envoimail->ajoutermailfacturationfeuillemaladie($typeMail, $numeroFeuilleMaladie); - } - - if ($typeMail == 'mailpharmacie') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - - $this->envoimail->ajoutermailpharmacie($typeMail, $numeroFeuilleMaladie, $codePrestataire); - } - - if ($typeMail == 'maillabo') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - - $this->envoimail->ajoutermaillabo($typeMail, $numeroFeuilleMaladie, $codePrestataire); - } - - if ($typeMail == 'mailkine') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - - $this->envoimail->ajoutermailkine($typeMail, $numeroFeuilleMaladie, $codePrestataire); - } - - if ($typeMail == 'mailoptique') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - - $this->envoimail->ajoutermailoptique($typeMail, $numeroFeuilleMaladie, $codePrestataire); - } - - if ($typeMail == 'mailcommandebon') - { - $codeTypeBon = $this->requete->getParametreFormulaire("codeTypeBon"); - $quantite = $this->requete->getParametreFormulaire("quantite"); - $prestataire = $this->requete->getParametreFormulaire("prestataire"); - - $this->envoimail->ajoutermailcommandebon($typeMail, $codeTypeBon, $quantite, $prestataire); - } - - if ($typeMail == 'mailreceptionbon') - { - $codeTypeBon = $this->requete->getParametreFormulaire("codeTypeBon"); - $noDepart = $this->requete->getParametreFormulaire("noDepart"); - $noFin = $this->requete->getParametreFormulaire("noFin"); - $prestataire = $this->requete->getParametreFormulaire("prestataire"); - - $this->envoimail->ajoutermailreceptionbon($typeMail, $codeTypeBon, $noDepart, $noFin, $prestataire); - } - - if ($typeMail == 'maildemandeannulationbon') - { - $idBon = $this->requete->getParametreFormulaire("idBon"); - - $this->envoimail->ajoutermaildemandeannulationbon($typeMail, $idBon); - } - - if ($typeMail == 'maildemandederogation') - { - $codeDerogation = $this->requete->getParametreFormulaire("codeDerogation"); - $observations = $this->requete->getParametreFormulaire("observations"); - $prestataire = $this->requete->getParametreFormulaire("prestataire"); - $idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire"); - - $this->envoimail->ajoutermaildemandederogation($typeMail, $codeDerogation, $observations, $prestataire, $idBeneficiaire); - } - - - if ($typeMail == 'mailfraudeidentite') - { - $idBeneficiaire = $this->requete->getParametreFormulaire("idBeneficiaire"); - $prestataire = $this->requete->getParametreFormulaire("prestataire"); - - $this->envoimail->ajoutermailfraudeidentite($typeMail, $idBeneficiaire, $prestataire); - } - - if ($typeMail == 'mailententeprealable') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codeActe = $this->requete->getParametreFormulaire("codeActe"); - - $this->envoimail->ajoutermailententeprealable($typeMail, $numeroFeuilleMaladie, $codeActe); - } - - if ($typeMail == 'mailautorisation') - { - $numeroFeuilleMaladie = $this->requete->getParametreFormulaire("numeroFeuilleMaladie"); - $codeActe = $this->requete->getParametreFormulaire("codeActe"); - - $this->envoimail->ajoutermailautorisation($typeMail, $numeroFeuilleMaladie, $codeActe); - } - - if ($typeMail == 'mailententeprealablepha') - { - $idMedicament = $this->requete->getParametreFormulaire("idMedicament"); - - $this->envoimail->ajoutermailententeprealablepha($typeMail, $idMedicament); - } - - if ($typeMail == 'mailententeprealableopt') - { - $idOptique = $this->requete->getParametreFormulaire("idOptique"); - - $this->envoimail->ajoutermailententeprealableopt($typeMail, $idOptique); - } - - if ($typeMail == 'mailententeprealablemont') - { - $idOptique = $this->requete->getParametreFormulaire("idOptique"); - - $this->envoimail->ajoutermailententeprealablemont($typeMail, $idOptique); - } - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmessagerie.php b/Controleur/ControleurAjaxmessagerie.php deleted file mode 100755 index 0f89393..0000000 --- a/Controleur/ControleurAjaxmessagerie.php +++ /dev/null @@ -1,83 +0,0 @@ -messagerie = new Messagerie(); - } - - public function index() - { - // Ajout du 26/10/2024 => déconnecter si session expirée - $deconnexion='0'; - $dureeSession = (isset($_SESSION['dureeSession'])) ? $_SESSION['dureeSession'] : 10; - $session_expiree = session_expiree($dureeSession); - if($session_expiree) - { - session_destroy(); - $deconnexion='1'; - } - - /* - var_dump - ( - array - ( - "session_expiree" => $session_expiree, - "time" => time(), - "dureeSession" => $_SESSION['dureeSession'], - "derniere_action" => $_SESSION['derniere_action'], - "codeSociete" => $_SESSION['codeSociete'], - "dureeSession*60" => $_SESSION['dureeSession']*60, - "time() - derniere_action" => time() - $_SESSION['derniere_action'] - ) - ); - */ - - if (!isset($_SESSION['codeSociete'])) - { - $deconnexion='1'; - } - - $_SESSION['deconnexion'] = $deconnexion; - - $this->genererVueAjax(array('deconnexion' => $deconnexion)); - - /* - $nbMessagesNonLus = $this->messagerie->countmessagesnonlus(); - - $this->genererVueAjax(array('nbMessagesNonLus' => $nbMessagesNonLus, - 'deconnexion' => $deconnexion)); - */ - } - - public function creermessage() - { - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - $idParent = $this->requete->getParametreFormulaire("idParent"); - - $this->messagerie->creermessage($textMessage, $idParent); - } - - public function marquercommelu() - { - $idMessagerie = $this->requete->getParametreFormulaire("idMessagerie"); - - // $this->messagerie->marquercommelu($idMessagerie); - $this->messagerie->marquercommeluser($idMessagerie); - } - - - public function repondremessage() - { - $idMessagerie = $this->requete->getParametreFormulaire("idMessagerie"); - $idParent = $this->requete->getParametreFormulaire("idParent"); - $textMessage = $this->requete->getParametreFormulaire("textMessage"); - - $this->messagerie->repondremessage($idMessagerie, $idParent, $textMessage); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmessageriehistorique.php b/Controleur/ControleurAjaxmessageriehistorique.php deleted file mode 100755 index c433cc7..0000000 --- a/Controleur/ControleurAjaxmessageriehistorique.php +++ /dev/null @@ -1,21 +0,0 @@ -messagerie = new Messagerie(); - } - - public function index() - { - $idParent = $this->requete->getParametreFormulaire("idParent"); - - $messages = $this->messagerie->getmessageriehistorique($idParent) ; - - $this->genererVueAjax(array('messages' => $messages)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmessagerieliste.php b/Controleur/ControleurAjaxmessagerieliste.php deleted file mode 100755 index bec168a..0000000 --- a/Controleur/ControleurAjaxmessagerieliste.php +++ /dev/null @@ -1,38 +0,0 @@ -messagerie = new Messagerie(); - } - - public function index() - { - $messagesnonlus = $this->messagerie->getmessagesnonlus(); - - $this->genererVueAjax(array('messagesnonlus' => $messagesnonlus)); - } - - public function marquercommelu() - { - $idMessagerie = $this->requete->getParametreFormulaire("idMessagerie"); - - // $this->messagerie->marquercommelu($idMessagerie); - $this->messagerie->marquercommeluser($idMessagerie); - - // $this->executerAction("index"); - } - - public function derniermessage() - { - // $derniermessage = $this->messagerie->getderniermessagenonlu(); - - $derniermessage = $this->messagerie->getderniermessagenonluuser(); - - $this->genererVueAjax(array('derniermessage' => $derniermessage)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmessagerienew.php b/Controleur/ControleurAjaxmessagerienew.php deleted file mode 100755 index 1ce198c..0000000 --- a/Controleur/ControleurAjaxmessagerienew.php +++ /dev/null @@ -1,16 +0,0 @@ -genererVueAjax(); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxmessageriereponse.php b/Controleur/ControleurAjaxmessageriereponse.php deleted file mode 100755 index 9004a33..0000000 --- a/Controleur/ControleurAjaxmessageriereponse.php +++ /dev/null @@ -1,24 +0,0 @@ -messagerie = new Messagerie(); - } - - public function index() - { - $idMessagerie = $this->requete->getParametreFormulaire("idMessagerie"); - $idParent = $this->requete->getParametreFormulaire("idParent"); - - $message_reponse = $this->messagerie->getmessageriesimple($idMessagerie, $idParent) ; - - $this->genererVueAjax(array('message_reponse' => $message_reponse)); - - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxnbrelignebaremecollege.php b/Controleur/ControleurAjaxnbrelignebaremecollege.php deleted file mode 100755 index 93d274e..0000000 --- a/Controleur/ControleurAjaxnbrelignebaremecollege.php +++ /dev/null @@ -1,63 +0,0 @@ -garantie = new Garantiesbaremepriseencharge(); - } - - public function index() - { - - $this->genererVueAjax(); - } - - - public function garantiesbaremepriseencharge() - { - $table = $this->requete->getParametreFormulaire("table"); - - $nbgarantie = $this->garantie->getNbreLigneBareme($table); - - $this->genererVueAjax(array('nbgarantie'=>$nbgarantie)); - } - - public function garantiesbaremepriseenchargelienparente() - { - $table = $this->requete->getParametreFormulaire("table"); - - $nbgarantieLien = $this->garantie->getNbreLigneBareme($table); - - $this->genererVueAjax(array('nbgarantieLien'=>$nbgarantieLien)); - } - - public function actesbaremepriseencharge() - { - $table = $this->requete->getParametreFormulaire("table"); - - $nbacte = $this->garantie->getNbreLigneBareme($table); - - $this->genererVueAjax(array('nbacte'=>$nbacte)); - } - - public function actesbaremepriseenchargelienparente() - { - $table = $this->requete->getParametreFormulaire("table"); - - $nbacteLien = $this->garantie->getNbreLigneBareme($table); - - $this->genererVueAjax(array('nbacteLien'=>$nbacteLien)); - } - - public function detailbareme() - { - $table = $this->requete->getParametreFormulaire("table"); - - $nbdetail = $this->garantie->getNbreLigneBareme($table); - - $this->genererVueAjax(array('nbdetail'=>$nbdetail)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxnotesbeneficiaire.php b/Controleur/ControleurAjaxnotesbeneficiaire.php deleted file mode 100755 index 3bb8653..0000000 --- a/Controleur/ControleurAjaxnotesbeneficiaire.php +++ /dev/null @@ -1,22 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - - $notesfeuillemaladie = $this->feuillemaladie->getnotesBeneficiaire($idBeneficiaire); - - $this->genererVueAjax(array('notesfeuillemaladie' => $notesfeuillemaladie)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxnotesfeuillemaladie.php b/Controleur/ControleurAjaxnotesfeuillemaladie.php deleted file mode 100755 index 9a05873..0000000 --- a/Controleur/ControleurAjaxnotesfeuillemaladie.php +++ /dev/null @@ -1,36 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - - $notesfeuillemaladie = $this->feuillemaladie->getnotesfeuillemaladie($numeroFeuilleMaladie); - - $this->genererVueAjax(array('notesfeuillemaladie' => $notesfeuillemaladie)); - } - - public function nouvellenote() - { - $this->genererVueAjax(); - } - - public function creernote() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - $notesNew = $this->requete->getParametreFormulaire("notesNew"); - - $this->feuillemaladie->creernote($numeroFeuilleMaladie, $notesNew); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxplafondadherent.php b/Controleur/ControleurAjaxplafondadherent.php deleted file mode 100755 index 4227d99..0000000 --- a/Controleur/ControleurAjaxplafondadherent.php +++ /dev/null @@ -1,24 +0,0 @@ -garantieadherent = new Garantieadherent(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - - $idEntetecontrat = $this->requete->getParametreFormulaire("idEntetecontrat"); - - $garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat); - - $this->genererVueAjax(array('garantieadherents' => $garantieadherents)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxplafondbeneficiaire.php b/Controleur/ControleurAjaxplafondbeneficiaire.php deleted file mode 100755 index 26a1e71..0000000 --- a/Controleur/ControleurAjaxplafondbeneficiaire.php +++ /dev/null @@ -1,25 +0,0 @@ -garantieadherent = new Garantieadherent(); - } - - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - - $idEntetecontrat = $this->requete->getParametreFormulaire("idEntetecontrat"); - - $garantieadherents = $this->garantieadherent->getGarantieBeneficiaireEnteteContrat($idBeneficiaire, $idEntetecontrat); - - $this->genererVueAjax(array('garantieadherents' => $garantieadherents)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetefacture.php b/Controleur/ControleurAjaxrequeteentetefacture.php deleted file mode 100755 index 611481f..0000000 --- a/Controleur/ControleurAjaxrequeteentetefacture.php +++ /dev/null @@ -1,17 +0,0 @@ -ouinonfacture = (new Ouinon())->getListe(); - $this->ouinonhospit = (new Ouinon())->getListe(); - $this->ouinonchirurgie = (new Ouinon())->getListe(); - } - - public function index() { - $this->genererVueAjax(array('ouinonhospit' => $this->ouinonhospit, 'ouinonchirurgie' => $this->ouinonchirurgie)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetefeuillemaladie.php b/Controleur/ControleurAjaxrequeteentetefeuillemaladie.php deleted file mode 100755 index 735ed0f..0000000 --- a/Controleur/ControleurAjaxrequeteentetefeuillemaladie.php +++ /dev/null @@ -1,21 +0,0 @@ -raison = (new Raisonconsultation())->getListe(); - $this->ouinonfacture = (new Ouinon())->getListe(); - $this->ouinonhospit = (new Ouinon())->getListe(); - $this->ouinonchirurgie = (new Ouinon())->getListe(); - } - - public function index() { - $this->genererVueAjax(array('raison' => $this->raison, 'ouinonfacture' => $this->ouinonfacture, - 'ouinonhospit' => $this->ouinonhospit, 'ouinonchirurgie' => $this->ouinonchirurgie)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteenteteoptique.php b/Controleur/ControleurAjaxrequeteenteteoptique.php deleted file mode 100755 index 6380c87..0000000 --- a/Controleur/ControleurAjaxrequeteenteteoptique.php +++ /dev/null @@ -1,15 +0,0 @@ -prestataireprescription = (new Prestataire())->getListeTypePrestataire("CSO"); - } - - public function index() { - $this->genererVueAjax(array('prestataireprescription' => $this->prestataireprescription)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetepharmacie.php b/Controleur/ControleurAjaxrequeteentetepharmacie.php deleted file mode 100755 index a7f0785..0000000 --- a/Controleur/ControleurAjaxrequeteentetepharmacie.php +++ /dev/null @@ -1,15 +0,0 @@ -prestataireprescription = (new Prestataire())->getListeTypePrestataire("CSO"); - } - - public function index() { - $this->genererVueAjax(array('prestataireprescription' => $this->prestataireprescription)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteentetepharmacieb.php b/Controleur/ControleurAjaxrequeteentetepharmacieb.php deleted file mode 100755 index a4e4df3..0000000 --- a/Controleur/ControleurAjaxrequeteentetepharmacieb.php +++ /dev/null @@ -1,15 +0,0 @@ -prestataireprescription = (new Prestataire())->getListeTypePrestataire("CSO"); - } - - public function index() { - $this->genererVueAjax(array('prestataireprescription' => $this->prestataireprescription)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteenteteprestationactes.php b/Controleur/ControleurAjaxrequeteenteteprestationactes.php deleted file mode 100755 index 23d906e..0000000 --- a/Controleur/ControleurAjaxrequeteenteteprestationactes.php +++ /dev/null @@ -1,22 +0,0 @@ -typeprestation = (new Typeprestation())->getListe(); - $this->ouinonfacture = (new Ouinon())->getListe(); - $this->reponseententeprealable = (new Reponseententeprealable())->getListe(); - } - - public function index() { - $this->genererVueAjax(array('typeprestation' => $this->typeprestation, 'ouinonfacture' => $this->ouinonfacture, - 'reponseententeprealable' => $this->reponseententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetefacture.php b/Controleur/ControleurAjaxrequetefacture.php deleted file mode 100755 index 106f127..0000000 --- a/Controleur/ControleurAjaxrequetefacture.php +++ /dev/null @@ -1,66 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateFacture1 = $this->requete->getParametreDate("dateFacture1"); - $dateFacture2 = $this->requete->getParametreDate("dateFacture2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroDecompte1 = $this->requete->getParametreFormulaire("numeroDecompte1"); - $numeroDecompte2 = $this->requete->getParametreFormulaire("numeroDecompte2"); - - $hospitalisation = $this->requete->getParametreFormulaire("hospitalisation"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $chirurgie = $this->requete->getParametreFormulaire("chirurgie"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateFacture1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateFacture2"); - - $factures = $this->facture->requetesfacture($codePrestataire, $dateFacture1, $dateFacture2, $numeroAdherent, $numeroBeneficiaire, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $hospitalisation, $numeroChambre, $chirurgie, $adherent, $beneficiaire) ; - - $factures_total = $this->facture->requetesfacturetotal($codePrestataire, $dateFacture1, $dateFacture2, $numeroAdherent, $numeroBeneficiaire, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $hospitalisation, $numeroChambre, $chirurgie, $adherent, $beneficiaire) ; - - $this->genererVueAjax(array('factures' => $factures, 'factures_total' => $factures_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetefactureexport.php b/Controleur/ControleurAjaxrequetefactureexport.php deleted file mode 100755 index 87480b3..0000000 --- a/Controleur/ControleurAjaxrequetefactureexport.php +++ /dev/null @@ -1,138 +0,0 @@ -facture = new Facture(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateFacture1 = $this->requete->getParametreDate("dateFacture1"); - $dateFacture2 = $this->requete->getParametreDate("dateFacture2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroDecompte1 = $this->requete->getParametreFormulaire("numeroDecompte1"); - $numeroDecompte2 = $this->requete->getParametreFormulaire("numeroDecompte2"); - - $hospitalisation = $this->requete->getParametreFormulaire("hospitalisation"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $chirurgie = $this->requete->getParametreFormulaire("chirurgie"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateFacture1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateFacture2"); - - $factures = $this->facture->requetesfactureexport($codePrestataire, $dateFacture1, $dateFacture2, $numeroAdherent, $numeroBeneficiaire, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $hospitalisation, $numeroChambre, $chirurgie, $adherent, $beneficiaire) ; - - // Excel - /* - $headerXLS = array( - 'prestataire', - 'dateSysteme', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'NoFeuille', - 'dateFacture', - 'NoBonCons', - 'NoBonOrd', - 'NoBonHosp', - 'NoBonOpt', - 'fraisReel', - 'TM', - 'Arembourser', - 'Exclu', - 'Retenu', - 'MtForce', - 'Redresse', - 'Apayer', - 'Paye', - 'Rembourse', - 'hospitalisation', - 'Hospit', - 'chirurgie', - 'NoDecompte', - 'valide', - 'regle', - 'login'); - */ - - $headerXLS = array( - 'prestataire', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'dateFacture', - 'NoBon', - 'fraisReel', - 'TM', - 'Arembourser', - 'Depass', - 'Retenu'); - - $dataXLS = array(); - - - foreach ($factures as $facture) - { - $dataXLS[]=$facture; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('FACTURES MEDICARE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/FACTURES_MEDICARE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' TELECHARGER FACTURES MEDICARE AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateConsultation1 = $this->requete->getParametreDate("dateConsultation1"); - $dateConsultation2 = $this->requete->getParametreDate("dateConsultation2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroDecompte1 = $this->requete->getParametreFormulaire("numeroDecompte1"); - $numeroDecompte2 = $this->requete->getParametreFormulaire("numeroDecompte2"); - - $codeRaisonConsultation = $this->requete->getParametreFormulaire("codeRaisonConsultation"); - $hospitalisation = $this->requete->getParametreFormulaire("hospitalisation"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $chirurgie = $this->requete->getParametreFormulaire("chirurgie"); - $facture = $this->requete->getParametreFormulaire("facture"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateConsultation1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateConsultation2"); - - $feuillemaladies = $this->feuillemaladie->requetesfeuillesmaladie($codePrestataire, $dateConsultation1, $dateConsultation2, $numeroAdherent, $numeroBeneficiaire, - $codeMedecin, $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $codeRaisonConsultation, $hospitalisation, $numeroChambre, $chirurgie, $facture, $adherent, $beneficiaire) ; - - $feuillemaladies_total = $this->feuillemaladie->requetesfeuillesmaladietotal($codePrestataire, $dateConsultation1, $dateConsultation2, $numeroAdherent, $numeroBeneficiaire, - $codeMedecin, $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $codeRaisonConsultation, $hospitalisation, $numeroChambre, $chirurgie, $facture, $adherent, $beneficiaire) ; - - $this->genererVueAjax(array('feuillemaladies' => $feuillemaladies, 'feuillemaladies_total' => $feuillemaladies_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetefeuillemaladieexport.php b/Controleur/ControleurAjaxrequetefeuillemaladieexport.php deleted file mode 100755 index d53d5ca..0000000 --- a/Controleur/ControleurAjaxrequetefeuillemaladieexport.php +++ /dev/null @@ -1,134 +0,0 @@ -feuillemaladie = new Feuillemaladie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateConsultation1 = $this->requete->getParametreDate("dateConsultation1"); - $dateConsultation2 = $this->requete->getParametreDate("dateConsultation2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroDecompte1 = $this->requete->getParametreFormulaire("numeroDecompte1"); - $numeroDecompte2 = $this->requete->getParametreFormulaire("numeroDecompte2"); - - $codeRaisonConsultation = $this->requete->getParametreFormulaire("codeRaisonConsultation"); - $hospitalisation = $this->requete->getParametreFormulaire("hospitalisation"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $chirurgie = $this->requete->getParametreFormulaire("chirurgie"); - $facture = $this->requete->getParametreFormulaire("facture"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateConsultation1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateConsultation2"); - - $feuillemaladies = $this->feuillemaladie->requetesfeuillesmaladieexport($codePrestataire, $dateConsultation1, $dateConsultation2, $numeroAdherent, $numeroBeneficiaire, - $codeMedecin, $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, - $codeTypePrestataire, $numeroDecompte1, $numeroDecompte2, $codeRaisonConsultation, $hospitalisation, $numeroChambre, $chirurgie, $facture, $adherent, $beneficiaire) ; - - // Excel - $headerXLS = array( - 'prestataire', - 'dateSysteme', - 'Medecin', - 'NoMedecin', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'NoFeuille', - 'dateConsultation', - 'NoBonCons', - 'NoBonOrd', - 'NoBonHosp', - 'NoBonOpt', - 'fraisReel', - 'TxTM', - 'TM', - 'Arembourser', - 'Exclu', - 'Retenu', - 'MtForce', - 'Redresse', - 'Apayer', - 'Paye', - 'Rembourse', - 'facture', - 'NoDerog_Reseau', - 'NoDerog_Fing', - 'hospitalisation', - 'Hospit', - 'chirurgie', - 'raisonconsultation', - 'NoDecompte', - 'valide', - 'regle', - 'login'); - - $dataXLS = array(); - - - foreach ($feuillemaladies as $feuillemaladie) - { - $dataXLS[]=$feuillemaladie; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('FEUILLES MALADIE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/FEUILLES_MALADIE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' TELECHARGER FEUILLES MALADIES AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
opticiens = new Opticiens(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleOptique = $this->requete->getParametreFormulaire("libelleOptique"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $opticiens = $this->opticiens->requetesoptique($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOptique1, $numeroBonOptique2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleOptique); - - $opticiens_total = $this->opticiens->requetesoptiquetotal($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOptique1, $numeroBonOptique2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleOptique); - - $this->genererVueAjax(array('opticiens' => $opticiens, 'opticiens_total' => $opticiens_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteoptiqueexport.php b/Controleur/ControleurAjaxrequeteoptiqueexport.php deleted file mode 100755 index e3d3f4a..0000000 --- a/Controleur/ControleurAjaxrequeteoptiqueexport.php +++ /dev/null @@ -1,112 +0,0 @@ -opticiens = new Opticiens(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleOptique = $this->requete->getParametreFormulaire("libelleOptique"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $opticiens = $this->opticiens->requetesoptiqueexport($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOptique1, $numeroBonOptique2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleOptique); - - // Excel - $headerXLS = array( - 'prestataire', - 'dateSysteme', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'idPrestation', - 'NoBonOpt', - 'NoFeuille', - 'NoBonCons', - 'typeVerres', - 'verres', - 'monture', - 'fraisReel', - 'TM', - 'Arembourser', - 'Exclu', - 'Retenu', - 'MtForce', - 'Apayer', - 'valide', - 'Redresse', - 'prestatairePrescription', - 'medecinPrescription', - 'NoMedecin'); - - $dataXLS = array(); - - - foreach ($opticiens as $opticien) - { - $dataXLS[]=$opticien; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('ACTES OPTIQUES MEDICARE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/ACTES_OPTIQUES_MEDICARE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' TELECHARGER ACTES OPTIQUES MEDICARE AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
pharmacie = new Pharmacie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleMedicament = $this->requete->getParametreFormulaire("libelleMedicament"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $pharmacies = $this->pharmacie->requetespharmacie($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - $pharmacies_total = $this->pharmacie->requetespharmacietotal($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - $this->genererVueAjax(array('pharmacies' => $pharmacies, 'pharmacies_total' => $pharmacies_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetepharmacieb.php b/Controleur/ControleurAjaxrequetepharmacieb.php deleted file mode 100755 index 4076306..0000000 --- a/Controleur/ControleurAjaxrequetepharmacieb.php +++ /dev/null @@ -1,60 +0,0 @@ -pharmacie = new Pharmacie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleMedicament = $this->requete->getParametreFormulaire("libelleMedicament"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $pharmacies = $this->pharmacie->requetespharmacie($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - $pharmacies_total = $this->pharmacie->requetespharmacietotal($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - $this->genererVueAjax(array('pharmacies' => $pharmacies, 'pharmacies_total' => $pharmacies_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequetepharmaciebexport.php b/Controleur/ControleurAjaxrequetepharmaciebexport.php deleted file mode 100755 index c8faf17..0000000 --- a/Controleur/ControleurAjaxrequetepharmaciebexport.php +++ /dev/null @@ -1,110 +0,0 @@ -pharmacie = new Pharmacie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleMedicament = $this->requete->getParametreFormulaire("libelleMedicament"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $pharmacies = $this->pharmacie->requetespharmacieexport($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - // Excel - $headerXLS = array( - 'prestataire', - 'dateSysteme', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'idPrestation', - 'NoBonOrd', - 'NoFeuille', - 'NoBonCons', - 'Medicament', - 'Prix', - 'quantite', - 'fraisReel', - 'TM', - 'Arembourser', - 'Exclu', - 'Retenu', - 'MtForce', - 'Apayer', - 'valide', - 'Redresse', - 'prestatairePrescription', - 'medecinPrescription', - 'NoMedecin'); - - $dataXLS = array(); - - - foreach ($pharmacies as $pharmacie) - { - $dataXLS[]=$pharmacie; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('ACTES PHARAMACIE MEDICARE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/ACTES_PHARAMACIE_MEDICARE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' ACTES PHARAMACIE MEDICARE AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
pharmacie = new Pharmacie(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $dateLivraison1 = $this->requete->getParametreDate("dateLivraison1"); - $dateLivraison2 = $this->requete->getParametreDate("dateLivraison2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codePrestatairePrescription= $this->requete->getParametreFormulaire("codePrestatairePrescription"); - - // Ligne 3 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 4 - $libelleMedicament = $this->requete->getParametreFormulaire("libelleMedicament"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("dateLivraison2"); - - $pharmacies = $this->pharmacie->requetespharmacieexport($codePrestataire, $dateLivraison1, $dateLivraison2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroFeuilleMaladie1, $numeroFeuilleMaladie2, - $codePrestatairePrescription, $adherent, $beneficiaire, $libelleMedicament); - - // Excel - $headerXLS = array( - 'prestataire', - 'dateSysteme', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'idPrestation', - 'NoBonOrd', - 'NoFeuille', - 'NoBonCons', - 'Medicament', - 'Prix', - 'quantite', - 'fraisReel', - 'TM', - 'Arembourser', - 'Exclu', - 'Retenu', - 'MtForce', - 'Apayer', - 'valide', - 'Redresse', - 'prestatairePrescription', - 'medecinPrescription', - 'NoMedecin'); - - $dataXLS = array(); - - - foreach ($pharmacies as $pharmacie) - { - $dataXLS[]=$pharmacie; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('ACTES PHARAMACIE MEDICARE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/ACTES_PHARAMACIE_MEDICARE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' TELECHARGER ACTES PHARAMACIE MEDICARE AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
prestationactes = new Prestationactes(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $datePrestation1 = $this->requete->getParametreDate("datePrestation1"); - $datePrestation2 = $this->requete->getParametreDate("datePrestation2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codeTypePrestation = $this->requete->getParametreFormulaire("codeTypePrestation"); - $ententePrealable = $this->requete->getParametreFormulaire("ententePrealable"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $facture = $this->requete->getParametreFormulaire("facture"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 5 - $libelleActe = $this->requete->getParametreFormulaire("libelleActe"); - $libelleFamilleActe = $this->requete->getParametreFormulaire("libelleFamilleActe"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation2"); - - $prestationactes = $this->prestationactes->requetesprestationactes($codePrestataire, $datePrestation1, $datePrestation2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, - $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, $codeTypePrestataire, $numeroFeuilleMaladie1, - $numeroFeuilleMaladie2, $codeTypePrestation, $ententePrealable, $numeroChambre, $facture, $adherent, $beneficiaire, $libelleActe, $libelleFamilleActe); - - $prestationactes_total = $this->prestationactes->requetesprestationactestotal($codePrestataire, $datePrestation1, $datePrestation2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, - $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, $codeTypePrestataire, $numeroFeuilleMaladie1, - $numeroFeuilleMaladie2, $codeTypePrestation, $ententePrealable, $numeroChambre, $facture, $adherent, $beneficiaire, $libelleActe, $libelleFamilleActe); - - $this->genererVueAjax(array('prestationactes' => $prestationactes, 'prestationactes_total' => $prestationactes_total)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurAjaxrequeteprestationactesexport.php b/Controleur/ControleurAjaxrequeteprestationactesexport.php deleted file mode 100755 index 998629a..0000000 --- a/Controleur/ControleurAjaxrequeteprestationactesexport.php +++ /dev/null @@ -1,134 +0,0 @@ -prestationactes = new Prestationactes(); - } - - public function index() - { - // Ligne 1 - $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); - $datePrestation1 = $this->requete->getParametreDate("datePrestation1"); - $datePrestation2 = $this->requete->getParametreDate("datePrestation2"); - $numeroAdherent = $this->requete->getParametreFormulaire("numeroAdherent"); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - // Ligne 2 - $codeMedecin = $this->requete->getParametreFormulaire("codeMedecin"); - - $numeroBonConsultation1 = $this->requete->getParametreFormulaire("numeroBonConsultation1"); - $numeroBonConsultation2 = $this->requete->getParametreFormulaire("numeroBonConsultation2"); - - $numeroBonOrdonnance1 = $this->requete->getParametreFormulaire("numeroBonOrdonnance1"); - $numeroBonOrdonnance2 = $this->requete->getParametreFormulaire("numeroBonOrdonnance2"); - - $numeroBonHospitalisation1 = $this->requete->getParametreFormulaire("numeroBonHospitalisation1"); - $numeroBonHospitalisation2 = $this->requete->getParametreFormulaire("numeroBonHospitalisation2"); - - $numeroBonOptique1 = $this->requete->getParametreFormulaire("numeroBonOptique1"); - $numeroBonOptique2 = $this->requete->getParametreFormulaire("numeroBonOptique2"); - - // Ligne 3 - $codeTypePrestataire = $this->requete->getParametreFormulaire("codeTypePrestataire"); - - $numeroFeuilleMaladie1 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie1"); - $numeroFeuilleMaladie2 = $this->requete->getParametreFormulaire("numeroFeuilleMaladie2"); - - $codeTypePrestation = $this->requete->getParametreFormulaire("codeTypePrestation"); - $ententePrealable = $this->requete->getParametreFormulaire("ententePrealable"); - $numeroChambre = $this->requete->getParametreFormulaire("numeroChambre"); - $facture = $this->requete->getParametreFormulaire("facture"); - - // Ligne 4 - $adherent = $this->requete->getParametreFormulaire("adherent"); - $beneficiaire = $this->requete->getParametreFormulaire("beneficiaire"); - - // Ligne 5 - $libelleActe = $this->requete->getParametreFormulaire("libelleActe"); - $libelleFamilleActe = $this->requete->getParametreFormulaire("libelleFamilleActe"); - - // FIN Champs - - $_SESSION['codePrestataire_C'] = $codePrestataire; - - $_SESSION['debutRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation1"); - $_SESSION['finRequeteFr_C'] = $this->requete->getParametreFormulaire("datePrestation2"); - - $prestationactes = $this->prestationactes->requetesprestationactesexport($codePrestataire, $datePrestation1, $datePrestation2, $numeroAdherent, $numeroBeneficiaire, $codeMedecin, - $numeroBonConsultation1, $numeroBonConsultation2, $numeroBonOrdonnance1, $numeroBonOrdonnance2, $numeroBonHospitalisation1, - $numeroBonHospitalisation2, $numeroBonOptique1, $numeroBonOptique2, $codeTypePrestataire, $numeroFeuilleMaladie1, - $numeroFeuilleMaladie2, $codeTypePrestation, $ententePrealable, $numeroChambre, $facture, $adherent, $beneficiaire, $libelleActe, $libelleFamilleActe); - - // Excel - $headerXLS = array( - 'prestataire', - 'datePrestation', - 'NoAdherent', - 'adherent', - 'NoBeneficiaire', - 'beneficiaire', - 'NoFeuille', - 'NoBonCons', - 'NoBonOrd', - 'NoBonHosp', - 'NoBonOpt', - 'codeTypePrestation', - 'libelleActe', - 'Medecin', - 'NoMedecin', - 'valeurActe', - 'quantite', - 'fraisReel', - 'TM', - 'Arembourser', - 'facture', - 'valide', - 'login' - /* - 'Exclu', - 'Retenu', - 'MtForce', - 'Apayer', - 'Redresse', - 'Rejete', - 'Attente', - */ - ); - - $dataXLS = array(); - - - foreach ($prestationactes as $prestationacte) - { - $dataXLS[]=$prestationacte; - } - - - $classeur = new PHPExcel(); - $classeur->getProperties()->setCreator("INTER-SANTE"); - $classeur->setActiveSheetIndex(0); - $feuille=$classeur->getActiveSheet(); - $feuille->setTitle('PRESTATIONS MEDICARE'); - $feuille->fromArray($headerXLS, NULL, 'A1', true); - $feuille->fromArray($dataXLS, NULL, 'A2', true); - - //Forcer le téléchargement vers le navigateur; - $fichier = 'Temp/PRESTATIONS_MEDICARE'."_".uniqid().".xlsx"; - - $writer = new PHPExcel_Writer_Excel2007($classeur); - $writer->save($fichier); - - $t_html ='
'; - $t_html .=' TELECHARGER PRESTATIONS MEDICARE AU FORMAT EXCEL / DONWLOAD RESULTS '; - $t_html .='
requete->getSession()->getAttribut('codeSociete'); - $codePays = $this->requete->getParametreFormulaire("codePays"); - $listeville = (new Ville())->getListe($codePays); - $this->genererVueAjax(array('listeville' => $listeville)); - } - - public function consultation() - { - $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); - $codePays = $this->requete->getParametreFormulaire("codePays"); - $listeville = (new Ville())->getListe($codePays); - $this->genererVueAjax(array('listeville' => $listeville)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurAnteceentsmedicaux.php b/Controleur/ControleurAnteceentsmedicaux.php deleted file mode 100755 index af10edd..0000000 --- a/Controleur/ControleurAnteceentsmedicaux.php +++ /dev/null @@ -1,17 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Anteceentsmedicaux'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurArchiverfacture.php b/Controleur/ControleurArchiverfacture.php deleted file mode 100755 index eb4ff36..0000000 --- a/Controleur/ControleurArchiverfacture.php +++ /dev/null @@ -1,83 +0,0 @@ -menuvue = new Menuvueprofil(); - $this->menuvue->getMenuVue('Archiverfacture'); - $this->ged = new Ged(); - } - - public function index($nomOrigine="") - { - $numeroBeneficiaire = $_SESSION['numeroBeneficiaire_C']; - if (isset($_POST['nomOrigine'])) - { - $nomOrigine = $this->requete->getParametreFormulaire("nomOrigine"); - } - $geds = $this->ged->afficherFactures($numeroBeneficiaire, $nomOrigine); - - $this->genererVue(array('geds' => $geds, 'nomOrigine' => $nomOrigine)); - } - - public function enregistredossier() - { - $numeroBeneficiaire = $_SESSION['numeroBeneficiaire_C']; - // On va uploader les fichiers joints s'il y en a - $old_file_name =''; - if( !empty($_FILES['nomFichier']['name']) ) - { - $file_tmp_name = $_FILES['nomFichier']['tmp_name']; - $old_file_name = $_FILES['nomFichier']['name']; - $file_size = $_FILES['nomFichier']['size']; - $file_type = $_FILES['nomFichier']['type']; - $file_error = $_FILES['nomFichier']['error']; - - define('TARGET', 'Ged/'); // Repertoire cible - $extension = ''; - $nomFichier = ''; - - if( !is_dir(TARGET) ) - { - if( !mkdir(TARGET, 0755) ) - { - //exit('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 !'); - $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 !'; - } - } - - // Recuperation de l'extension du fichier - $extension = pathinfo($_FILES['nomFichier']['name'], PATHINFO_EXTENSION); - - if(isset($_FILES['nomFichier']['error']) - && UPLOAD_ERR_OK === $_FILES['nomFichier']['error']) - { - // On renomme le fichier - $nomFichier = "Fact_".$_SESSION['numeroBeneficiaire_C']."_".uniqid().'.'. $extension; - // Si c'est OK, on teste l'upload - if(move_uploaded_file($_FILES['nomFichier']['tmp_name'], TARGET.$nomFichier)) - { - $this->ged->ajouterFacture($numeroBeneficiaire, $nomFichier, $old_file_name, $accesAssure="0", - $accesPrestataire="0", $accesPartenaire="0", $accesMedecin="0", $accesCompagnie="0", $accesProducteur="0", - $accesGestionnaire="1", $nomFichier); - } - else - { - // Sinon on affiche une erreur systeme - $message = 'Problème lors du chargement !'; - } - } - else - { - $message = 'Une erreur interne a empêché le chargement'; - } - } - // On réaffiche la page on est prêt à charger un autre document// - $this->rediriger("Archiverfacture"); - } -} \ No newline at end of file diff --git a/Controleur/ControleurArchiverged.php b/Controleur/ControleurArchiverged.php deleted file mode 100755 index 8d0b853..0000000 --- a/Controleur/ControleurArchiverged.php +++ /dev/null @@ -1,81 +0,0 @@ -menuvue = new Menuvueprofil(); - $this->menuvue->getMenuVue('Archiverged'); - $this->ged = new Ged(); - } - public function index() { - $this->genererVue(); - } - - public function enregistredossier() - { - $numeroBeneficiaire = $_SESSION['numeroBeneficiaire_C']; - // On va uploader les fichiers joints s'il y en a - $old_file_name =''; - if( !empty($_FILES['nomFichier']['name']) ) - { - $accesAssure = $this->requete->getParametre("accesAssure"); - $accesPrestataire = $this->requete->getParametre("accesPrestataire"); - $accesMedecin = $this->requete->getParametre("accesMedecin"); - $accesGestionnaire = $this->requete->getParametre("accesGestionnaire"); - - - $file_tmp_name = $_FILES['nomFichier']['tmp_name']; - $old_file_name = $_FILES['nomFichier']['name']; - $file_size = $_FILES['nomFichier']['size']; - $file_type = $_FILES['nomFichier']['type']; - $file_error = $_FILES['nomFichier']['error']; - - define('TARGET', 'Ged/'); // Repertoire cible - $extension = ''; - $nomFichier = ''; - - if( !is_dir(TARGET) ) - { - if( !mkdir(TARGET, 0755) ) - { - //exit('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 !'); - $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 !'; - } - } - - // Recuperation de l'extension du fichier - $extension = pathinfo($_FILES['nomFichier']['name'], PATHINFO_EXTENSION); - - if(isset($_FILES['nomFichier']['error']) - && UPLOAD_ERR_OK === $_FILES['nomFichier']['error']) - { - // On renomme le fichier - $nomFichier = $_SESSION['numeroBeneficiaire_C']."_".uniqid().'.'. $extension; - // Si c'est OK, on teste l'upload - if(move_uploaded_file($_FILES['nomFichier']['tmp_name'], TARGET.$nomFichier)) - { - $this->ged->ajouterGed($numeroBeneficiaire, $nomFichier, $old_file_name, $accesAssure, - $accesPrestataire, $accesPartenaire="0", $accesMedecin, $accesCompagnie="0", $accesProducteur="0", - $accesGestionnaire, $nomFichier); - } - - else - { - // Sinon on affiche une erreur systeme - $message = 'Problème lors du chargement !'; - } - } - else - { - $message = 'Une erreur interne a empêché le chargement'; - } - } - // On réaffiche la page on est prêt à charger un autre document// - $this->rediriger("Afficherged"); - } -} \ No newline at end of file diff --git a/Controleur/ControleurChambre.php b/Controleur/ControleurChambre.php deleted file mode 100755 index 57dbb6a..0000000 --- a/Controleur/ControleurChambre.php +++ /dev/null @@ -1,39 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Chambre'); - - $this->feuillemaladie = new Feuillemaladie(); - $this->prestation = new Prestationactes(); - $this->acte = new Detailtarifacte(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); - - $chambres = $this->prestation->getchambresfeuille($numeroFeuilleMaladie); - - $totalchambres = $this->prestation->gettotalchambresfeuille($numeroFeuilleMaladie); - - $acte = $this->acte->getchambespossibles(); - - $this->genererVue(array('feuillemaladie' => $feuillemaladie, 'chambres' => $chambres, - 'totalchambres' => $totalchambres, 'acte' => $acte)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurChangermotpass.php b/Controleur/ControleurChangermotpass.php deleted file mode 100755 index b477100..0000000 --- a/Controleur/ControleurChangermotpass.php +++ /dev/null @@ -1,81 +0,0 @@ -utilisateur = new Utilisateur(); - - $this->menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Changermotpass'); - } - - public function index() - { - $this->genererVue(); - } - - public function changerpass() - { - $login = $_SESSION['login']; - if ($this->requete->existeParametre("ancmdp") - && $this->requete->existeParametre("nvmdp") - && $this->requete->existeParametre("cfnvmdp")) - { - $ancmdp = $this->requete->getParametre("ancmdp"); - $nvmdp = $this->requete->getParametre("nvmdp"); - $cfnvmdp = $this->requete->getParametre("cfnvmdp"); - - // Ici on va faire intervenir la complexité du mot de passe - $tb_complexitePassWord = $this->utilisateur->getcomplexitepassword(); - $complexitePassWord = $tb_complexitePassWord['complexitePassWord']; - $longueurPassWord = $tb_complexitePassWord['longueurPassWord']; - - if (strlen($nvmdp)<$longueurPassWord) - { - $this->genererVue(array('msgErreur' => _('Veuillez revoir la longueur du mot de passe!')), "index"); - }/* - else if ( strlen($complexitePassWord)>1 && !(preg_match($complexitePassWord, $nvmdp)) ) - { - $this->genererVue(array('msgErreur' => 'Mot de passe non conforme!'), "index"); - }*/ - else if ($nvmdp!=$cfnvmdp) - { - $this->genererVue(array('msgErreur' => _('Veuillez confirmer votre nouveau mot de passe!')), "index"); - } - else if ($nvmdp==$ancmdp) - { - $this->genererVue(array('msgErreur' => _('Veuillez changer de mot de passe!')), "index"); - } - else if (!$this->utilisateur->respecteoldpass($login, $nvmdp)) - { - $this->genererVue(array('msgErreur' => _('Mot de passe récemment utilsé!')), "index"); - } - else if ($this->utilisateur->connecter($login, $ancmdp)) - { - $this->utilisateur->changerpass($login, $ancmdp, $nvmdp); - // $this->rediriger("Recherche"); - // ajout KANE du 24/03/2025 - $this->rediriger("Connexion/deconnecter/"); - exit(); - - } - else - { - $this->genererVue(array('msgErreur' => _('Ancien mot de passe incorrect!')), "index"); - } - } - else - { - $this->genererVue(array('msgErreur' => _('Veuillez revoir votre saisie!')), "index"); - } - } -} \ No newline at end of file diff --git a/Controleur/ControleurConnexion.php b/Controleur/ControleurConnexion.php deleted file mode 100755 index 16d9def..0000000 --- a/Controleur/ControleurConnexion.php +++ /dev/null @@ -1,613 +0,0 @@ -utilisateur = new Utilisateur(); - $this->menu = new Menu(); - $this->logconnexion = new Logconnexion(); - $this->societeuser = new Societeuser(); - $this->moritio = new Moritio(); - } - - public function index() - { - $this->genererVue(); - } - - public function connecter() - { - if - ( - $this->requete->existeParametre("login") - && - $this->requete->existeParametre("mdp") - ) - { - $langue = $this->requete->getParametre("langue"); - $login = $this->requete->getParametre("login"); - $mdp = $this->requete->getParametre("mdp"); - - $_SESSION['lang'] = $langue; - - // logConnexion - $heureConnexion = date("Y-m-d H:i:s"); - $ipConnexion = $_SERVER['REMOTE_ADDR']; - - $idSaisie = uniqid(); - - $idConnexion = $this->logconnexion->ajouter($login, $heureConnexion, $ipConnexion, $idSaisie); - - // Vidage Tables temporaires - - $_SESSION['idSaisie'] = $idSaisie; - - $this->utilisateur->viderTablesTemporairesUser($login); - - $ipbanni = $this->logconnexion->ipbanni($ipConnexion); - - - - if($ipbanni>"0") - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => "IP address banned!"), "index"); - exit(); - } - else - { - $this->genererVue(array('msgErreur' => "Adresse IP banni!"), "index"); - exit(); - } - } - - $userbanni = $this->logconnexion->userbanni($login); - - if($userbanni>"0") - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => "Login banned!"), "index"); - exit(); - } - else - { - $this->genererVue(array('msgErreur' => "Login banni!"), "index"); - exit(); - } - } - - $nbTentativeConnexionMax = $this->societeuser->get_nbTentativeConnexion(); - - - if (!isset($_SESSION['nbTentativeConnexion'])) - { - $_SESSION['nbTentativeConnexion'] = '0'; - } - - $nbTentativeConnexion = $_SESSION['nbTentativeConnexion']; - - - if($nbTentativeConnexion>$nbTentativeConnexionMax) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => "Too many connection attempts!"), "index"); - exit(); - } - else - { - $this->genererVue(array('msgErreur' => "Trop de tentatives de connexion!"), "index"); - exit(); - } - } - - - if ($this->utilisateur->connecter($login, $mdp)) - { - $_SESSION['nbTentativeConnexion'] = '0'; - - $this->logconnexion->succesconnexion($idConnexion); - - $utilisateur = $this->utilisateur->getUtilisateur($login); - - // - - // Début test Licence - $codeSociete = $utilisateur['codeSociete']; - $nomSociete = $utilisateur['nomSociete']; - $codeLangueUtilisateur = $utilisateur['codeLangue']; - - - if ($_SESSION['lang'] != $codeLangueUtilisateur) - { - $this->utilisateur->changerlangueutilisateurconnexion($login, $_SESSION['lang']); - } - - $licensed = getLicensed($codeSociete, $nomSociete); - - - if(!$licensed ) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => 'PLEASE CONTACT EBENE SOLUTIONS INFORMATIQUES AT lkane@ebene.info!'), "index"); - } - else - { - $this->genererVue(array('msgErreur' => 'VEUILLEZ CONTACTER EBENE SOLUTIONS INFORMATIQUES AU lkane@ebene.info!'), "index"); - } - exit(); - } - // Fin test Licence - - - - if($utilisateur['actif']<>1) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => 'User disabled!'), "index"); - } - else - { - $this->genererVue(array('msgErreur' => 'Utilisateur désactivé!'), "index"); - } - exit(); - } - - // Gestion limite usage - $dateLimiteUsage = $utilisateur['dateLimiteUsage']; - $dateLimiteUsage_0 = getMoritio_0(); - $dateLimiteUsage_2 = getMoritio_2(); - - - if($dateLimiteUsage<$dateLimiteUsage_0) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => 'PLEASE CONTACT EBENE SOLUTIONS INFORMATIQUES AT lkane@ebene.info!'), "index"); - } - else - { - $this->genererVue(array('msgErreur' => 'VEUILLEZ CONTACTER EBENE SOLUTIONS INFORMATIQUES AU lkane@ebene.info!'), "index"); - } - exit(); - } - - - if($dateLimiteUsage_2<$dateLimiteUsage_0) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => 'PLEASE CONTACT EBENE SOLUTIONS INFORMATIQUES AT lkane@ebene.info!'), "index"); - } - else - { - $this->genererVue(array('msgErreur' => 'VEUILLEZ CONTACTER EBENE SOLUTIONS INFORMATIQUES AU lkane@ebene.info!'), "index"); - } - exit(); - } - // FIN Gestion limite usage - - // DEBUT Gestion du client - - if($utilisateur['enVigueur']<>1) - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => 'Customer not in force!'), "index"); - } - else - { - $this->genererVue(array('msgErreur' => 'Client non en vigeur!'), "index"); - } - exit(); - } - - // Variables de session Utilisateur - $this->requete->getSession()->setAttribut("dateLimiteUsage", $dateLimiteUsage); - $this->requete->getSession()->setAttribut("idUtilisateur", $utilisateur['idUtilisateur']); - $this->requete->getSession()->setAttribut("idUtilisateur_C", $utilisateur['idUtilisateur']); - $this->requete->getSession()->setAttribut("login", $utilisateur['login']); - $this->requete->getSession()->setAttribut("login_C", $utilisateur['login']); - $this->requete->getSession()->setAttribut("codeSociete", $utilisateur['codeSociete']); - $this->requete->getSession()->setAttribut("codeSociete_C", $utilisateur['codeSociete']); - $this->requete->getSession()->setAttribut("codeUtilisateur", $utilisateur['codeUtilisateur']); - $this->requete->getSession()->setAttribut("codeUtilisateur_C", $utilisateur['codeUtilisateur']); - - $this->requete->getSession()->setAttribut("nomUtilisateur_C", $utilisateur['nomUtilisateur']); - $this->requete->getSession()->setAttribut("prenomsUtilisateur_C", $utilisateur['prenomsUtilisateur']); - $this->requete->getSession()->setAttribut("utilisateur_C", $utilisateur['utilisateur']); - - $this->requete->getSession()->setAttribut("userInitials_C", $utilisateur['initiales']); - - $this->requete->getSession()->setAttribut("telephoneUtilisateur_C", $utilisateur['telephoneUtilisateur']); - $this->requete->getSession()->setAttribut("emailUtilisateur_C", $utilisateur['emailUtilisateur']); - $this->requete->getSession()->setAttribut("codeProfil", $utilisateur['codeProfil']); - $this->requete->getSession()->setAttribut("codeProfil_C", $utilisateur['codeProfil']); - - - $this->requete->getSession()->setAttribut("profil_C", $utilisateur['profil']); - - - $this->requete->getSession()->setAttribut("nomSociete_C", $utilisateur['nomSociete']); - $this->requete->getSession()->setAttribut("nomSociete", $utilisateur['nomSociete']); - $this->requete->getSession()->setAttribut("numCompteSociete_C", $utilisateur['numCompteSociete']); - $this->requete->getSession()->setAttribut("adresseGeoSociete_C", $utilisateur['adresseGeoSociete']); - $this->requete->getSession()->setAttribut("adressePostSociete_C", $utilisateur['adressePostSociete']); - $this->requete->getSession()->setAttribut("villeSociete_C", $utilisateur['villeSociete']); - $this->requete->getSession()->setAttribut("telephoneSociete_C", $utilisateur['telephoneSociete']); - $this->requete->getSession()->setAttribut("emailSociete_C", $utilisateur['emailSociete']); - $this->requete->getSession()->setAttribut("portableSociete_C", $utilisateur['portableSociete']); - $this->requete->getSession()->setAttribut("nomResponsableSociete_C", $utilisateur['nomResponsableSociete']); - $this->requete->getSession()->setAttribut("codePaysSociete", $utilisateur['codePaysSociete']); - $this->requete->getSession()->setAttribut("medecinConseil_C", $utilisateur['medecinConseil']); - $this->requete->getSession()->setAttribut("telephoneMedecinConseil_C", $utilisateur['telephoneMedecinConseil']); - $this->requete->getSession()->setAttribut("sigleSociete_C", $utilisateur['sigleSociete']); - - $this->requete->getSession()->setAttribut("emailMedecinConseil_C", $utilisateur['emailMedecinConseil']); - $this->requete->getSession()->setAttribut("emailGestionBon_C", $utilisateur['emailGestionBon']); - $this->requete->getSession()->setAttribut("emailCcomptabilite_C", $utilisateur['emailCcomptabilite']); - $this->requete->getSession()->setAttribut("emailDerogation_C", $utilisateur['emailDerogation']); - $this->requete->getSession()->setAttribut("emailAccordPrealable_C", $utilisateur['emailAccordPrealable']); - - $this->requete->getSession()->setAttribut("smsMedecinConseil_C", $utilisateur['smsMedecinConseil']); - $this->requete->getSession()->setAttribut("smsGestionBon_C", $utilisateur['smsGestionBon']); - $this->requete->getSession()->setAttribut("smsDerogation_C", $utilisateur['smsDerogation']); - $this->requete->getSession()->setAttribut("smsAccordPrealable_C", $utilisateur['smsAccordPrealable']); - $this->requete->getSession()->setAttribut("sms_standard_C", $utilisateur['sms_standard']); - - $this->requete->getSession()->setAttribut("lienMail_C", $utilisateur['lienMail']); - $this->requete->getSession()->setAttribut("dossierPhoto_C", $utilisateur['dossierPhoto']); - - - $this->requete->getSession()->setAttribut("dUneSemaineAvant_C", $utilisateur['dUneSemaineAvant']); - $this->requete->getSession()->setAttribut("dUneSemaineAvantFr_C", $utilisateur['dUneSemaineAvantFr']); - - $this->requete->getSession()->setAttribut("codeExercice_C", $utilisateur['codeExercice']); - $this->requete->getSession()->setAttribut("codeMois_C", $utilisateur['codeMois']); - - $this->requete->getSession()->setAttribut("debutExercice_C", $utilisateur['debutExercice']); - $this->requete->getSession()->setAttribut("debutExerciceFr_C", $utilisateur['debutExerciceFr']); - - $this->requete->getSession()->setAttribut("debutMois_C", $utilisateur['debutMois']); - $this->requete->getSession()->setAttribut("debutMoisFr_C", $utilisateur['debutMoisFr']); - - $this->requete->getSession()->setAttribut("debutRequete_C", $_SESSION['debutMois_C']); - $this->requete->getSession()->setAttribut("debutRequeteFr_C", $_SESSION['debutMoisFr_C']); - $this->requete->getSession()->setAttribut("finRequeteFr_C", date('d/m/Y')); - - // On va déclarer les variable de session context - $this->requete->getSession()->setAttribut("idBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("idBeneficiaire_sav", ""); - - $this->requete->getSession()->setAttribut("user_id_C", "0"); - $this->requete->getSession()->setAttribut("finger_id_C", "0"); - - $this->requete->getSession()->setAttribut("idSubstitut_C", "0"); - $this->requete->getSession()->setAttribut("substitutnonassure_C", ""); - $this->requete->getSession()->setAttribut("substitutenVigueur_C", "0"); - - - $this->requete->getSession()->setAttribut("codeTypeClient_C", $utilisateur['codeTypeClient']); - $this->requete->getSession()->setAttribut("idClient_C", $utilisateur['idClient']); - $this->requete->getSession()->setAttribut("numeroClient_C", $utilisateur['numeroClient']); - $this->requete->getSession()->setAttribut("nomClient_C", $utilisateur['nomClient']); - $this->requete->getSession()->setAttribut("prenomClient_C", $utilisateur['prenomClient']); - - $this->requete->getSession()->setAttribut("adresseGeoClient_C", $utilisateur['adresseGeoClient']); - $this->requete->getSession()->setAttribut("boitepostaleClient_C", $utilisateur['boitepostaleClient']); - $this->requete->getSession()->setAttribut("telephoneBureauClient_C", $utilisateur['telephoneBureauClient']); - $this->requete->getSession()->setAttribut("telephonePortableClient_C", $utilisateur['telephonePortableClient']); - $this->requete->getSession()->setAttribut("faxClient_C", $utilisateur['faxClient']); - $this->requete->getSession()->setAttribut("emailClient_C", $utilisateur['emailClient']); - - $this->requete->getSession()->setAttribut("villeClient_C", $utilisateur['villeClient']); - $this->requete->getSession()->setAttribut("paysClient_C", $utilisateur['paysClient']); - - - $this->requete->getSession()->setAttribut("adherent_C", ""); - $this->requete->getSession()->setAttribut("numeroBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("nomBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("prenomsBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("beneficiaire_C", ""); - $this->requete->getSession()->setAttribut("codeLienParente_C", ""); - $this->requete->getSession()->setAttribut("numeroPiece_C", ""); - $this->requete->getSession()->setAttribut("sexe_C", ""); - $this->requete->getSession()->setAttribut("codeGroupeSanguin_C", ""); - $this->requete->getSession()->setAttribut("dateNaissance_C", ""); - $this->requete->getSession()->setAttribut("telephonePortableBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("dateEntreeBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("dateSortieBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("codeMotifSortie_C", ""); - $this->requete->getSession()->setAttribut("codeEtatBeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("lienPhoto_C", ""); - $this->requete->getSession()->setAttribut("dateEffetBeneficiaire_C", ""); - - - $_SESSION['photoAssureCrypte'] = ""; - - $this->requete->getSession()->setAttribut("decede_C", ""); - $this->requete->getSession()->setAttribut("dateDeces_C", ""); - $this->requete->getSession()->setAttribut("fraisFuneraireDemande_C", ""); - - - $this->requete->getSession()->setAttribut("exercieReference_C", $utilisateur['codeExercice']); - - $this->requete->getSession()->setAttribut("naturepiece_C", ""); - $this->requete->getSession()->setAttribut("lienparente_C", ""); - $this->requete->getSession()->setAttribut("motifsortie_C", ""); - $this->requete->getSession()->setAttribut("etatbeneficiaire_C", ""); - $this->requete->getSession()->setAttribut("ageBeneficiaire_C", ""); - - $this->requete->getSession()->setAttribut("college_couvert_C", "0"); - $this->requete->getSession()->setAttribut("derogation_en_cours_C", "0"); - $this->requete->getSession()->setAttribut("tmDerogation_C", "0"); - $this->requete->getSession()->setAttribut("derogation_finger_en_cours_C", "0"); - $this->requete->getSession()->setAttribut("okId", "-1"); - - $this->requete->getSession()->setAttribut("accesAjoutPh_C", "0"); - - $this->requete->getSession()->setAttribut("tm_C", "0"); - $this->requete->getSession()->setAttribut("numeroFeuilleMaladie_C", "0"); - $this->requete->getSession()->setAttribut("numeroPrescription_C", "0"); - $this->requete->getSession()->setAttribut("numeroOptique_C", "0"); - $this->requete->getSession()->setAttribut("numeroExamen_C", "0"); - $this->requete->getSession()->setAttribut("numeroPrescriptionKine_C", "0"); - $this->requete->getSession()->setAttribut("idFacture_C", "0"); - - $this->requete->getSession()->setAttribut("numeroBonConsultation_C", "-1"); - $this->requete->getSession()->setAttribut("numeroBonHospitalisation_C", "-1"); - $this->requete->getSession()->setAttribut("hospitalisation_C", "0"); - $this->requete->getSession()->setAttribut("chirurgie_C", "0"); - $this->requete->getSession()->setAttribut("numeroBonOptique_C", "-1"); - $this->requete->getSession()->setAttribut("numeroBonOrdonnance_C", "-1"); - $this->requete->getSession()->setAttribut("numeroBonExamen_C", "-1"); - $this->requete->getSession()->setAttribut("numeroBonKine_C", "-1"); - $this->requete->getSession()->setAttribut("numeroBonSeance_C", "-1"); - - $this->requete->getSession()->setAttribut("codeFamilleActePharmacie_C", "000"); - $this->requete->getSession()->setAttribut("codeActePharmacie_C", "00000"); - - $this->requete->getSession()->setAttribut("codeFamilleActeOptique_C", "999"); - $this->requete->getSession()->setAttribut("codeActeOptique_C", "99999"); - $this->requete->getSession()->setAttribut("codeActeMonture_C", "99990"); - - // acte optique remboursement classique - $this->requete->getSession()->setAttribut("codeActeOptiqueCl_C", "RBCLOPT"); - $this->requete->getSession()->setAttribut("codeActeMontureCl_C", "RBCLMON"); - - $this->requete->getSession()->setAttribut("nbActesVerres", "0"); - $this->requete->getSession()->setAttribut("nbActesMonture", "0"); - - $this->requete->getSession()->setAttribut("nbTentative", "0"); - - $_SESSION['d1_C'] = $_SESSION['dUneSemaineAvant_C']; - $_SESSION['d2_C'] = date('Y-m-d'); - - $_SESSION['dateFactureReellefr_C'] = date("d/m/Y"); - $_SESSION['dateFactureReelle_C'] = date('Y-m-d'); - - $this->requete->getSession()->setAttribut("idReglement_C", "0"); - $this->requete->getSession()->setAttribut("numeroDecompte_C", "-1"); - $this->requete->getSession()->setAttribut("idDemandeDecompte_C", "0"); - $this->requete->getSession()->setAttribut("numeroDemandeDecompte_C", "-1"); - - $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("modeSaisieFacture", "0"); - - $this->requete->getSession()->setAttribut("nbMessagesNonLus_C", "0"); - - $this->requete->getSession()->setAttribut("requete", "0"); - $this->requete->getSession()->setAttribut("nbActesMonture", "0"); - - /* FIN variable de session context */ - - $filename = 'Societes/'.$utilisateur['codeSociete']; - - if (!file_exists($filename)) - { - mkdir($filename, 0700); - } - $this->requete->getSession()->setAttribut("dossierSociete", $filename); - - $this->requete->getSession()->setAttribut("dossierGed", $_SESSION['lienAssure_C'].$_SESSION['dossierSociete'].'/Ged/'); - $this->requete->getSession()->setAttribut("cheminGed", $_SESSION['dossierSociete'].'/Ged/'); - - $this->requete->getSession()->setAttribut("devise_C", $utilisateur['devise']); - $this->requete->getSession()->setAttribut("langSociete", $utilisateur['codeLangueSociete']); - - $codeLangue = $_SESSION['lang']; - - if ($_SESSION['lang']=="en_US") - { - $_SESSION['libelleLang']="English"; - } - else - { - $_SESSION['libelleLang']="Français"; - } - - $this->requete->getSession()->setAttribut("menu", $this->menu->getMenu($utilisateur['codeProfil'])); - - $codeProfil = $_SESSION['codeProfil_C']; - - $login = $_SESSION['login']; - - $_SESSION['codeUtilisateur'] = $login; - - // Avant de rediriger, on va remplir suivisaisies - $this->logconnexion->suivisaisies($login, $idSaisie, $codeLangue); - - setcookie('lang', $codeLangue, time()+365*24*3600, '/'); - setcookie('codeUtilisateur', $_SESSION['codeUtilisateur'], time()+365*24*3600, '/'); - setcookie('codeSociete', $_SESSION['codeSociete'], time()+365*24*3600, '/'); - - // ajout du 22/03/2025 => cookie user lié à codeSociete - $codeSociete = $_SESSION['codeSociete']; - setcookie("login[$codeSociete]", $_SESSION['codeUtilisateur'], time()+365*24*3600, '/'); - - $_SESSION['vue'] = "INTER-SANTE"; - - $this->requete->getSession()->setAttribut("changerMotPassDefaut", $utilisateur['changerMotPassDefaut']); - $this->requete->getSession()->setAttribut("verifierLongueurPass", $utilisateur['verifierLongueurPass']); - - $longueurPassWord = $utilisateur['longueurPassWord']; - $_SESSION['dureeSession'] = $utilisateur['dureeSession']; - - $changerMotPassDefaut = ( ($_SESSION['changerMotPassDefaut']=="1") && ($this->utilisateur->verifiermotpassdefaut($codeSociete, $mdp)) ); - $motCourt = ( ($_SESSION['verifierLongueurPass']=="1") && (strlen($mdp)<$longueurPassWord) ); - - // A enlever après - $_SESSION['motCourt'] = $motCourt; - $_SESSION['changerMotPassDefaut'] = $changerMotPassDefaut; - - $agePass = $utilisateur['agePass']; - $dureeViePassWord = $utilisateur['dureeViePassWord']; - - $passExpired = ( ($dureeViePassWord>"0") && ($agePass>$dureeViePassWord) ); - $_SESSION['passExpired'] = $passExpired; - - $_SESSION['passAchanger'] = false; - - $this->requete->getSession()->setAttribut("bdTests_C", "0"); - $this->requete->getSession()->setAttribut("colorTests", "red"); - - $this->requete->getSession()->setAttribut("faceRegistered_C", "0"); - - // face 26/09/2025 - $this->requete->getSession()->setAttribut("okId", "-1"); - $this->requete->getSession()->setAttribut("okId_face", "-1"); - $this->requete->getSession()->setAttribut("numeroBeneficiaire_face", ""); - - $this->requete->getSession()->setAttribut("largeurPhoto", $utilisateur['largeurPhoto']); - $this->requete->getSession()->setAttribut("longueurPhoto", $utilisateur['longueurPhoto']); - $this->requete->getSession()->setAttribut("assureAjoutPhoto", $utilisateur['assureAjoutPhoto']); - - $_SESSION['fingerActif'] = '0'; - $_SESSION['faceActif'] = '0'; - - $this->requete->getSession()->setAttribut("lienPhotoFace", $utilisateur['lienPhotoFace']); - $this->requete->getSession()->setAttribut("motPassPdf", $utilisateur['motPassPdf']); - - $logo = 'Societes/'.$_SESSION['codeSociete'].'/images/logo_etat.png'; - $this->requete->getSession()->setAttribut("lienLogo", $logo); - - $this->requete->getSession()->setAttribut("dossierAssure", $utilisateur['dossierAssure']); - $dossierLogo=$_SESSION['dossierAssure']."/images/logo_etat.png"; - $this->requete->getSession()->setAttribut("dossierLogo", $dossierLogo); - - $_SESSION['idLogapiface'] = "0"; - - // fin 26/09/2025 - - $_SESSION['deconnexion'] = "0"; - $_SESSION['derniere_action'] = time(); - - - - if(($motCourt===true) or ($changerMotPassDefaut===true) or ($passExpired===true)) - { - $_SESSION['passAchanger'] = true; - $_SESSION['menu'] = array(); - $this->rediriger("Changermotpass"); - } - else - { - $this->rediriger("Accueil"); - } - } - else - { - if (isset($_SESSION['nbTentativeConnexion'])) - { - $_SESSION['nbTentativeConnexion']++; - } - else - { - $_SESSION['nbTentativeConnexion'] = '1'; - } - - $nbTentativeConnexion = $_SESSION['nbTentativeConnexion']; - - if($nbTentativeConnexion>$nbTentativeConnexionMax) - { - $this->logconnexion->bannirconnexion($login, $ipConnexion, $nbTentativeConnexion); - - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => "Too many connection attempts!"), "index"); - } - else - { - $this->genererVue(array('msgErreur' => "Trop de tentatives de connexion!"), "index"); - } - } - else - { - if ($_SESSION['lang']=="en_US") - { - $this->genererVue(array('msgErreur' => "Incorrect login or password => $nbTentativeConnexion attempts (s)"), "index"); - } - else - { - $this->genererVue(array('msgErreur' => "Login ou mot de passe incorrects => $nbTentativeConnexion tentative (s)"), "index"); - } - } - } - } - else - { - if ($_SESSION['lang']=="en_US") - { - throw new Exception("Login or password not defined!"); - } - else - { - throw new Exception("Login ou mot de passe non défini!"); - } - } - } - - public function deconnecter() - { - if($this->requete->getSession()->existeAttribut("login")) - { - $login = $this->requete->getSession()->getAttribut("login"); - $this->utilisateur->viderTablesTemporairesUser($login); - } - - $langue = $_SESSION['lang']; - $this->requete->getSession()->detruire(); - $_SESSION['lang'] = $langue; - - $this->rediriger("Connexion"); - } - - public function quitter() - { - $login = $this->requete->getSession()->getAttribut("login"); - $this->utilisateur->viderTablesTemporairesUser($login); - $this->societeusercentral->viderTablesTemporairesUser($login); - $this->requete->getSession()->detruire(); - } -} diff --git a/Controleur/ControleurConsultations.php b/Controleur/ControleurConsultations.php deleted file mode 100755 index ff53f2b..0000000 --- a/Controleur/ControleurConsultations.php +++ /dev/null @@ -1,20 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consultations'); - } - - public function index() - { - $this->genererVue(); - } -} diff --git a/Controleur/ControleurConsulterderogation.php b/Controleur/ControleurConsulterderogation.php deleted file mode 100755 index 1d8bb07..0000000 --- a/Controleur/ControleurConsulterderogation.php +++ /dev/null @@ -1,23 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterderogation'); - - $this->derogation = new Derogation(); - } - public function index() { - $idDemandederogation = $this->requete->getParametre("id"); - - $derogation = $this->derogation->getDerogationIdCOnsultation($idDemandederogation); - - $this->genererVue(array('derogation' => $derogation)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterderogations.php b/Controleur/ControleurConsulterderogations.php deleted file mode 100755 index 04a856e..0000000 --- a/Controleur/ControleurConsulterderogations.php +++ /dev/null @@ -1,23 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterderogations'); - - $this->derogation = new Derogation(); - } - public function index() { - $idDemandederogation = $this->requete->getParametre("id"); - - $derogation = $this->derogation->getDerogationIdCOnsultation($idDemandederogation); - - $this->genererVue(array('derogation' => $derogation)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterdetailbaremecollege.php b/Controleur/ControleurConsulterdetailbaremecollege.php deleted file mode 100755 index 8b57e8e..0000000 --- a/Controleur/ControleurConsulterdetailbaremecollege.php +++ /dev/null @@ -1,54 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterdetailbaremecollege'); - - $this->bareme = new Baremepriseencharge(); - $this->garantie = new Garantiesbaremepriseencharge(); - $this->oui_non = new Ouinon(); - } - - public function index() - { - $idBaremePriseEnCharge = $this->requete->getParametreFormulaire("id"); - - $bareme = $this->bareme->getBaremepriseenchargeId($idBaremePriseEnCharge); - - $_SESSION['idBaremePriseEnCharge'] = $idBaremePriseEnCharge; - - $idCollege = $_SESSION['idCollege_C']; - - //var_dump($idCollegeTemp); - - - $garantiesajoutees = $this->garantie->getGarantiesProduit($bareme["codeProduit"], $idBaremePriseEnCharge); - - $actif = $this->oui_non->getListe(); - $tmBareme = $this->garantie->getTmBareme($idBaremePriseEnCharge); - - $maxDateEffetBareme = $this->garantie->getMaxDateEffetBareme($idBaremePriseEnCharge); - - - $this->genererVue(array( - 'bareme' => $bareme, - 'garantiesajoutees' => $garantiesajoutees, - 'actif' => $actif, - 'tmBareme' => $tmBareme, - 'maxDateEffetBareme' => $maxDateEffetBareme - )); - } - - -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterententeprealables.php b/Controleur/ControleurConsulterententeprealables.php deleted file mode 100755 index 246604c..0000000 --- a/Controleur/ControleurConsulterententeprealables.php +++ /dev/null @@ -1,23 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterententeprealables'); - - $this->ententeprealable = new Ententeprealable(); - } - public function index() { - $idDemandeententeprealable = $this->requete->getParametre("id"); - - $ententeprealable = $this->ententeprealable->getEntenteprealableId($idDemandeententeprealable); - - $this->genererVue(array('ententeprealable' => $ententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterententeprealablesmont.php b/Controleur/ControleurConsulterententeprealablesmont.php deleted file mode 100755 index 0dea8c3..0000000 --- a/Controleur/ControleurConsulterententeprealablesmont.php +++ /dev/null @@ -1,24 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterententeprealablesmont'); - - $this->ententeprealable = new Ententeprealable(); - } - public function index() - { - $idDemandeententeprealable = $this->requete->getParametre("id"); - - $ententeprealable = $this->ententeprealable->getEntenteprealablemontId($idDemandeententeprealable); - - $this->genererVue(array('ententeprealable' => $ententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterententeprealablesopt.php b/Controleur/ControleurConsulterententeprealablesopt.php deleted file mode 100755 index 1574940..0000000 --- a/Controleur/ControleurConsulterententeprealablesopt.php +++ /dev/null @@ -1,24 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterententeprealablesopt'); - - $this->ententeprealable = new Ententeprealable(); - } - public function index() - { - $idDemandeententeprealable = $this->requete->getParametre("id"); - - $ententeprealable = $this->ententeprealable->getEntenteprealableoptId($idDemandeententeprealable); - - $this->genererVue(array('ententeprealable' => $ententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsulterententeprealablespha.php b/Controleur/ControleurConsulterententeprealablespha.php deleted file mode 100755 index 62c42db..0000000 --- a/Controleur/ControleurConsulterententeprealablespha.php +++ /dev/null @@ -1,23 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consulterententeprealablespha'); - - $this->ententeprealable = new Ententeprealable(); - } - public function index() { - $idDemandeententeprealable = $this->requete->getParametre("id"); - - $ententeprealable = $this->ententeprealable->getEntenteprealablephaId($idDemandeententeprealable); - - $this->genererVue(array('ententeprealable' => $ententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurConsultertableauprestation.php b/Controleur/ControleurConsultertableauprestation.php deleted file mode 100755 index 3c79912..0000000 --- a/Controleur/ControleurConsultertableauprestation.php +++ /dev/null @@ -1,23 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Consultertableauprestation'); - $this->college_temp = new College_temp(); - } - - public function index() { - $idCollege = $_SESSION['idCollege_C']; - - $tableau_prestations = $this->college_temp->gettableauprestationscollege($idCollege); - - $this->genererVue(array('tableau_prestations' => $tableau_prestations)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurDemandederogation.php b/Controleur/ControleurDemandederogation.php deleted file mode 100755 index b6506c8..0000000 --- a/Controleur/ControleurDemandederogation.php +++ /dev/null @@ -1,19 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Demandederogation'); - - $this->derogation = (new Derogation())->getListe(); - } - public function index() { - $this->genererVue(array('derogation' => $this->derogation)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurDiagnosticsconsbeneficiaire.php b/Controleur/ControleurDiagnosticsconsbeneficiaire.php deleted file mode 100755 index 51a3896..0000000 --- a/Controleur/ControleurDiagnosticsconsbeneficiaire.php +++ /dev/null @@ -1,17 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Diagnosticsconsbeneficiaire'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurDossiercons.php b/Controleur/ControleurDossiercons.php deleted file mode 100755 index 72784a0..0000000 --- a/Controleur/ControleurDossiercons.php +++ /dev/null @@ -1,20 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Dossiercons'); - - $_SESSION['numeroFeuilleMaladie_C'] = "0"; - $_SESSION['numeroBonConsultation_C'] = "0"; - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurDossiers.php b/Controleur/ControleurDossiers.php deleted file mode 100755 index 389f5c1..0000000 --- a/Controleur/ControleurDossiers.php +++ /dev/null @@ -1,27 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Dossiers'); - - $this->feuillemaladie = new Feuillemaladie(); - } - - public function index() { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladie($idBeneficiaire, $d1, $d2) ; - - $this->genererVue(array('feuillemaladies' => $feuillemaladies)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurDossiersfamille.php b/Controleur/ControleurDossiersfamille.php deleted file mode 100755 index cce3634..0000000 --- a/Controleur/ControleurDossiersfamille.php +++ /dev/null @@ -1,27 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Dossiersfamille'); - - $this->feuillemaladie = new Feuillemaladie(); - } - - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiefamille($idAdherent, $d1, $d2) ; - - $this->genererVue(array('feuillemaladies' => $feuillemaladies)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurEnvoisms.php b/Controleur/ControleurEnvoisms.php deleted file mode 100755 index a5ec7cf..0000000 --- a/Controleur/ControleurEnvoisms.php +++ /dev/null @@ -1,25 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Envoisms'); - $this->prestataire = new Prestataire(); - } - - public function index() - { - $prestataires = $this->prestataire->getListe(); - - $this->genererVue(array('prestataires' => $prestataires)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurEnvoiwhatsappcon.php b/Controleur/ControleurEnvoiwhatsappcon.php deleted file mode 100755 index 99abb65..0000000 --- a/Controleur/ControleurEnvoiwhatsappcon.php +++ /dev/null @@ -1,19 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Envoiwhatsappcon'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurErreur.php b/Controleur/ControleurErreur.php deleted file mode 100755 index 0c91117..0000000 --- a/Controleur/ControleurErreur.php +++ /dev/null @@ -1,20 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Erreur"); - } - - public function index() - { - $msgErreur = $this->requete->getParametre("id"); - $this->genererVue(array('msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurExclusion.php b/Controleur/ControleurExclusion.php deleted file mode 100755 index 1f7c7b3..0000000 --- a/Controleur/ControleurExclusion.php +++ /dev/null @@ -1,25 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Exclusion'); - - $this->exclusion = new Exclusioncollege(); - } - - public function index() { - $idCollege = $_SESSION['idCollege_C']; - - $exclusions = $this->exclusion->getExclusionFamille($idCollege); - - $this->genererVue(array('exclusions' => $exclusions)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurExclusionfam.php b/Controleur/ControleurExclusionfam.php deleted file mode 100755 index b84c807..0000000 --- a/Controleur/ControleurExclusionfam.php +++ /dev/null @@ -1,25 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Exclusionfam'); - - $this->exclusion = new Exclusioncollege(); - } - - public function index() { - $idCollege = $_SESSION['idCollege_C']; - - $exclusions = $this->exclusion->getExclusionFamille($idCollege); - - $this->genererVue(array('exclusions' => $exclusions)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurExclusionstandards.php b/Controleur/ControleurExclusionstandards.php deleted file mode 100755 index 6bf760f..0000000 --- a/Controleur/ControleurExclusionstandards.php +++ /dev/null @@ -1,65 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Exclusionstandards'); - - $this->feuillemaladie = new Feuillemaladie(); - $this->adherent = new Adherent(); - $this->beneficiaire = new Beneficiaire(); - $this->garantieadherent = new Garantieadherent(); - $this->garantie = new Garantie(); - } - - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiefamille($idAdherent, $d1, $d2); - $prestation = $this->adherent->getlisteprestations(); - $numeroBeneficiaire = $this->requete->getParametreFormulaire("numeroBeneficiaire"); - - $idPolice = $_SESSION['idPolice_C']; - $idAdherent = $_SESSION['idAdherent_C']; - $idBeneficiaire = isset($_SESSION['idBeneficiaire_C']) ? (int)$_SESSION['idBeneficiaire_C'] : null; - - $dateJour = date('Y-m-d'); - - $adherent = $this->adherent->getContexteAdherentId($idAdherent); - $beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour); - - $garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent); - - if ($idBeneficiaire !== null) { - $actes = $this->garantieadherent->getBaremePlafondAdherent($idAdherent, $idBeneficiaire); - } else { - $actes = null; - } - - $this->adherent->controlerplafondadherentannuel($idAdherent); - $_SESSION['controlerPlafondBeneficiaire'] = "0"; - - $limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent); - $garanties = $this->garantie->getListePourActe(); - - $this->genererVue(array( - 'adherent' => $adherent,'beneficiaires' => $beneficiaires,'garantieadherents' => $garantieadherents,'limite_adherent' => $limite_adherent,'prestation' => $prestation,'garanties' => $garanties,'numeroBeneficiaire' => $numeroBeneficiaire, - 'actes' => $actes)); - } -} diff --git a/Controleur/ControleurFacturecons.php b/Controleur/ControleurFacturecons.php deleted file mode 100755 index e16e360..0000000 --- a/Controleur/ControleurFacturecons.php +++ /dev/null @@ -1,20 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Facturecons'); - - $_SESSION['idFacture_C'] = "0"; - - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFactures.php b/Controleur/ControleurFactures.php deleted file mode 100755 index 3b9419a..0000000 --- a/Controleur/ControleurFactures.php +++ /dev/null @@ -1,27 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Factures'); - - $this->facture = new Facture(); - } - - public function index() { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - $factures = $this->facture->getfactures($idBeneficiaire, $d1, $d2) ; - - $this->genererVue(array('factures' => $factures)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFacturesfamille.php b/Controleur/ControleurFacturesfamille.php deleted file mode 100755 index c47bcf1..0000000 --- a/Controleur/ControleurFacturesfamille.php +++ /dev/null @@ -1,27 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Facturesfamille'); - - $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)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFacturesfeuille.php b/Controleur/ControleurFacturesfeuille.php deleted file mode 100755 index a011ccd..0000000 --- a/Controleur/ControleurFacturesfeuille.php +++ /dev/null @@ -1,17 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Facturesfeuille'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFeuillemaladie.php b/Controleur/ControleurFeuillemaladie.php deleted file mode 100755 index 0f8713f..0000000 --- a/Controleur/ControleurFeuillemaladie.php +++ /dev/null @@ -1,46 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Feuillemaladie'); - - $this->feuillemaladie = new Feuillemaladie(); - $this->prestation = new Prestationactes(); - - $_SESSION['codeTypeFacture_C'] = "CSO"; - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - $codePrestataire = $_SESSION['codePrestataire_C']; - - $garantieadherent_temp = null; - - $infosfeuillemaladie = $this->feuillemaladie->getinfosfeuillemaladie($numeroFeuilleMaladie); - $facture = $infosfeuillemaladie['facture']; - - $this->prestation->vider_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); - - if($facture==0) - { - $garantieadherent_temp = $this->prestation->init_garantieadherent_temp($numeroFeuilleMaladie, $codePrestataire); - } - - $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); - - $prestations = $this->prestation->getprestationsfeuille($numeroFeuilleMaladie, $codePrestataire); - - $this->genererVue(array('feuillemaladie' => $feuillemaladie, 'prestations' => $prestations, - 'garantieadherent_temp' => $garantieadherent_temp)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFeuillemaladiecons.php b/Controleur/ControleurFeuillemaladiecons.php deleted file mode 100755 index b48ce4d..0000000 --- a/Controleur/ControleurFeuillemaladiecons.php +++ /dev/null @@ -1,41 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Feuillemaladiecons'); - - $this->feuillemaladie = new Feuillemaladie(); - $this->prestation = new Prestationactes(); - $this->beneficiaire = new Beneficiaire(); - } - - public function index() - { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - - $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); - - $idBeneficiaire = $feuillemaladie['idBeneficiaire']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $codePrestataire = $_SESSION['codePrestataire_C']; - - $feuillemaladie = $this->feuillemaladie->getfeuillemaladie($numeroFeuilleMaladie); - - $prestations = $this->prestation->getprestationsfeuille($numeroFeuilleMaladie, $codePrestataire); - - $this->genererVue(array('feuillemaladie' => $feuillemaladie, 'prestations' => $prestations)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFicheadherent.php b/Controleur/ControleurFicheadherent.php deleted file mode 100755 index 4748ea9..0000000 --- a/Controleur/ControleurFicheadherent.php +++ /dev/null @@ -1,43 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Ficheadherent"); - - $this->adherent = new Adherent(); - $this->beneficiaire = new Beneficiaire(); - $this->garantieadherent = new Garantieadherent(); - } - - public function index() { - - $idPolice = $_SESSION['idPolice_C']; - $idAdherent = $_SESSION['idAdherent_C']; - - $dateJour = date('Y-m-d'); - - $adherent = $this->adherent->getContexteAdherentId($idAdherent); - $beneficiaires = $this->beneficiaire->getBeneficiairesId($idAdherent, $dateJour); - $garantieadherents = $this->garantieadherent->getGarantieAdherent($idAdherent); - - $this->adherent->controlerplafondadherentannuel($idAdherent); - $_SESSION['controlerPlafondBeneficiaire'] = "0"; - - $limite_adherent = $this->garantieadherent->getLimitesAdherent($idAdherent); - - $this->genererVue(array('adherent' => $adherent, 'beneficiaires' => $beneficiaires, - 'garantieadherents' => $garantieadherents, 'limite_adherent' => $limite_adherent)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFichebeneficiaire.php b/Controleur/ControleurFichebeneficiaire.php deleted file mode 100755 index 08817cb..0000000 --- a/Controleur/ControleurFichebeneficiaire.php +++ /dev/null @@ -1,336 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Fichebeneficiaire'); - - $this->beneficiaire = new Beneficiaire(); - $this->police = new Police(); - $this->garantieadherent = new Garantieadherent(); - - $this->tarif = new Tarifsactes(); - - $_SESSION['retour'] = "Fichebeneficiaire"; - } - - public function index() - { - $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); - $id = $this->requete->getParametre("id"); - $idBeneficiaire = $id; - - $beneficiaire_existe = $this->beneficiaire->getContexteBeneficiaireId($id); - - if ($beneficiaire_existe) - { - $beneficiaire = $this->beneficiaire->getBeneficiaireId($id); - - $_SESSION['idBeneficiaire_C'] = $id; - - $police = $this->beneficiaire->getSituationPolice($idBeneficiaire); // plafond Famille - - $college = $this->beneficiaire->getSituationCollege($idBeneficiaire); // Plafond Beneficiaire - - - $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $idAdherent = $_SESSION['idAdherent_C']; - - $_SESSION['lienPhoto_C'] = $beneficiaire['lienPhoto']; - - $garantieadherents = $this->garantieadherent->getGarantieBeneficiaire($idBeneficiaire); - - $message = ""; - $nouveau_fichier = "Rien"; - - if(!empty($_POST) && $_SESSION['faceRegistered_C'] != '1' && $_SESSION['assureAjoutPhoto']=="1") - { - define('TARGET', $_SESSION['lienPhotoFace']); // Repertoire cible - define('MAX_SIZE', 100000); // Taille max en octets du fichier - define('WIDTH_MAX', 800); // Largeur max de l'image en pixels - define('HEIGHT_MAX', 800); // Hauteur max de l'image en pixels - - $tabExt = array('jpg','png','jpeg'); // Extensions autorisees - $infosImg = array(); - - $extension = ''; - $nomImage = ''; - $nomImageCrypte = ''; - - 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 !'; - } - } - - if(!empty($_FILES['fichier_upload']['name'])) - { - - if(!empty($_FILES['fichier_upload']['tmp_name'])) - { - $extension = pathinfo($_FILES['fichier_upload']['name'], PATHINFO_EXTENSION); - - if(in_array(strtolower($extension),$tabExt)) - { - $infosImg = getimagesize($_FILES['fichier_upload']['tmp_name']); - - if($infosImg[2] >= 1 && $infosImg[2] <= 14) - { - if(isset($_FILES['fichier_upload']['error']) - && UPLOAD_ERR_OK === $_FILES['fichier_upload']['error']) - { - $rand = rand(1,1000000); - $nomImageTemp = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.'. $extension; - - - if(move_uploaded_file($_FILES['fichier_upload']['tmp_name'], TARGET.$nomImageTemp)) - { - $src = TARGET.$nomImageTemp; - - $rand = rand(1,1000000); - $nomImage = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.jpg'; - $nomImageCrypte = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.bin'; - - $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); - - imagejpeg($virtual_image, TARGET.$nomImage, -1); - - encryptImage(TARGET.$nomImage, TARGET.$nomImageCrypte); - - $nouveau_fichier = $nomImageCrypte; - - $message = 'Chargement réussi !'; - $this->beneficiaire->changerPhoto($id, $nomImageCrypte); - - $this->beneficiaire->registerface($_SESSION['numeroBeneficiaire_C']); - $_SESSION['lienPhoto_C'] = $nomImageCrypte; - - unlink(TARGET.$nomImageTemp); - - // $this->index(); - $this->rediriger("Fichebeneficiaire/".$idBeneficiaire); - } - else - { - $message = 'Problème lors du chargement !'; - } - } - else - { - $message = 'Une erreur interne a empêché le chargement'; - } - } - else - { - $message = 'Le fichier à charger n\'est pas une image !'; - } - } - else - { - $message = 'L\'extension du fichier est incorrecte !'; - } - } - else - { - $message = 'Revoir votre fichier image!'; - } - } - else - { - $message = 'Veuillez sélectionner un fichier SVP !'; - } - } - - $_SESSION['dateEffetCouvert'] = $beneficiaire['dateEffetCouvert']; - - $codeTypeTarifActe = "TBEN"; - - $tarifActe = $this->tarif->getTarifActeByType($codeTypeTarifActe); - - $prestationsParMois = $this->beneficiaire->getPrestationsmensuelles($idBeneficiaire); - - - $tabConsoParMois = [ - 'mois' => [], - 'consos' => [] - ]; - - $tabConsoParGaranties = [ - 'garanties' => [], - 'depenses' => [], - 'plafonds' => [] - ]; - - foreach ($prestationsParMois as $v) { - $tabConsoParMois['mois'][] = $v['mois']; - $tabConsoParMois['consos'][] = $v['consommationBeneficiaire']; - } - - foreach ($garantieadherents as $v) { - $tabConsoParGaranties['garanties'][] = $v['codeGarantie']; - $tabConsoParGaranties['depenses'][] = $v['consommation']; - $tabConsoParGaranties['plafonds'][] = $v['plafond']; - } - - $dataConsoParMois = json_encode($tabConsoParMois,JSON_NUMERIC_CHECK); - $dataConsoParGaranties = json_encode($tabConsoParGaranties,JSON_NUMERIC_CHECK); - - - $this->genererVue - ( - array - ( - 'beneficiaire' => $beneficiaire, - 'message' => $message, - 'garantieadherents' => $garantieadherents, - 'police' => $police, - 'college' => $college, - 'tarifActe' => $tarifActe, - 'dataConsoParMois' => $dataConsoParMois, - 'dataConsoParGaranties' => $dataConsoParGaranties - ) - ); - } - - } - - // 26/09/2025 - public function ebeneenregistrerface() - { - $_SESSION['p_messageFace'] = ""; - - 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; - $nomImageCrypte_0 = $username."_".$rand.'.bin'; - $nomImageCrypte = $_SESSION['lienPhotoFace'] . $nomImageCrypte_0; - - $this->beneficiaire->init_traiterlaface('1'); - - $cheminNew = $_SESSION['lienPhotoFace'] . $nomImage; - - // echo "chemin=>$chemin ; cheminNew=>$cheminNew"; - // exit(); - - $_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)) - { - encryptImage($cheminNew, $nomImageCrypte); - - unlink($cheminNew); - - $this->beneficiaire->registerface($username); - - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - // $this->beneficiaire->changerPhoto($idBeneficiaire, $nomImage); - $this->beneficiaire->changerPhoto($idBeneficiaire, $nomImageCrypte_0); - - $_SESSION['p_messageFace'] = "Enrôlement effectué avec succès! / Enrollment completed successfully!!"; - $this->genererVueAjax(array('messageFace' => $_SESSION['p_messageFace'], 'msgErreur' => $_SESSION['p_messageFace'], 'photo_succes' => "1")); - } - $this->beneficiaire->resultat_traitement_face($username, '1', ''); - unlink($chemin); - } - } - -} \ No newline at end of file diff --git a/Controleur/ControleurFicheprestataire.php b/Controleur/ControleurFicheprestataire.php deleted file mode 100755 index eac4d2e..0000000 --- a/Controleur/ControleurFicheprestataire.php +++ /dev/null @@ -1,29 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Ficheprestataire"); - - $this->prestataire = new Prestataire(); - - $_SESSION['modeDevis'] = "0"; - } - public function index() { - $idPrestataire = $this->requete->getParametreFormulaire("id"); - - $prestataire = $this->prestataire->getunprestataire($idPrestataire); - - - - - - $this->genererVue(array('prestataire' => $prestataire)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurFraisfuneraire.php b/Controleur/ControleurFraisfuneraire.php deleted file mode 100755 index 8a7fb80..0000000 --- a/Controleur/ControleurFraisfuneraire.php +++ /dev/null @@ -1,25 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Fraisfuneraire'); - - $this->fraisfuneraire = new Fraisfuneraire(); - } - - public function index() - { - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - - $fraisfuneraire = $this->fraisfuneraire->getfraisfuneraire($idBeneficiaire); - - $this->genererVue(array('fraisfuneraire' => $fraisfuneraire)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGed.php b/Controleur/ControleurGed.php deleted file mode 100755 index ac80c6b..0000000 --- a/Controleur/ControleurGed.php +++ /dev/null @@ -1,118 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Ged'); - - $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 - - - $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->enregistrerged($nomOrigine, $nouveau_fichier, $taille); - } - 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->getged($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGedadherent.php b/Controleur/ControleurGedadherent.php deleted file mode 100755 index a5cd472..0000000 --- a/Controleur/ControleurGedadherent.php +++ /dev/null @@ -1,120 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Gedadherent'); - - $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->enregistrergedadherent($nomOrigine, $nouveau_fichier, $taille); - } - 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->getgedadherent($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGedbeneficiaire.php b/Controleur/ControleurGedbeneficiaire.php deleted file mode 100755 index 249502e..0000000 --- a/Controleur/ControleurGedbeneficiaire.php +++ /dev/null @@ -1,120 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Gedbeneficiaireprest'); - - $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->enregistrergedbeneficiaireprest($nomOrigine, $nouveau_fichier, $taille); - } - 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->getgedbeneficiaireprest($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGedbeneficiaireass.php b/Controleur/ControleurGedbeneficiaireass.php deleted file mode 100755 index d7606e9..0000000 --- a/Controleur/ControleurGedbeneficiaireass.php +++ /dev/null @@ -1,122 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Gedbeneficiaireass'); - - $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->enregistrergedbeneficiaireass($nomOrigine, $nouveau_fichier, $taille); - } - 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->getgedbeneficiaireprest($d1, $d2, ""); - $geds = $this->ged->getgedbeneficiaire($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGedbeneficiaireprest.php b/Controleur/ControleurGedbeneficiaireprest.php deleted file mode 100755 index 62d8565..0000000 --- a/Controleur/ControleurGedbeneficiaireprest.php +++ /dev/null @@ -1,121 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Gedbeneficiaireprest'); - - $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->enregistrergedbeneficiaireprest($nomOrigine, $nouveau_fichier, $taille); - } - 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->getgedbeneficiaireprest($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurGedfeuillemaladie.php b/Controleur/ControleurGedfeuillemaladie.php deleted file mode 100755 index fee447b..0000000 --- a/Controleur/ControleurGedfeuillemaladie.php +++ /dev/null @@ -1,121 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Gedfeuillemaladie'); - - $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->enregistrergedfeuillemaladie($nomOrigine, $nouveau_fichier, $taille); - } - 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->getgedfeuillemaladie($d1, $d2, ""); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('geds' => $geds, 'msgErreur' => $msgErreur)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurHistoriquecontestation.php b/Controleur/ControleurHistoriquecontestation.php deleted file mode 100755 index d2a530d..0000000 --- a/Controleur/ControleurHistoriquecontestation.php +++ /dev/null @@ -1,29 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Historiquecontestation'); - - $this->feuillemaladie = new Feuillemaladie(); - } - - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['debutExercice_C']; //$_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - $feuillemaladies = $this->feuillemaladie->getfeuillesmaladiecontestee($idAdherent, $d1, $d2); - - //var_dump($feuillemaladies); die(); - - $this->genererVue(array('feuillemaladies' => $feuillemaladies)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurHistoriquerdv.php b/Controleur/ControleurHistoriquerdv.php deleted file mode 100755 index 7c0f339..0000000 --- a/Controleur/ControleurHistoriquerdv.php +++ /dev/null @@ -1,31 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Historiquerdv'); - - $this->rendezvous = new Rendezvous(); - - $_SESSION['idDemandeRdv'] = '0'; - } - - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['debutMois_C']; - $d2 = date('Y-m-d'); - $codeEtatRdv = $_SESSION['codeEtatRdv'] ?? ""; - - $demandes = $this->rendezvous->getPrisesRdv($idAdherent, $d1, $d2, $codeEtatRdv); - - $reponsedemande = $this->rendezvous->getEtatRdv(); - - $this->genererVue(array('demandes' => $demandes, 'reponsedemande' => $reponsedemande)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurHistoriqueremboursement.php b/Controleur/ControleurHistoriqueremboursement.php deleted file mode 100755 index 927ad08..0000000 --- a/Controleur/ControleurHistoriqueremboursement.php +++ /dev/null @@ -1,31 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Historiqueremboursement'); - - $this->remboursement = new Remboursement(); - - $_SESSION['idDemandeRemboursement'] = '0'; - } - - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $d1 = $_SESSION['debutMois_C']; - $d2 = date('Y-m-d'); - $codeEtatDemandeRemboursement = $_SESSION['codeEtatDemandeRemboursement'] ?? "0"; - - $demandes = $this->remboursement->getDemandesRemboursement($idAdherent, $d1, $d2, $codeEtatDemandeRemboursement); - - $reponsedemande = $this->remboursement->getEtatRemboursement(); - - $this->genererVue(array('demandes' => $demandes, 'reponsedemande' => $reponsedemande)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurHistsupprempreinte.php b/Controleur/ControleurHistsupprempreinte.php deleted file mode 100755 index 510e826..0000000 --- a/Controleur/ControleurHistsupprempreinte.php +++ /dev/null @@ -1,16 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Histsupprempreinte'); - } - - public function index() { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurInfossassureur.php b/Controleur/ControleurInfossassureur.php deleted file mode 100755 index 248ae1e..0000000 --- a/Controleur/ControleurInfossassureur.php +++ /dev/null @@ -1,27 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Infossassureur'); - - $this->societeuser = new Societeuser(); - } - - public function index() - { - $codeSociete = $_SESSION['codeSociete']; - - $infossassureurs = $this->societeuser->getinfossassureurs($codeSociete); - - $this->genererVue(array('infossassureurs' => $infossassureurs)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListederogations.php b/Controleur/ControleurListederogations.php deleted file mode 100755 index 1e6028d..0000000 --- a/Controleur/ControleurListederogations.php +++ /dev/null @@ -1,26 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listederogations'); - - $this->listederogation = (new Derogation())->getListe(); - $this->reponsederogation = (new Reponsederogation())->getListe(); - $this->prestataire = new Prestataire(); - } - - public function index() - { - $prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']); - - $this->genererVue(array('listederogation' => $this->listederogation, 'reponsederogation' => $this->reponsederogation)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListeententeprealables.php b/Controleur/ControleurListeententeprealables.php deleted file mode 100755 index cfe1b2f..0000000 --- a/Controleur/ControleurListeententeprealables.php +++ /dev/null @@ -1,24 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listeententeprealables'); - - $this->prestataire = new Prestataire(); - $this->reponseententeprealable = (new Reponseententeprealable())->getListe(); - } - - public function index() { - $prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']); - - $this->genererVue(array('reponseententeprealable' => $this->reponseententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListeententeprealablesmont.php b/Controleur/ControleurListeententeprealablesmont.php deleted file mode 100755 index 5c9881e..0000000 --- a/Controleur/ControleurListeententeprealablesmont.php +++ /dev/null @@ -1,19 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listeententeprealablesmont'); - - $this->reponseententeprealable = (new Reponseententeprealable())->getListe(); - } - - public function index() { - $this->genererVue(array('reponseententeprealable' => $this->reponseententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListeententeprealablesopt.php b/Controleur/ControleurListeententeprealablesopt.php deleted file mode 100755 index 95e067c..0000000 --- a/Controleur/ControleurListeententeprealablesopt.php +++ /dev/null @@ -1,19 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listeententeprealablesopt'); - - $this->reponseententeprealable = (new Reponseententeprealable())->getListe(); - } - - public function index() { - $this->genererVue(array('reponseententeprealable' => $this->reponseententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListeententeprealablespha.php b/Controleur/ControleurListeententeprealablespha.php deleted file mode 100755 index 988d215..0000000 --- a/Controleur/ControleurListeententeprealablespha.php +++ /dev/null @@ -1,19 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listeententeprealablespha'); - - $this->reponseententeprealable = (new Reponseententeprealable())->getListe(); - } - - public function index() { - $this->genererVue(array('reponseententeprealable' => $this->reponseententeprealable)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurListeexclusions.php b/Controleur/ControleurListeexclusions.php deleted file mode 100755 index af3749d..0000000 --- a/Controleur/ControleurListeexclusions.php +++ /dev/null @@ -1,24 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Listeexclusions'); - - $this->ententeprealable = new Ententeprealable(); - } - - public function index() { - $numeroFeuilleMaladie = $_SESSION['numeroFeuilleMaladie_C']; - - $ententeprealables = $this->ententeprealable->getActesExclusFeuilleMaladie($numeroFeuilleMaladie); - - $this->genererVue(array('ententeprealables' => $ententeprealables)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurMedecinsprestataire.php b/Controleur/ControleurMedecinsprestataire.php deleted file mode 100755 index c502e2b..0000000 --- a/Controleur/ControleurMedecinsprestataire.php +++ /dev/null @@ -1,30 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Medecinsprestataire"); - - $this->prestataire = new Prestataire(); - - $_SESSION['modeDevis'] = "0"; - } - - public function index() - { - $codePrestataire = $_SESSION['codePrestataire_C']; - - $prestataire = $this->prestataire->getunprestatairebycode($codePrestataire); - - $medecins = $this->prestataire->getmedecinsprestataire($codePrestataire); - - $this->genererVue(array('prestataire' => $prestataire, 'medecins' => $medecins)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurMessagerie.php b/Controleur/ControleurMessagerie.php deleted file mode 100755 index fc9303c..0000000 --- a/Controleur/ControleurMessagerie.php +++ /dev/null @@ -1,22 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Messagerie'); - - $this->ouinonlu = (new Ouinon())->getListe(); - } - - public function index() - { - $this->genererVue(array('ouinonlu' => $this->ouinonlu)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurModifierbeneficiaire.php b/Controleur/ControleurModifierbeneficiaire.php deleted file mode 100755 index 65ef749..0000000 --- a/Controleur/ControleurModifierbeneficiaire.php +++ /dev/null @@ -1,132 +0,0 @@ -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->tarif = new Tarifsactes(); - - $this->ouinonvip = (new Ouinon())->getListe(); - $this->ouinonconserver = (new Ouinon())->getListe(); - - $this->produit = new Produit(); - } - public function index() - { - $idPolice = $_SESSION['idPolice_C']; - - $codeSociete = $this->requete->getSession()->getAttribut('codeSociete'); - - - $id = $this->requete->getParametre("id"); - - $beneficiaire = $this->beneficiaire->getBeneficiaireId($id); - - $idAdherent = $beneficiaire['idAdherent']; - - $adherent = $this->adherent->getAdherentId($idAdherent); - - - $codeLienParente = $beneficiaire['codeLienParente']; - - if($codeLienParente=="A") - { - $lienparente = $this->lienparente->getListeAdherent(); - } - else - { - $lienparente = $this->lienparente->getListeDependant(); - } - - $codeTypeTarifActe = "TBEN"; - - $tarifActe = $this->tarif->getTarifActeByType($codeTypeTarifActe); - - - $typeremboursement = $this->produit->getlisteTypeRemboursement(); - - $this->genererVue(array('beneficiaire' => $beneficiaire, 'adherent' => $adherent, 'naturepiece' => $this->naturepiece, 'sexe' => $this->sexe, - 'groupesanguin' => $this->groupesanguin, 'lienparente' => $lienparente, 'tarifActe' => $tarifActe, 'ouinonvip' => $this->ouinonvip, - 'ouinonconserver' => $this->ouinonconserver, 'typeremboursement' => $typeremboursement)); - } - - public function modifier($prenoms=null) { - $id = $this->requete->getParametre("id"); - $nomBeneficiaire = $this->requete->getParametre("nomBeneficiaire"); - $prenomsBeneficiaire = $this->requete->getParametreFormulaire("prenomsBeneficiaire"); - $codeLienParente = $this->requete->getParametre("codeLienParente"); - $codeNaturePiece = $this->requete->getParametre("codeNaturePiece"); - $numeroPiece = strtoupper($this->requete->getParametreFormulaire("numeroPiece")); - $sexe = $this->requete->getParametreFormulaire("sexe"); - $codeGroupeSanguin = $this->requete->getParametreFormulaire("codeGroupeSanguin"); - $dateNaissance = $this->requete->getParametreDate("dateNaissance"); - $telephonePortable = $this->requete->getParametreFormulaire("telephonePortable"); - $dateEntree = $this->requete->getParametreDate("dateEntree"); - - $numeroCmu = strtoupper($this->requete->getParametreFormulaire("numeroCmu")); - $numeroMatricule = strtoupper($this->requete->getParametreFormulaire("numeroMatricule")); - - $primeFamille = $this->requete->getParametreFormulaire("primeFamille","numerique"); - $primeBeneficiaire = $this->requete->getParametreFormulaire("primeBeneficiaire","numerique"); - - $nomBeneficiaire = strtoupper($nomBeneficiaire); - $prenomsBeneficiaire = strtoupper($prenomsBeneficiaire); - - //Ajouté par sorel le 27-05-2023 - $codeTarifActe = $this->requete->getParametreFormulaire("codeTarifActe"); - - - //ajouter par sorel 20-06-2023 - $dateSouscription = $this->requete->getParametreFormulaire("dateSouscription"); - if($dateSouscription==""){ - $dateSouscription=null; - }else{ - $dateSouscription = $this->requete->getParametreDate("dateSouscription"); - } - - $vip = $this->requete->getParametreFormulaire("vip"); - - $seuilRdBeneficiaire = $this->requete->getParametreFormulaire("seuilRdBeneficiaire"); - - $numeroBs = $this->requete->getParametreFormulaire("seuilRdBeneficiaire"); - $codeTypeRemboursement = $this->requete->getParametreFormulaire("codeTypeRemboursement"); - - - $this->beneficiaire->modifier($nomBeneficiaire, $prenomsBeneficiaire, $codeLienParente, $codeNaturePiece, $numeroPiece, - $sexe, $codeGroupeSanguin, $dateNaissance, $telephonePortable, $dateEntree, $primeFamille, $primeBeneficiaire, $numeroCmu, - $numeroMatricule, $codeTarifActe, $dateSouscription, $vip, $seuilRdBeneficiaire, $numeroBs, $codeTypeRemboursement, $id); - - - - $this->rediriger("Fichebeneficiaire/".$id); - } -} \ No newline at end of file diff --git a/Controleur/ControleurNotesbeneficiaire.php b/Controleur/ControleurNotesbeneficiaire.php deleted file mode 100755 index 85be3cb..0000000 --- a/Controleur/ControleurNotesbeneficiaire.php +++ /dev/null @@ -1,17 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Notesbeneficiaire'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurNotesfeuillemaladie.php b/Controleur/ControleurNotesfeuillemaladie.php deleted file mode 100755 index 3e4233e..0000000 --- a/Controleur/ControleurNotesfeuillemaladie.php +++ /dev/null @@ -1,17 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Notesfeuillemaladie'); - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurParametre.php b/Controleur/ControleurParametre.php deleted file mode 100755 index 45b7a37..0000000 --- a/Controleur/ControleurParametre.php +++ /dev/null @@ -1,16 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Parametre"); - } - - public function index() { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPharmaciegarde.php b/Controleur/ControleurPharmaciegarde.php deleted file mode 100755 index f0264c0..0000000 --- a/Controleur/ControleurPharmaciegarde.php +++ /dev/null @@ -1,20 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Pharmaciegarde'); - - } - - public function index() - { - $this->genererVue(); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPharmaciencons.php b/Controleur/ControleurPharmaciencons.php deleted file mode 100755 index f0bc642..0000000 --- a/Controleur/ControleurPharmaciencons.php +++ /dev/null @@ -1,32 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Pharmaciencons'); - - $this->facture_pharmacie = new Prescription(); - // $this->ged = new Ged(); - } - - public function index() - { - - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - $codePrestataireLivraison = $_SESSION['codePrestataireLivraison_C']; - - $prescription = $this->facture_pharmacie->getprescription_pha($numeroBonOrdonnance, $codePrestataireLivraison); - - $detaillivres = $this->facture_pharmacie->getdetailprescription_pha($numeroBonOrdonnance, $codePrestataireLivraison); - - $this->genererVue(array('prescription' => $prescription, 'detaillivres' => $detaillivres)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPlafondadherent.php b/Controleur/ControleurPlafondadherent.php deleted file mode 100755 index 5178919..0000000 --- a/Controleur/ControleurPlafondadherent.php +++ /dev/null @@ -1,32 +0,0 @@ -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)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPlafondbeneficiaire.php b/Controleur/ControleurPlafondbeneficiaire.php deleted file mode 100755 index ba61c42..0000000 --- a/Controleur/ControleurPlafondbeneficiaire.php +++ /dev/null @@ -1,30 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Plafondbeneficiaire"); - - $this->garantieadherent = new Garantieadherent(); - - } - public function index() - { - $idAdherent = $_SESSION['idAdherent_C']; - $idBeneficiaire = $_SESSION['idBeneficiaire_C']; - $exercieReference = $_SESSION['exercieReference_C']; - $idEntetecontrat = $_SESSION['idEntetecontrat']; - - $entecontrats = $this->garantieadherent->getlisteentetecontratbeneficiaire($idBeneficiaire); - - $garantieadherents = $this->garantieadherent->getGarantieBeneficiaireEnteteContrat($idBeneficiaire, $idEntetecontrat); - - $this->genererVue(array('garantieadherents' => $garantieadherents, 'entecontrats' => $entecontrats)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPrescription.php b/Controleur/ControleurPrescription.php deleted file mode 100755 index 73985a7..0000000 --- a/Controleur/ControleurPrescription.php +++ /dev/null @@ -1,132 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Prescription'); - - $this->prescription = new Prescription(); - $this->detailprescription = new Detailprescription(); - $this->ged = new Ged(); - - $codePrestataire = $_SESSION['codePrestataire_C']; - } - - 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->enregistrergedprescription($nomOrigine, $nouveau_fichier, $taille); - } - 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 - } - - $msgErreurGed = $message; - - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription($numeroPrescription); - - $detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription); - - // $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - unset($_FILES['fichier_upload']); - $geds = $this->ged->getgedpharmacie(); - - $this->genererVue(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'geds' => $geds, 'msgErreurGed' => $msgErreurGed)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurPrescriptioncons.php b/Controleur/ControleurPrescriptioncons.php deleted file mode 100755 index ba72784..0000000 --- a/Controleur/ControleurPrescriptioncons.php +++ /dev/null @@ -1,54 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Prescriptioncons'); - - $this->prescription = new Prescription(); - $this->detailprescription = new Detailprescription(); - // $this->ged = new Ged(); - } - - - public function index() - { - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription($numeroPrescription); - - $detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription); - - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - - $this->genererVue(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions)); - - } - - /* - public function index() - { - $numeroPrescription = $_SESSION['numeroPrescription_C']; - - $prescription = $this->prescription->getprescription($numeroPrescription); - - $detailprescriptions = $this->detailprescription->getdetailprescription($numeroPrescription); - - $numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C']; - unset($_FILES['fichier_upload']); - $geds = $this->ged->getgedpharmacie(); - - $this->genererVue(array('prescription' => $prescription, 'detailprescriptions' => $detailprescriptions, 'geds' => $geds)); - } - */ -} \ No newline at end of file diff --git a/Controleur/ControleurPrestataires.php b/Controleur/ControleurPrestataires.php deleted file mode 100755 index e6bf3c2..0000000 --- a/Controleur/ControleurPrestataires.php +++ /dev/null @@ -1,54 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Prestataires"); - - $this->typeprestataire = new Typeprestataire(); - $this->reseausoins = new Reseausoins(); - - $this->pays = new Pays(); - $this->ville = new Ville(); - $this->localite = new Localite(); - - } - - public function index() - { - $codeSociete = $_SESSION['codeSociete']; - $codePays = $_SESSION['codePaysSociete']; - $codeVille = ""; - - $typeprestataire = $this->typeprestataire->getListeTous(); - $reseausoins = $this->reseausoins->getReseausoinsFamille(); - - $codeReseau = $this->reseausoins->getReseauFamille(); - - $pays = $this->pays->getListe($codePays); - $ville = $this->ville->getListe($codePays); - $localite = $this->localite->getListe($codePays, $codeVille); - - $this->genererVue(array('pays' => $pays, 'ville' => $ville, 'listelocalite' => $localite, - 'typeprestataire' => $typeprestataire, 'reseausoins' => $reseausoins, 'codeReseau' => $codeReseau)); - - } -} \ No newline at end of file diff --git a/Controleur/ControleurRecherche.php b/Controleur/ControleurRecherche.php deleted file mode 100755 index a56b91b..0000000 --- a/Controleur/ControleurRecherche.php +++ /dev/null @@ -1,566 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Recherche"); - - $this->beneficiaire = new Beneficiaire(); - - viderContexte(); - - $_SESSION['numeroBonOrdonnance_C'] = "-1"; - $_SESSION['numeroBonExamen_C'] = "-1"; - $_SESSION['numeroBonOptique_C'] = "-1"; - $_SESSION['numeroBonKine_C'] = "-1"; - - $_SESSION['okId'] = "-1"; - } - - public function index($numeroBeneficiaire="", $numeroAdherent="", $nomBeneficiaire="", - $prenomsBeneficiaire="", $telephonePortable="", $email="", $numeroBonConsultation="", - $numeroBonOrdonnance="", $numeroBonHospitalisation="", $numeroBonOptique="", - $numeroBonExamen="", $numeroBonKine="", $numeroBonSeance="") - { - if (isset($_POST['numeroBeneficiaire'])) - { - $numeroBeneficiaire=trim($_POST['numeroBeneficiaire']); - $numeroAdherent=trim($_POST['numeroAdherent']); - $nomBeneficiaire=trim($_POST['nomBeneficiaire']); - $prenomsBeneficiaire=trim($_POST['prenomsBeneficiaire']); - $telephonePortable=trim($_POST['telephonePortable']); - $email=trim($_POST['email']); - $numeroBonConsultation=trim($_POST['numeroBonConsultation']); - $numeroBonOrdonnance=trim($_POST['numeroBonOrdonnance']); - $numeroBonHospitalisation=trim($_POST['numeroBonHospitalisation']); - $numeroBonOptique=trim($_POST['numeroBonOptique']); - $numeroBonExamen=trim($_POST['numeroBonExamen']); - $numeroBonKine=trim($_POST['numeroBonKine']); - $numeroBonSeance=trim($_POST['numeroBonSeance']); - - if ($numeroBonConsultation=="0") - { - $numeroBonConsultation=""; - } - - if ($numeroBonOrdonnance=="0") - { - $numeroBonOrdonnance=""; - } - - if ($numeroBonHospitalisation=="0") - { - $numeroBonHospitalisation=""; - } - - if ($numeroBonOptique=="0") - { - $numeroBonOptique=""; - } - - if ($numeroBonExamen=="0") - { - $numeroBonExamen=""; - } - - if ($numeroBonKine=="0") - { - $numeroBonKine=""; - } - - if ($numeroBonSeance=="0") - { - $numeroBonSeance=""; - } - - if ($numeroBeneficiaire<=" " && $numeroAdherent<=" " && $numeroBeneficiaire<=" " && - $nomBeneficiaire<=" " && $prenomsBeneficiaire<=" " && $telephonePortable<=" " && $email<=" "&& - $numeroBonConsultation<=" " && $numeroBonOrdonnance<=" " && $numeroBonHospitalisation<=" " && $numeroBonOptique<=" "&& - $numeroBonExamen<=" " && $numeroBonKine<=" " && $numeroBonSeance<=" ") - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - else - if ($numeroBeneficiaire>" ") - { - $beneficiaires = $this->beneficiaire->getBeneficiaire($numeroBeneficiaire); - } - else - if ($numeroAdherent>" ") - { - $beneficiaires = $this->beneficiaire->getBeneficiairesAdh($numeroAdherent); - } - else - if ($numeroBonConsultation>" ") - { - if ($_SESSION['codeProfil_C']=="CSO") - { - $resultat = $this->beneficiaire->getBeneficiaireConsultationCso($numeroBonConsultation); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireConsultation($numeroBonConsultation); - } - - } - else - if ($numeroBonOrdonnance>" ") - { - if ($_SESSION['codeProfil_C']=="PHA") - { - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $this->rediriger("Pharmacien"); - } - elseif ($_SESSION['codeProfil_C']=="CSO") - { - $resultat = $this->beneficiaire->getBeneficiaireOrdonnanceCso($numeroBonOrdonnance); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - // $this->rediriger("Pharmacie"); - // changement du 23/11/2017 - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireOrdonnance($numeroBonOrdonnance); - } - } - // Optique - else - if ($numeroBonOptique>" ") - { - if ($_SESSION['codeProfil_C']=="OPT") - { - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $this->rediriger("Opticien"); - } - elseif ($_SESSION['codeProfil_C']=="CSO") - { - $resultat = $this->beneficiaire->getBeneficiaireOptiqueCso($numeroBonOptique); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - // $this->rediriger("Optique"); - // Changment du 23/11/2017 - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireOptique($numeroBonOptique); - } - } - // Fin Optique - else - if ($numeroBonHospitalisation>" ") - { - $resultat = $this->beneficiaire->getBeneficiaireHospit($numeroBonHospitalisation); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - // $this->rediriger("Chambre"); - // Changment du 23/11/2017 - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - - // Examen - else - if ($numeroBonExamen>" ") - { - if ($_SESSION['codeProfil_C']=="LAB") - { - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $this->rediriger("Laboratoire"); - } - elseif ($_SESSION['codeProfil_C']=="CSO") - { - $resultat = $this->beneficiaire->getBeneficiaireExamenCso($numeroBonExamen); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - // $beneficiaires = $this->beneficiaire->getBeneficiaireOptique($numeroBonOptique); - $beneficiaires = $this->beneficiaire->getBeneficiaireExamen($numeroBonExamen); - } - } - // Fin Examen - - // Kine Prescription - else - if ($numeroBonKine>" ") - { - if ($_SESSION['codeProfil_C']=="SEA") - { - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - $this->rediriger("Kine"); - } - elseif ($_SESSION['codeProfil_C']=="CSO") - { - // throw new Exception("numeroBonKine : ".$numeroBonKine); - - $resultat = $this->beneficiaire->getBeneficiaireKineCso($numeroBonKine); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladie"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - // $beneficiaires = $this->beneficiaire->getBeneficiaireOptique($numeroBonOptique); - $beneficiaires = $this->beneficiaire->getBeneficiaireExamen($numeroBonExamen); - } - } - // Fin Kine Prescription - - // Kine Séances - else - if ($numeroBonSeance>" ") - { - if ($_SESSION['codeProfil_C']=="SEA") - { - $_SESSION['numeroBonSeance_C'] = $numeroBonSeance; - // $this->rediriger("Kine"); - - // throw new Exception("numeroBonSeance : ".$numeroBonSeance); - - $resultat = $this->beneficiaire->getBeneficiaireSeanceKine($numeroBonSeance); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroBonKine = $resultat['numeroBonKine']; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - $this->rediriger("Kine"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - - } - elseif ($_SESSION['codeProfil_C']=="CSO") - { - // throw new Exception("numeroBonSeance : ".$numeroBonSeance); - - $resultat = $this->beneficiaire->getBeneficiaireSeanceKine($numeroBonSeance); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - $numeroBonSeance = $resultat['numeroBonSeance']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - $_SESSION['numeroBonSeance_C'] = $numeroBonSeance; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Kinecso"); - } - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - } - else - { - // $beneficiaires = $this->beneficiaire->getBeneficiaireOptique($numeroBonOptique); - $beneficiaires = $this->beneficiaire->getBeneficiaireExamen($numeroBonExamen); - } - } - // Fin Kine Séances - - else - { - $beneficiaires = $this->beneficiaire->getBeneficiaires($nomBeneficiaire, $prenomsBeneficiaire, $telephonePortable, $email); - } - } else - { - - $beneficiaires = $this->beneficiaire->getBeneficiaireVide(); - } - - if ($beneficiaires->rowCount() == 1) - { - $beneficiaire = $beneficiaires->fetch(); - $_SESSION['idBeneficiaire_C'] = $beneficiaire['idBeneficiaire']; - $_SESSION['idBeneficiaire_sav'] = $_SESSION['idBeneficiaire_C']; - $this->rediriger("Fichebeneficiaire"); - } else - { - $nbligne = $beneficiaires->rowCount(); - $this->genererVue(array('beneficiaires' => $beneficiaires, 'nbligne' => $nbligne)); - } - } -} \ No newline at end of file diff --git a/Controleur/ControleurRechercheprestations.php b/Controleur/ControleurRechercheprestations.php deleted file mode 100755 index 76709d5..0000000 --- a/Controleur/ControleurRechercheprestations.php +++ /dev/null @@ -1,495 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Rechercheprestations"); - - $this->beneficiaire = new Pbeneficiaire(); - - viderContexte(); - - $_SESSION['numeroBonOrdonnance_C'] = "-1"; - $_SESSION['numeroBonExamen_C'] = "-1"; - $_SESSION['numeroBonOptique_C'] = "-1"; - $_SESSION['numeroBonKine_C'] = "-1"; - $_SESSION['numeroBonSeance_C'] = "-1"; - } - - public function index() - { - if (isset($_POST['numeroBonConsultation'])) - { - $numeroBonConsultation = trim($_POST['numeroBonConsultation']); - $numeroBonOrdonnance = trim($_POST['numeroBonOrdonnance']); - $numeroBonHospitalisation = trim($_POST['numeroBonHospitalisation']); - $numeroBonOptique = trim($_POST['numeroBonOptique']); - $numeroBonExamen = trim($_POST['numeroBonExamen']); - $numeroBonKine = trim($_POST['numeroBonKine']); - $numeroBonSeance = trim($_POST['numeroBonSeance']); - - // vérifier qu'une variable est un nombre entier - /* - if(ctype_digit($var)){ - echo "Cette variable est un entier et ne contient que des chiffres"; - } else{ - echo "Cette variable n'est pas un entier"; - } - */ - - if ( - ( !empty($numeroBonConsultation) && !is_numeric($numeroBonConsultation) ) or - ( !empty($numeroBonOrdonnance) && !is_numeric($numeroBonOrdonnance) ) or - ( !empty($numeroBonHospitalisation) && !is_numeric($numeroBonHospitalisation) ) or - ( !empty($numeroBonOptique) && !is_numeric($numeroBonOptique) ) or - ( !empty($numeroBonExamen) && !is_numeric($numeroBonExamen) ) or - ( !empty($numeroBonKine) && !is_numeric($numeroBonKine) ) or - ( !empty($numeroBonSeance) && !is_numeric($numeroBonSeance) ) - ) - { - $this->genererVue(array('message_recherche' => 'VALEUR NUMERIQUE EXIGEE!')); - exit(); - } - - if ($numeroBonConsultation=="") - { - $numeroBonConsultation="0"; - } - - if ($numeroBonOrdonnance=="") - { - $numeroBonOrdonnance="0"; - } - - if ($numeroBonHospitalisation=="") - { - $numeroBonHospitalisation="0"; - } - - if ($numeroBonOptique=="") - { - $numeroBonOptique="0"; - } - - if ($numeroBonExamen=="") - { - $numeroBonExamen="0"; - } - - if ($numeroBonKine=="") - { - $numeroBonKine="0"; - } - - if ($numeroBonSeance=="") - { - $numeroBonSeance="0"; - } - - // - - if ( - ( !empty($numeroBonConsultation) && !ctype_digit($numeroBonConsultation) ) or - ( !empty($numeroBonOrdonnance) && !ctype_digit($numeroBonOrdonnance) ) or - ( !empty($numeroBonHospitalisation) && !ctype_digit($numeroBonHospitalisation) ) or - ( !empty($numeroBonOptique) && !ctype_digit($numeroBonOptique) ) or - ( !empty($numeroBonExamen) && !ctype_digit($numeroBonExamen) ) or - ( !empty($numeroBonKine) && !ctype_digit($numeroBonKine) ) or - ( !empty($numeroBonSeance) && !ctype_digit($numeroBonSeance) ) - ) - { - $this->genererVue(array('message_recherche' => 'VALEUR NUMERIQUE EXIGEE! 2')); - exit(); - } - - if ($numeroBonConsultation>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireConsultationCso($numeroBonConsultation); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'BON DE CONSULTATION '.$numeroBonConsultation.' INTROUVABLE!')); - exit(); - } - } - else - if ($numeroBonOrdonnance>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireOrdonnanceCso($numeroBonOrdonnance); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'ORDONNANCE '.$numeroBonOrdonnance.' INTROUVABLE!')); - exit(); - } - } - // Optique - else - if ($numeroBonOptique>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireOptiqueCso($numeroBonOptique); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'BON OPTIQUE '.$numeroBonOptique.' INTROUVABLE!')); - exit(); - } - } - // Fin Optique - else - if ($numeroBonHospitalisation>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireHospit($numeroBonHospitalisation); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'BON HOSPITALISATION '.$numeroBonHospitalisation.' INTROUVABLE!')); - exit(); - } - } - // Examen - else - if ($numeroBonExamen>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireExamenCso($numeroBonExamen); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'BON EXAMEN '.$numeroBonExamen.' INTROUVABLE!')); - exit(); - } - } - // Fin Examen - - // Prescription Kine - else - if ($numeroBonKine>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireKineCso($numeroBonKine); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - else - { - $this->genererVue(array('message_recherche' => 'BON PRESCRIPTION KINE '.$numeroBonKine.' INTROUVABLE!')); - exit(); - } - } - // Fin Prescription Kine - - // Séance Kine - else - if ($numeroBonSeance>"0") - { - $resultat = $this->beneficiaire->getBeneficiaireSeanceKine($numeroBonSeance); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $numeroBonKine = $resultat['numeroBonKine']; - - $resultat = $this->beneficiaire->getBeneficiaireKineCso($numeroBonKine); - $idBeneficiaire = $resultat['idBeneficiaire']; - - if ($idBeneficiaire > "0") - { - $idBeneficiaire = $resultat['idBeneficiaire']; - - $numeroFeuilleMaladie = $resultat['numeroFeuilleMaladie']; - - $numeroBonConsultation = $resultat['numeroBonConsultation']; - $numeroBonHospitalisation = $resultat['numeroBonHospitalisation']; - - $numeroBonOrdonnance = $resultat['numeroBonOrdonnance']; - $numeroBonOptique = $resultat['numeroBonOptique']; - $numeroBonExamen = $resultat['numeroBonExamen']; - $numeroBonKine = $resultat['numeroBonKine']; - - $numeroPrescription = $resultat['numeroPrescription']; - $numeroOptique = $resultat['numeroOptique']; - $numeroExamen = $resultat['numeroExamen']; - $numeroPrescriptionKine = $resultat['numeroPrescriptionKine']; - - $beneficiaire = $this->beneficiaire->getContexteBeneficiaireId($idBeneficiaire); - - $_SESSION['numeroFeuilleMaladie_C'] = $numeroFeuilleMaladie; - - $_SESSION['numeroBonConsultation_C'] = $numeroBonConsultation; - $_SESSION['numeroBonHospitalisation_C'] = $numeroBonHospitalisation; - - $_SESSION['numeroBonOrdonnance_C'] = $numeroBonOrdonnance; - $_SESSION['numeroBonOptique_C'] = $numeroBonOptique; - $_SESSION['numeroBonExamen_C'] = $numeroBonExamen; - $_SESSION['numeroBonKine_C'] = $numeroBonKine; - - $_SESSION['numeroPrescription_C'] = $numeroPrescription; - $_SESSION['numeroOptique_C'] = $numeroOptique; - $_SESSION['numeroExamen_C'] = $numeroExamen; - $_SESSION['numeroPrescriptionKine_C'] = $numeroPrescriptionKine; - - $this->rediriger("Feuillemaladiecons"); - exit(); - } - } - else - { - $this->genererVue(array('message_recherche' => 'BON SEANCE KINE '.$numeroBonSeance.' INTROUVABLE!')); - exit(); - } - } - // Fin Séance Kine - else - { - $this->genererVue(array('message_recherche' => 'VEUILLEZ ENTRER LES CRITERES DE RECHERCHE')); - } - } - else - { - $this->genererVue(array('message_recherche' => 'VEUILLEZ ENTRER LES CRITERES DE RECHERCHE')); - } - } -} \ No newline at end of file diff --git a/Controleur/ControleurRemboursement.php b/Controleur/ControleurRemboursement.php deleted file mode 100755 index d6c43ac..0000000 --- a/Controleur/ControleurRemboursement.php +++ /dev/null @@ -1,132 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Remboursement'); - - $this->remboursement = new Remboursement(); - $this->ged = new Ged(); - } - - public function index($msgErreur=null) - { - $message = ""; - - $nouveau_fichier = "Rien"; - - $idDemandeRemboursement = $_SESSION['idDemandeRemboursement'] ?? '0'; - - if(!empty($_POST)) - { - define('TARGET', $_SESSION['cheminGed']); // Repertoire cible - define('MAX_SIZE', 10000000); // Taille max en octets du fichier - - //var_dump($_SESSION['cheminGed']); - - - - $tabExt = array("bmp", "gif", "jpeg", "jpg", "pdf", "png"); // 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->enregistrergedRD($idDemandeRemboursement, $nomOrigine, $nouveau_fichier, $taille); - } - 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 - } - - $msgErreurGed = $message; - - $benficiaires = $this->remboursement->getBeneficaire(); - - $demande = $this->remboursement->getDemandeRemboursement($idDemandeRemboursement); - - $geds = $this->ged->getgedRd(); - - unset($_FILES['fichier_upload']); - - $this->genererVue(array('benficiaires' => $benficiaires, 'msgErreurGed' => $msgErreurGed, - 'demande' => $demande, 'geds' => $geds)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurRendezvous.php b/Controleur/ControleurRendezvous.php deleted file mode 100755 index b0dc9ae..0000000 --- a/Controleur/ControleurRendezvous.php +++ /dev/null @@ -1,37 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Rendezvous'); - - $this->rendezvous = new Rendezvous(); - $this->prestataire = new Prestataire(); - } - - public function index() - { - $idDemandeRdv = $_SESSION['idDemandeRdv'] ?? '0'; - - $benficiaires = $this->rendezvous->getBeneficaire(); - - $demande = $this->rendezvous->getDemandeRdv($idDemandeRdv); - - $specialites = $this->rendezvous->getSpecialiteRdv(); - - $prestataires = $this->prestataire->getprestatairerdvmobile(); - - $this->genererVue(array('benficiaires' => $benficiaires, 'demande' => $demande, - 'specialites' => $specialites, 'prestataires' => $prestataires)); - } - -} \ No newline at end of file diff --git a/Controleur/ControleurRequetes.php b/Controleur/ControleurRequetes.php deleted file mode 100755 index ab865b7..0000000 --- a/Controleur/ControleurRequetes.php +++ /dev/null @@ -1,21 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Requetes'); - - $this->requetes = (new Requetes())->getListe(); - } - - public function index() { - $this->genererVue(array('requetes' => $this->requetes)); - } -} \ No newline at end of file diff --git a/Controleur/ControleurSpadherent.php b/Controleur/ControleurSpadherent.php deleted file mode 100755 index b25ad38..0000000 --- a/Controleur/ControleurSpadherent.php +++ /dev/null @@ -1,21 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue("Spadherent"); - - $this->spadherent = new Adherent(); - } - public function index() { - $idAdherent = $_SESSION['idAdherent_C']; - $spadherent = $this->spadherent->getRapportSpAdherent($idAdherent); - $this->genererVue(array('spadherent' => $spadherent)); - } -} \ No newline at end of file diff --git a/Vue/Accueilassure/index.php b/Vue/Accueilassure/index.php deleted file mode 100755 index b891256..0000000 --- a/Vue/Accueilassure/index.php +++ /dev/null @@ -1,1476 +0,0 @@ - - -titre = "Intersanté - Accueil"; - - $pourcentage = round((100*$limite_adherent['consommation'])/$limite_adherent['plafond']); - - // var_dump($garantieadherents); -?> - - -
-
-
-
-
-

- - -

-
- -
-

- - -

-
- -
-
- - - -
-
-
- - -
- - - - - - - - -
- - -
- -

- - -
-
-
-
-
-
- -
-
- -
-
-
- -
-
-
-
-
- - -
-
-
-
-
- -
-
-
- -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
- -
-
- -
-
-
- -
-
-
-
-
-
-
- -
- -
-

- - - -

- -
-
- - - - - - - - - - - - - - - - - -
= 50%'?>= 80%'?>
-
- -
-
- -
- - - - - - - - - - - - - nettoyer($v['champApplication']); - $pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']); - $idAdherent = $this->nettoyer($v['idAdherent']); - $codeGarantie = $this->nettoyer($v['codeGarantie']); - $exercieReference = $this->nettoyer($v['exercieReference']); - $plafondFamille = format_N($this->nettoyer($v['plafondFamille'])); - $plafondFamille = format_N($this->nettoyer($v['plafondFamille'])); - ?> - ='50' && $pourcentConsoFamille<'80'): ?> - - ='80' && $pourcentConsoFamille <'100'): ?> - - ='100'): ?> - - - - - - - - - - - - -
nettoyer($v['exercieReference'])?> - ='95'): ?> - " href="javascript:alert('Plafond atteint pour cette garantie!');"> - - nettoyer($v['garantie'])?> - - - - nettoyer($v['garantie'])?> - - nettoyer($v['consommationFamille'])) ?>nettoyer($v['soldeGarantieFamille'])) ?>
-
- -
- nettoyer($v['champApplication']); - $pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']); - $idAdherent = $this->nettoyer($v['idAdherent']); - $codeGarantie = $this->nettoyer($v['codeGarantie']); - $exercieReference = $this->nettoyer($v['exercieReference']); - $plafondFamille = format_N($this->nettoyer($v['plafondFamille'])); - $garantie = $this->nettoyer($v['garantie']); - $exercice = $this->nettoyer($v['exercieReference']); - ?> -
-
-
-
-
- ='50' && $pourcentConsoFamille<'80'): ?> - - ='80' && $pourcentConsoFamille <'100'): ?> - - ='100'): ?> - " href="javascript:alert_limite('G');"> - - - - - -
- -
-
-
-
-
-
- - -
-
- -
-
- - nettoyer($v['consommationFamille'])) ?> -
-
- -
-
- - nettoyer($v['soldeGarantieFamille'])) ?> -
-
-
- - - -
-
-

- -

-
-
-
- -
-
-
-
-
- -
- - -
-

- - - -

- -
-
-
-
-
-
- - - -
-
- -
-
- -
- -
- -
-
-
- -
-
-
- -
- -
- - -
- -
-
-
- - -
-
-
- -
-
-
- - -
-
-
- - -
- -
- -
-
- - - - - - - - - - - - - - - - - nettoyer($beneficiaire['idBeneficiaire']); - $numeroBeneficiaire = $this->nettoyer($beneficiaire['numeroBeneficiaire']); - $pourcent = round((100*$beneficiaire['consommation'])/$beneficiaire['plafond'],1); - - $faceRegistered = $this->nettoyer($beneficiaire['faceRegistered']); - $lienPhoto = $this->nettoyer($beneficiaire['lienPhoto']); - - // vérifier que la photo du bénéficiaire existe - $photo = ""; - $photoAssureCrypte = ""; - - if($faceRegistered == "1" && $lienPhoto>" ") - { - /* - $photo = $_SESSION['lienPhotoFace'] . $lienPhoto; - if(!file_exists($photo)) - { - $photoAssureCrypte = ""; - } - else - { - $photoAssureCrypte = decryptImage($photo); - } - */ - $photo = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$lienPhoto; - - $photoAssureCrypte = $photo; - - } - /* - var_dump - ( - array( - "photoAssureCrypte" => $photoAssureCrypte, - ) - - ); - */ - $prestationPossible = $this->nettoyer($beneficiaire['prestationPossibleEncaissement']); - - $impaye = ($prestationPossible=="0") ? 1 : 0; - ?> - - - - - - - - - - - - - - - - - - - -
%
- -
- <?= _(" - > -
- -
- -
- -
- - - nettoyer($beneficiaire['nomBeneficiaire'])." ".$this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?> - - nettoyer($beneficiaire['nomBeneficiaire'])." ".$this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?> - nettoyer($beneficiaire['dateNaissance']), $_SESSION['lang']) ?>nettoyer($beneficiaire['lienparente']) ?>nettoyer($beneficiaire['plafond'])) ?>nettoyer($beneficiaire['consommation'])) ?>nettoyer($beneficiaire['soldeConsommation'])) ?> - -
-
-
- - -
- nettoyer($beneficiaire['idBeneficiaire']); - $numeroBeneficiaire = $this->nettoyer($beneficiaire['numeroBeneficiaire']); - $pourcent = round((100*$beneficiaire['consommation'])/$beneficiaire['plafond'],1); - - $faceRegistered = $this->nettoyer($beneficiaire['faceRegistered']); - $lienPhoto = $this->nettoyer($beneficiaire['lienPhoto']); - - $prestationPossible = $this->nettoyer($beneficiaire['prestationPossibleEncaissement']); - - // vérifier que la photo du bénéficiaire existe - $photo = ""; - $photoAssureCrypte = ""; - - if($faceRegistered == "1" && $lienPhoto>" ") - { - $photo = $_SESSION['lienPhotoFace'] . $lienPhoto; - if(!file_exists($photo)) - { - $photoAssureCrypte = ""; - } - else - { - $photoAssureCrypte = decryptImage($photo); - } - } - ?> -
- -
- -
- <?= _(" - > -
- -
- -
- -
- -
- -
-

nettoyer($beneficiaire['nomBeneficiaire'])." ".$this->nettoyer($beneficiaire['prenomsBeneficiaire']) ?>

-
-
- -
-
-
- - nettoyer($beneficiaire['ageBeneficiaire'])." "._("ans") ?> -
-
- -
-
- - nettoyer($beneficiaire['lienparente']) ?> -
-
-
- -
-
-
- - nettoyer($beneficiaire['plafond'])) ?> -
-
- -
-
- - nettoyer($beneficiaire['consommation'])) ?> -
-
-
- -
-
-
- - nettoyer($beneficiaire['soldeConsommation'])) ?> -
-
- -
-
- - -
-
-
- -
-
- -
-
- - -
- -
-
-
- -
- -
- -
-
- -
-
-
- - -
-
-
- -
-
-
- - -
-
-
- -
- -
- - -
-
-
-
- -
-
-
-
- - -
-
- -
-
-
- - -
-
-
- -
-
-
- - -
-
-
- -
- -
-
-
- -
-
-
- -
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
- -
-
-
- - -
-
-
- -
- -
-
-
- -
-
-
-
-
- - - - - - - - - - - -
- diff --git a/Vue/Ajaxchangerentiteportail/english.php b/Vue/Ajaxchangerentiteportail/english.php deleted file mode 100755 index c7d3d4e..0000000 --- a/Vue/Ajaxchangerentiteportail/english.php +++ /dev/null @@ -1,32 +0,0 @@ - - - -
-

-
- Please review your entity! -
-

-
- -
- - -
- - -
-

-
- Your subscription has expired -
-

-
- - -
- - -
- - diff --git a/Vue/Ajaxchangerentiteportail/french.php b/Vue/Ajaxchangerentiteportail/french.php deleted file mode 100755 index f4ff924..0000000 --- a/Vue/Ajaxchangerentiteportail/french.php +++ /dev/null @@ -1,32 +0,0 @@ - - - -
-

-
- Veuillez revoir votre entité! -
-

-
- -
- - -
- - -
-

-
- Votre abonnement a expiré! -
-

-
- - -
- - -
- - diff --git a/Vue/Ajaxchangerentiteportail/index.php b/Vue/Ajaxchangerentiteportail/index.php deleted file mode 100755 index 6e59fa0..0000000 --- a/Vue/Ajaxchangerentiteportail/index.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/Vue/Ajaxchargerlisteprestataires/index.php b/Vue/Ajaxchargerlisteprestataires/index.php deleted file mode 100755 index 12b3e49..0000000 --- a/Vue/Ajaxchargerlisteprestataires/index.php +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/Vue/Ajaxconsosadherent/index.php b/Vue/Ajaxconsosadherent/index.php deleted file mode 100755 index 3a0e392..0000000 --- a/Vue/Ajaxconsosadherent/index.php +++ /dev/null @@ -1,161 +0,0 @@ - - - diff --git a/Vue/Ajaxconsosbeneficiaire/index.php b/Vue/Ajaxconsosbeneficiaire/index.php deleted file mode 100755 index 3f010a2..0000000 --- a/Vue/Ajaxconsosbeneficiaire/index.php +++ /dev/null @@ -1,157 +0,0 @@ - - - diff --git a/Vue/Ajaxconsulteractesgarantiebareme/index.php b/Vue/Ajaxconsulteractesgarantiebareme/index.php deleted file mode 100755 index ff7d62a..0000000 --- a/Vue/Ajaxconsulteractesgarantiebareme/index.php +++ /dev/null @@ -1,111 +0,0 @@ -nettoyer($garantie['codeGarantie']); - $garantie = $this->nettoyer($garantie['libelle']); - - if (est_anglophone()) - { - $garantie = $this->nettoyer($garantie['libelleEng']); - } - -?> - - -