diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4892476
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+
+Config/
+Config
+Config/dev.ini
+vendor/
+vendor
+logs/
+logs
+Cron/prod.ini
+Temp/
+Temp
+*.ssh
+.ssh/
\ No newline at end of file
diff --git a/Controleur/ControleurRemboursement.php b/Controleur/ControleurRemboursement.php
index 26386e0..7d1f33c 100755
--- a/Controleur/ControleurRemboursement.php
+++ b/Controleur/ControleurRemboursement.php
@@ -3,11 +3,13 @@ require_once 'Framework/Controleur.php';
require_once 'Modele/Remboursement.php';
require_once 'Modele/Ged.php';
require_once 'Modele/Menuvueutilisateur.php';
+require_once 'Modele/Banque.php';
class ControleurRemboursement extends Controleur {
private $menuvue;
private $remboursement;
private $ged;
+ private $banque;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
@@ -15,6 +17,7 @@ class ControleurRemboursement extends Controleur {
$this->remboursement = new Remboursement();
$this->ged = new Ged();
+ $this->banque = new Banque();
}
public function index($msgErreur=null)
@@ -169,8 +172,20 @@ class ControleurRemboursement extends Controleur {
unset($_FILES['fichier_upload']);
+ $banque = $this->remboursement->getBanqueAssure();
+ $banques = $this->banque->getListe();
+
$this->genererVue(array('benficiaires' => $benficiaires, 'msgErreurGed' => $msgErreurGed,
- 'demande' => $demande, 'geds' => $geds));
+ 'demande' => $demande, 'geds' => $geds, 'banque' => $banque, 'banques' => $banques));
+ }
+
+ public function enregistrercptbancaire()
+ {
+ $codeBanque = $this->requete->getParametreFormulaire("codeBanque");
+ $numeroCompteBancaire = $this->requete->getParametreFormulaire("numeroCompteBancaire");
+ $intituleCompteBancaire = $this->requete->getParametreFormulaire("intituleCompteBancaire");
+
+ $this->remboursement->enregistrercptbancaire($codeBanque, $numeroCompteBancaire, $intituleCompteBancaire);
}
}
\ No newline at end of file
diff --git a/Controleur/ControleurRendezvous.php b/Controleur/ControleurRendezvous.php
index f5a474f..3a0e24d 100755
--- a/Controleur/ControleurRendezvous.php
+++ b/Controleur/ControleurRendezvous.php
@@ -30,23 +30,22 @@ class ControleurRendezvous extends Controleur {
$prestataires = $this->prestataire->getprestatairerdvmobile();
- /*
- var_dump
- (
- array
- (
- "idDemandeRdv" => $idDemandeRdv,
- "benficiaires" => $benficiaires,
- "demande" => $demande,
- "specialites" => $specialites,
- "prestataires" => $prestataires,
- )
- );
- exit();
- */
-
$this->genererVue(array('benficiaires' => $benficiaires, 'demande' => $demande,
'specialites' => $specialites, 'prestataires' => $prestataires));
}
+ public function rdvpossible()
+ {
+ $codePrestataire= $this->requete->getParametreFormulaire("codePrestataire");
+
+ $rdvPossible = $this->prestataire->rdvPossible($codePrestataire);
+
+ $this->genererVueAjax
+ (
+ array
+ (
+ 'rdvPossible' => $rdvPossible
+ )
+ );
+ }
}
\ No newline at end of file
diff --git a/Controleur/Ebenegmail.php b/Controleur/Ebenegmail.php
old mode 100755
new mode 100644
index 7040520..84bf5c6
--- a/Controleur/Ebenegmail.php
+++ b/Controleur/Ebenegmail.php
@@ -1,30 +1,25 @@
CharSet = 'UTF-8'; // Utiliser UTF-8
-$mail->Encoding = 'base64'; // Encodage du contenu
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
-// 2 = // dev => client and server messages
-// $mail->SMTPDebug = 2; // dev => client and server messages
+// 2 = client and server messages
+
$mail->SMTPDebug = 0;
+// $mail->SMTPDebug = 1;
+// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html';
-$mail->Host = 'smtp.gmail.com';
-// $mail->Host = gethostbyname('smtp.gmail.com');
-// if your network does not support SMTP over IPv6
+// $mail->Host = 'smtp.gmail.com';
+$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
@@ -32,10 +27,19 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
-$mail->Username = "intersantesaas@gmail.com";
+// $mail->Username = "intersanteebene@gmail.com";
+// $mail->Username = "intersante@radiant.rw";
+$mail->Username = "bkwitonda@radiant.rw";
+
// $mail->Password = "Moritio1973";
-$mail->Password = "qvix febq ylkp enks";
+// $mail->Password = "radiant@123?";
+// $mail->Password = "ybad kjir ghck aokr";
+$mail->Password = "office@2650000";
-$mail->setFrom('intersantesaas@gmail.com', 'INTER-SANTE : EBENE');
+// $mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
+$mail->setFrom('intersante@radiant.rw', 'RADIANT INSURANCE COMPANY');
+$mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY');
+
+// à activer en cas de besoin
+// $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
-$_SESSION['c_mail'] = $mail;
diff --git a/Cron/Ebenegmail.php b/Cron/Ebenegmail.php
old mode 100755
new mode 100644
index b3e3792..84bf5c6
--- a/Cron/Ebenegmail.php
+++ b/Cron/Ebenegmail.php
@@ -3,22 +3,23 @@
// date_default_timezone_set("Africa/Kigali");
require 'PHPMailer/PHPMailerAutoload.php';
-$mail = new PHPMailer(true);
-$mail->CharSet = 'UTF-8'; // Utiliser UTF-8
-$mail->Encoding = 'base64'; // Encodage du contenu
+$mail = new PHPMailer;
+
$mail->isSMTP();
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
+
$mail->SMTPDebug = 0;
+// $mail->SMTPDebug = 1;
+// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html';
-$mail->Host = 'smtp.gmail.com';
-// $mail->Host = gethostbyname('smtp.gmail.com');
-// if your network does not support SMTP over IPv6
+// $mail->Host = 'smtp.gmail.com';
+$mail->Host = 'smtp.office365.com';
$mail->Port = 587;
@@ -26,11 +27,18 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
-$mail->Username = "intersanteebene@gmail.com";
+// $mail->Username = "intersanteebene@gmail.com";
+// $mail->Username = "intersante@radiant.rw";
+$mail->Username = "bkwitonda@radiant.rw";
-$mail->Password = "Moritio1973";
+// $mail->Password = "Moritio1973";
+// $mail->Password = "radiant@123?";
+// $mail->Password = "ybad kjir ghck aokr";
+$mail->Password = "office@2650000";
-$mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE');
+// $mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
+$mail->setFrom('intersante@radiant.rw', 'RADIANT INSURANCE COMPANY');
+$mail->addReplyTo('verification@radiant.rw', 'RADIANT INSURANCE COMPANY');
// à activer en cas de besoin
// $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
diff --git a/Framework/Functions.php b/Framework/Functions.php
index 7442abc..d23298d 100755
--- a/Framework/Functions.php
+++ b/Framework/Functions.php
@@ -161,7 +161,7 @@ function dateFr($d)
function dateEng($d)
{
if ($d<="0000-00-00") return "";
- return date("m/j/Y", strtotime($d));
+ return date("m/d/Y", strtotime($d));
}
function dateLang($d, $lang=null)
diff --git a/Js/fonctions.js b/Js/fonctions.js
index a8590b7..896f479 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -17986,12 +17986,24 @@ function affichelisteprestataires(libelle)
}
}
-function selectPrestataire(code, libelle){
+function selectPrestataire(code, libelle, rdvPossible){
nomForm = $("#nomForm").val();
-
$("#searchInputPrestataire").val(libelle);
$("#div_selection_prestataire").hide();
$("#codePrestataire").val(code);
+ $("#rdvPossible").val(rdvPossible);
+
+ // alert("rdvPossible selectPrestataire Desktop => "+rdvPossible);
+ if(rdvPossible == "1")
+ {
+ $("#div_message_rdv").hide();
+ }
+ else
+ {
+ $("#div_message_rdv").show();
+ marquee_rdv.stop();
+ marquee_rdv.start();
+ }
}
function estDateAnncienne(date) {
@@ -18479,7 +18491,6 @@ function enregistrer_rdv()
return;
}
-
v_msg="Confirmez-vous l'enregistrement de votre demande?";
v_msgEng="Do you confirm the registration of your request?";
@@ -18490,7 +18501,7 @@ function enregistrer_rdv()
donnees = 'numeroBeneficiaire='+ numeroBeneficiaire+'&debutRdv='+debutRdv;
donnees += '&finRdv='+finRdv+'&codePrestataire='+codePrestataire;
donnees += '&codeSpecialite='+codeSpecialite+'&motifRdv='+motifRdv;
-
+
vLink = "Ajaxdemanderdv/enregistrer/";
$.ajax({
@@ -18500,18 +18511,13 @@ function enregistrer_rdv()
error: function(errorData) {
},
success: function(data) {
- // alert(data);
- // $('#div_test_gabarit').html(data);
-
},
complete: function() {
- ouvrir_rdv();
+ historique_rdv();
}
-
});
} else {
- // L'utilisateur a annulé
console.log("Confirmation refusée");
}
});
@@ -18846,3 +18852,94 @@ function afficherhistoriquefactures()
});
}
+
+function selectPrestataireMobile(){
+ codePrestataire=$("#codePrestataireMobile").val();
+ $("#codePrestataire").val(codePrestataire);
+
+ donnees = 'codePrestataire='+codePrestataire;
+
+ $("#div_rdvPossible").html('
' + '' + '
');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Rendezvous/rdvpossible/",
+ type : 'post',
+ data: donnees,
+ error: function(errorData) {
+ },
+ success: function(data) {
+ // $('#div_test_gabarit').html(data);
+ $("#div_rdvPossible").html(data);
+ },
+ complete: function() {
+ rdvPossible=$("#rdvPossibleAjax").val();
+ // alert("rdvPossible selectPrestataire Mobile => "+rdvPossible);
+ if(rdvPossible == "1")
+ {
+ $("#div_message_rdv").hide();
+ }
+ else
+ {
+ $("#div_message_rdv").show();
+ marquee_rdv.stop();
+ marquee_rdv.start();
+ }
+ }
+ });
+}
+
+// enregistrer_compte_bancaire_assure()
+function enregistrer_compte_bancaire_assure(){
+ codeBanque =$("#codeBanque").val();
+ if (codeBanque<=" ")
+ {
+ $("#codeBanque").focus();
+ v_msg="Veuillez sélectionner une banque!";
+ v_msgEng="Please select a banq!";
+ alert_ebene(v_msg, v_msgEng);
+ return;
+ }
+
+ numeroCompteBancaire=$("#numeroCompteBancaire").val();
+ if (numeroCompteBancaire<=" ")
+ {
+ $("#numeroCompteBancaire").focus();
+ v_msg="Veuillez saisir le No de compte!";
+ v_msgEng="Please enter the account number!";
+ alert_ebene(v_msg, v_msgEng);
+ return;
+ }
+
+ intituleCompteBancaire=$("#intituleCompteBancaire").val();
+ if (intituleCompteBancaire<=" ")
+ {
+ $("#intituleCompteBancaire").focus();
+ v_msg="Veuillez saisir le nom du compte!";
+ v_msgEng="Please enter the account name!";
+ alert_ebene(v_msg, v_msgEng);
+ return;
+ }
+
+ donnees = 'codeBanque='+codeBanque;
+ donnees += '&numeroCompteBancaire='+numeroCompteBancaire;
+ donnees += '&intituleCompteBancaire='+intituleCompteBancaire;
+
+ $("#div_cpt_bancaire").html('' + '' + '
');
+
+ $.ajax({
+ url: $("#racineWeb").val()+"Remboursement/enregistrercptbancaire/",
+ type : 'post',
+ data: donnees,
+ error: function(errorData) {
+ // $('#div_test_gabarit').html(errorData);
+ // $('#div_cpt_bancaire').html(errorData);
+ },
+ success: function(data) {
+ // $('#div_test_gabarit').html(data);
+ // $('#div_cpt_bancaire').html(data);
+ },
+ complete: function() {
+ actualiser_remboursement();
+ }
+ });
+}
diff --git a/Modele/Banque.php b/Modele/Banque.php
index ab6c606..43f91fc 100755
--- a/Modele/Banque.php
+++ b/Modele/Banque.php
@@ -49,4 +49,12 @@ class Banque extends Modele {
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete'],$codebanque));
return ($resultat->rowCount() > 0);
}
+
+ public function getListe() {
+ $sql = 'SELECT codeBanque as `code`, libelle FROM banque order by 2';
+
+ $liste = $this->executerRequete($sql);
+ return $liste->fetchAll(PDO::FETCH_ASSOC);
+ }
+
}
\ No newline at end of file
diff --git a/Modele/Prestataire.php b/Modele/Prestataire.php
index c3ff6e1..5227330 100755
--- a/Modele/Prestataire.php
+++ b/Modele/Prestataire.php
@@ -400,5 +400,12 @@ class Prestataire extends Modele {
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
-
+
+ public function rdvPossible($codePrestataire)
+ {
+ $sql = 'SELECT fn_rdv_possible(?) AS rdvPossible;';
+ $resultat = $this->executerRequete($sql, array($codePrestataire));
+ $ligne = $resultat->fetch(PDO::FETCH_ASSOC);
+ return $ligne['rdvPossible'];
+ }
}
\ No newline at end of file
diff --git a/Modele/Remboursement.php b/Modele/Remboursement.php
index 325684f..7032ca9 100755
--- a/Modele/Remboursement.php
+++ b/Modele/Remboursement.php
@@ -80,4 +80,24 @@ class Remboursement extends Modele {
}
+ public function getBanqueAssure()
+ {
+ $idAdherent = $_SESSION['idAdherent_C'];
+ $sql = 'Call sp_a_get_banque_assure(?)';
+ $liste = $this->executerRequete($sql,array($idAdherent));
+ return $liste->fetch(PDO::FETCH_ASSOC);
+ }
+
+ public function enregistrercptbancaire($codeBanque, $numeroCompteBancaire, $intituleCompteBancaire)
+ {
+ $idAdherent = $_SESSION['idAdherent_C'];
+
+ $sql = 'Call sp_a_enregistrer_cpt_bancaire(?, ?, ?, ?);';
+
+ // var_dump(array($idAdherent, $codeBanque, $numeroCompteBancaire, $intituleCompteBancaire));
+ // exit;
+
+ $this->executerRequete($sql,array($idAdherent, $codeBanque, $numeroCompteBancaire, $intituleCompteBancaire));
+ }
+
}
\ No newline at end of file
diff --git a/Modele/Rendezvous.php b/Modele/Rendezvous.php
index aaed185..4cddf7e 100755
--- a/Modele/Rendezvous.php
+++ b/Modele/Rendezvous.php
@@ -49,7 +49,7 @@ class Rendezvous extends Modele {
public function getSpecialiteRdv()
{
if(est_anglophone()){
- $sql = 'CALL sp_a_get_specialites_rdv_eng();';
+ $sql = 'CALL sp_a_get_specialites_rdv_eng(?);';
}else{
$sql = 'CALL sp_a_get_specialites_rdv(?)';
}
diff --git a/Vue/Ajaxchargerlisteprestataires/index.php b/Vue/Ajaxchargerlisteprestataires/index.php
index 12b3e49..8caf57b 100755
--- a/Vue/Ajaxchargerlisteprestataires/index.php
+++ b/Vue/Ajaxchargerlisteprestataires/index.php
@@ -6,7 +6,7 @@ if(!empty($prestataires)) {
-', '=$v["libelle"];?>')">= $v["libelle"]; ?>
+', '=$v["libelle"];?>', '=$v["rdvPossible"];?>')">= $v["libelle"]; ?>
\ No newline at end of file
diff --git a/Vue/Remboursement/index.php b/Vue/Remboursement/index.php
index d8a67f5..09860e1 100755
--- a/Vue/Remboursement/index.php
+++ b/Vue/Remboursement/index.php
@@ -20,7 +20,15 @@
$numeroBeneficiaire = "";
$observation = "";
}
-
+
+ /*
+ var_dump
+ (
+ array(
+ "banque" => $banque,
+ )
+ );
+ */
?>
@@ -144,7 +152,57 @@
-
+
+
+
+ ' ' && $banque['intituleCompteBancaire']>' '): ?>
+
+
+
+
+
+
@@ -205,7 +263,7 @@
" ")) : ?>
-
+
= $msgErreurGed ?>
diff --git a/Vue/Rendezvous/index.php b/Vue/Rendezvous/index.php
index 552ff03..0885a60 100755
--- a/Vue/Rendezvous/index.php
+++ b/Vue/Rendezvous/index.php
@@ -12,6 +12,7 @@
$debutRdv = $this->nettoyer($demande['debutRdv']);
$finRdv = $this->nettoyer($demande['finRdv']);
$codePrestataire = $this->nettoyer($demande['codePrestataire']);
+ $rdvPossible = $this->nettoyer($demande['rdvPossible']);
$prestataire = $this->nettoyer($demande['prestataire']);
$codeSpecialite = $this->nettoyer($demande['codeSpecialite']);
$etatRdv = $this->nettoyer($demande['etatRdv']);
@@ -34,6 +35,7 @@
$debutRdv = date('Y-m-d');
$finRdv = date('Y-m-d');
$codePrestataire = "";
+ $rdvPossible = "0";
$prestataire = "";
$codeSpecialite = "";
$etatRdv = "";
@@ -43,8 +45,12 @@
$heureRdvAccordee = "";
}
+ $messageRdv = _("Attention! Ce prestataire ne prend pas de Rendez-vous en ligne.");
?>
+
+
+
+
+
+
+
diff --git a/Vue/Rendezvous/rdvpossible.php b/Vue/Rendezvous/rdvpossible.php
new file mode 100755
index 0000000..79c09c8
--- /dev/null
+++ b/Vue/Rendezvous/rdvpossible.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 54058e4..42e5c79 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -548,7 +548,7 @@
-
+