Merge branch 'main' of https://git.ebene.ovh/ebene/radiantprestation
This commit is contained in:
commit
4e7721cbfe
52
Controleur/ControleurAjaxdemanderdv.php
Normal file
52
Controleur/ControleurAjaxdemanderdv.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Rendezvous.php';
|
||||
|
||||
class ControleurAjaxdemanderdv extends Controleur {
|
||||
private $rendezvous;
|
||||
|
||||
public function __construct() {
|
||||
$this->rendezvous = new Rendezvous();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$d1 = $this->requete->getParametreDate("d1");
|
||||
$d2 = $this->requete->getParametreDate("d2");
|
||||
$codeEtatRdv = $this->requete->getParametreFormulaire("codeEtatRdv");
|
||||
|
||||
$_SESSION['codeEtatRdv'] = $codeEtatRdv;
|
||||
|
||||
$demandes = $this->rendezvous->getPrisesRdv($d1, $d2, $codeEtatRdv);
|
||||
|
||||
$this->genererVueAjax(array('demandes' => $demandes));
|
||||
}
|
||||
|
||||
|
||||
public function selectionner()
|
||||
{
|
||||
$idDemande = $this->requete->getParametreFormulaire("idDemande");
|
||||
|
||||
$_SESSION['idDemandeRdv'] = $idDemande;
|
||||
}
|
||||
|
||||
public function valider()
|
||||
{
|
||||
$numeroDemandeRdv = $this->requete->getParametreFormulaire("numeroDemandeRdv");
|
||||
$codeEtatRdv = $this->requete->getParametreFormulaire("codeEtatRdv");
|
||||
|
||||
$motifReponseRdv = $this->requete->getParametreFormulaire("motifReponseRdv");
|
||||
|
||||
|
||||
if($codeEtatRdv=="1"){
|
||||
|
||||
$dateRdvAccordee = $this->requete->getParametreDate("dateRdvAccordee");
|
||||
$heureRdvAccordee = $this->requete->getParametreFormulaire("heureRdvAccordee");
|
||||
|
||||
//var_dump($numeroDemandeRdv, $codeEtatRdv, $motifReponseRdv, $dateRdvAccordee, $heureRdvAccordee); die();
|
||||
$this->rendezvous->accorderrdv($numeroDemandeRdv, $dateRdvAccordee, $heureRdvAccordee, $motifReponseRdv);
|
||||
}else{
|
||||
$this->rendezvous->refuserrdv($numeroDemandeRdv, $motifReponseRdv);
|
||||
}
|
||||
}
|
||||
}
|
||||
31
Controleur/ControleurHistoriquerdv.php
Normal file
31
Controleur/ControleurHistoriquerdv.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Rendezvous.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurHistoriquerdv extends Controleur {
|
||||
private $menuvue;
|
||||
private $rendezvous;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Historiquerdv');
|
||||
|
||||
$this->rendezvous = new Rendezvous();
|
||||
|
||||
$_SESSION['idDemandeRdv'] = '0';
|
||||
}
|
||||
|
||||
public function index() {
|
||||
|
||||
$d1 = $_SESSION['p_debutMois_C'];
|
||||
$d2 = date('Y-m-d');
|
||||
$codeEtatRdv = $_SESSION['codeEtatRdv'] ?? "";
|
||||
|
||||
$demandes = $this->rendezvous->getPrisesRdv($d1, $d2, $codeEtatRdv);
|
||||
|
||||
$reponsedemande = $this->rendezvous->getEtatRdv();
|
||||
|
||||
$this->genererVue(array('demandes' => $demandes, 'reponsedemande' => $reponsedemande));
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ class Moritio extends Controleur
|
|||
|
||||
public function getMoritio_2()
|
||||
{
|
||||
return "2026-01-10";
|
||||
return "2027-01-31";
|
||||
}
|
||||
|
||||
public function getLicensed($codeSociete, $nomSociete)
|
||||
|
|
|
|||
37
Controleur/ControleurRendezvous.php
Normal file
37
Controleur/ControleurRendezvous.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Rendezvous.php';
|
||||
require_once 'Modele/Ged.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurRendezvous extends Controleur {
|
||||
private $menuvue;
|
||||
private $rendezvous;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Rendezvous');
|
||||
|
||||
$this->rendezvous = new Rendezvous();
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idDemandeRdv = $_SESSION['idDemandeRdv'] ?? '0';
|
||||
|
||||
$demande = $this->rendezvous->getDemandeRdv($idDemandeRdv);
|
||||
|
||||
$idAdherent = $demande['idAdherent'];
|
||||
|
||||
$benficiaires = $this->rendezvous->getBeneficaire($idAdherent);
|
||||
|
||||
$specialites = $this->rendezvous->getSpecialiteRdv();
|
||||
|
||||
$etatRDV = $this->rendezvous->getEtatRdv();
|
||||
|
||||
$this->genererVue(array('benficiaires' => $benficiaires, 'demande' => $demande,
|
||||
'specialites' => $specialites, 'etatRDV' => $etatRDV));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -11,13 +11,15 @@ $mail->isSMTP();
|
|||
// 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;
|
||||
|
||||
|
|
@ -25,12 +27,17 @@ $mail->SMTPSecure = 'tls';
|
|||
|
||||
$mail->SMTPAuth = true;
|
||||
|
||||
$mail->Username = "intersanteebene@gmail.com";
|
||||
// $mail->Password = "Moritio1973";
|
||||
$mail->Password = "hftebsmxzqviinuh";
|
||||
// $mail->Username = "intersanteebene@gmail.com";
|
||||
// $mail->Username = "intersante@radiant.rw";
|
||||
$mail->Username = "bkwitonda@radiant.rw";
|
||||
|
||||
// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE');
|
||||
$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
|
||||
// $mail->Password = "Moritio1973";
|
||||
// $mail->Password = "radiant@123?";
|
||||
// $mail->Password = "ybad kjir ghck aokr";
|
||||
$mail->Password = "office@2650000";
|
||||
|
||||
// $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
|
||||
|
|
|
|||
|
|
@ -73,12 +73,26 @@ class Cronenvoimailadhrent
|
|||
$this->email->Subject = $this->objet . " : ".$this->nomProduitSante;
|
||||
$this->email->Body = $this->body;
|
||||
|
||||
/*
|
||||
var_dump($this->email);
|
||||
echo "<br> <br> <br>";
|
||||
*/
|
||||
|
||||
if(!$this->email->send())
|
||||
{
|
||||
// Message d'erreur détaillé de PHPMailer
|
||||
$erreur = $this->email->ErrorInfo;
|
||||
echo "Erreur d'envoi : " . $erreur;
|
||||
echo "<br> <br> <br>";
|
||||
|
||||
$this->marquermail($this->idMail, "9");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Message envoye";
|
||||
echo "<br> <br> <br>";
|
||||
|
||||
$this->marquermail($this->idMail, "1");
|
||||
}
|
||||
|
||||
|
|
@ -98,6 +112,10 @@ class Cronenvoimailadhrent
|
|||
$this->objet = $un_mail['objet'];
|
||||
$this->body = $un_mail['message'];
|
||||
|
||||
/*
|
||||
var_dump($un_mail);
|
||||
echo "<br> <br> <br>";
|
||||
*/
|
||||
|
||||
$this->envoyer_un_des_mail();
|
||||
|
||||
|
|
@ -116,6 +134,9 @@ $nbMail = $envoimaildivers->nbMailParCron;
|
|||
|
||||
$envoimaildivers->charger_les_mails($nbMail);
|
||||
|
||||
/*
|
||||
var_dump($envoimaildivers->lesMails);
|
||||
exit();
|
||||
*/
|
||||
|
||||
$envoimaildivers->envoyer_les_mails();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,13 +11,15 @@ $mail->isSMTP();
|
|||
// 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;
|
||||
|
||||
|
|
@ -25,14 +27,18 @@ $mail->SMTPSecure = 'tls';
|
|||
|
||||
$mail->SMTPAuth = true;
|
||||
|
||||
$mail->Username = "intersanteebene@gmail.com";
|
||||
// $mail->Password = "Moritio1973";
|
||||
$mail->Password = "hftebsmxzqviinuh";
|
||||
// $mail->Username = "intersanteebene@gmail.com";
|
||||
// $mail->Username = "intersante@radiant.rw";
|
||||
$mail->Username = "bkwitonda@radiant.rw";
|
||||
|
||||
// $mail->setFrom('intersanteebene@gmail.com', 'INTER-SANTE : MEDICARE');
|
||||
$mail->setFrom('intersanteebene@gmail.com', 'RADIANT INSURANCE COMPANY');
|
||||
// $mail->Password = "Moritio1973";
|
||||
// $mail->Password = "radiant@123?";
|
||||
// $mail->Password = "ybad kjir ghck aokr";
|
||||
$mail->Password = "office@2650000";
|
||||
|
||||
// $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__));
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,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)
|
||||
|
|
|
|||
165
Js/fonctions.js
165
Js/fonctions.js
|
|
@ -18423,3 +18423,168 @@ function facturation_reconnaissance_faciale()
|
|||
$("#btn_pop_confirm_face").click();
|
||||
|
||||
}
|
||||
|
||||
function listerrdv()
|
||||
{
|
||||
d1 = $("#d1").val();
|
||||
d2 = $("#d2").val();
|
||||
|
||||
codeEtatRdv = $("#codeEtatRdv").val();
|
||||
|
||||
donnees = 'd1='+ d1+'&d2='+d2+'&codeEtatRdv='+codeEtatRdv;
|
||||
|
||||
$("#div_dossiers").html('<div style="text-align:center; color: #4caf50 ; font-size:14px;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdemanderdv/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
// alert(data);
|
||||
|
||||
|
||||
$('#div_dossiers').html(data);
|
||||
},
|
||||
complete: function() {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function selectionner_rdv(idDemande)
|
||||
{
|
||||
donnees = 'idDemande='+idDemande;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxdemanderdv/selectionner/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
// alert(data);
|
||||
|
||||
|
||||
|
||||
},
|
||||
complete: function() {
|
||||
ouvrir_rdv();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function ouvrir_rdv()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Rendezvous/");
|
||||
|
||||
}
|
||||
|
||||
function historique_rdv()
|
||||
{
|
||||
window.location.assign($("#racineWeb" ).val()+"Historiquerdv/");
|
||||
|
||||
}
|
||||
|
||||
function valider_rdv()
|
||||
{
|
||||
numeroDemandeRdv = $("#numeroDemandeRdv").val();
|
||||
codeEtatRdv = $("#codeEtatRdv").val();
|
||||
|
||||
motifReponseRdv = $("#motifReponseRdv").val();
|
||||
motifReponseRdv = motifReponseRdv.trim();
|
||||
|
||||
if(codeEtatRdv=="0"){
|
||||
|
||||
v_msg="Un autre état de réponse est obligatoire!";
|
||||
v_msgEng="Another response status is required!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#codeEtatRdv").focus();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (codeEtatRdv=="1"){
|
||||
dateRdvAccordee = $("#dateRdvAccordee").val();
|
||||
heureRdvAccordee = $("#heureRdvAccordee").val();
|
||||
|
||||
if(dateRdvAccordee<=" "){
|
||||
v_msg="Une date de rendez-vous est obligatoire!";
|
||||
v_msgEng="An appointment date is required!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#dateRdvAccordee").focus();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if(heureRdvAccordee<=" "){
|
||||
v_msg="Une heure de rendez-vous est obligatoire!";
|
||||
v_msgEng="An appointment time is required!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#heureRdvAccordee").focus();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}else{
|
||||
dateRdvAccordee = "";
|
||||
heureRdvAccordee = "";
|
||||
}
|
||||
|
||||
|
||||
if(codeEtatRdv=="9" && motifReponseRdv<=" "){
|
||||
v_msg="Le motif est obligatoire!";
|
||||
v_msgEng="The pattern is mandatory!";
|
||||
alert_ebene(v_msg, v_msgEng);
|
||||
|
||||
$("#motifReponseRdv").focus();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
donnees = 'numeroDemandeRdv='+ numeroDemandeRdv+'&codeEtatRdv='+codeEtatRdv;
|
||||
donnees += '&dateRdvAccordee='+dateRdvAccordee+'&heureRdvAccordee='+heureRdvAccordee;
|
||||
donnees += '&motifReponseRdv='+motifReponseRdv;
|
||||
|
||||
v_msg="Confirmez-vous la modification de votre demande?";
|
||||
v_msgEng="Do you confirm the modification of your request?";
|
||||
|
||||
if(confirm_ebene(v_msg, v_msgEng))
|
||||
{
|
||||
vLink = "Ajaxdemanderdv/valider/";
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: $("#racineWeb").val()+vLink,
|
||||
data:donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data) {
|
||||
// alert(data);
|
||||
// $('#div_test_gabarit').html(data);
|
||||
|
||||
},
|
||||
complete: function() {
|
||||
historique_rdv();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function visibilite_date_rdv()
|
||||
{
|
||||
codeEtatRdv = $('#codeEtatRdv').val();
|
||||
|
||||
if(codeEtatRdv=="0" || codeEtatRdv=="1"){
|
||||
$('#tr_date').show();
|
||||
}else{
|
||||
|
||||
$('#tr_date').hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
85
Modele/Rendezvous.php
Normal file
85
Modele/Rendezvous.php
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
<?php
|
||||
require_once 'Framework/Modele.php';
|
||||
|
||||
class Rendezvous extends Modele {
|
||||
|
||||
public function getPrisesRdv($d1, $d2, $codeEtatRdv)
|
||||
{
|
||||
$codeEtatRdv = contruireParamLike($codeEtatRdv);
|
||||
|
||||
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
||||
|
||||
$sql = 'call sp_get_demande_rdv_prestataire(?, ?, ?, ?)';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($codePrestataire, $d1, $d2, $codeEtatRdv));
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getEtatRdv()
|
||||
{
|
||||
if(est_anglophone()){
|
||||
$sql = 'call sp_a_get_etat_rdv_eng();';
|
||||
}else{
|
||||
$sql = 'call sp_a_get_etat_rdv();';
|
||||
}
|
||||
|
||||
$resultat = $this->executerRequete($sql);
|
||||
|
||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
}
|
||||
|
||||
public function getBeneficaire($idAdherent)
|
||||
{
|
||||
$sql = 'Call sp_get_beneficiaire_famille(?)';
|
||||
|
||||
$liste = $this->executerRequete($sql,array($idAdherent));
|
||||
return $liste->fetchAll(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getDemandeRdv($idDemandeRdv)
|
||||
{
|
||||
$sql = 'Call sp_a_demande_rdv(?)';
|
||||
|
||||
$liste = $this->executerRequete($sql,array($idDemandeRdv));
|
||||
|
||||
return $liste->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
}
|
||||
|
||||
public function getSpecialiteRdv()
|
||||
{
|
||||
if(est_anglophone()){
|
||||
$sql = 'CALL sp_a_get_specialites_rdv_eng();';
|
||||
}else{
|
||||
$sql = 'CALL sp_a_get_specialites_rdv(?)';
|
||||
}
|
||||
|
||||
$liste = $this->executerRequete($sql,array($_SESSION['p_codeSociete']));
|
||||
|
||||
return $liste->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
}
|
||||
|
||||
public function accorderrdv($numeroDemandeRdv, $dateRdvAccordee, $heureRdvAccordee, $motifReponseRdv)
|
||||
{
|
||||
$user = $_SESSION['p_codeUtilisateur'];
|
||||
|
||||
$sql = 'CALL sp_p_accorder_rdv(?, ?, ?, ?, ?);';
|
||||
|
||||
|
||||
$this->executerRequete($sql,array($numeroDemandeRdv, $user, $dateRdvAccordee, $heureRdvAccordee, $motifReponseRdv));
|
||||
|
||||
}
|
||||
|
||||
public function refuserrdv($numeroDemandeRdv, $motifReponseRdv)
|
||||
{
|
||||
$user = $_SESSION['p_codeUtilisateur'];
|
||||
|
||||
$sql = 'CALL sp_p_refuser_rdv(?, ?, ?);';
|
||||
|
||||
$this->executerRequete($sql,array($numeroDemandeRdv, $user, $motifReponseRdv));
|
||||
}
|
||||
|
||||
}
|
||||
63
Vue/Ajaxdemanderdv/index.php
Normal file
63
Vue/Ajaxdemanderdv/index.php
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2" style='text-align:center' width="8%"> <?= _("N° RDV") ?> </th>
|
||||
<th rowspan="2" style='text-align:center' width="10%"> Date </th>
|
||||
<th rowspan="2" colspan="2" style='text-align:center' width="30%"> <?= _("Bénéficiaire") ?> </th>
|
||||
|
||||
<th rowspan="2"> <?= _("Prestataire") ?> </th>
|
||||
<th rowspan="2"> <?= _("Spécialité") ?> </th>
|
||||
|
||||
<th colspan="2" style='text-align:center'> <?= _("Répondu") ?> </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Etat") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Motif") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($demandes as $v):
|
||||
$idDemande = $this->nettoyer($v['id']);
|
||||
$numeroDemandeRdv = $this->nettoyer($v['numeroDemandeRdv']);
|
||||
$dateSysteme = $this->nettoyer($v['dateSysteme']);
|
||||
|
||||
$codeEtatRdv = $this->nettoyer($v['codeEtatRdv']);
|
||||
|
||||
$prestataire = $this->nettoyer($v['prestataire']);
|
||||
$specialite = $this->nettoyer($v['specialite']);
|
||||
$etatRdv = $this->nettoyer($v['etatRdv']);
|
||||
|
||||
if (est_anglophone()){
|
||||
$specialite = $this->nettoyer($v['specialiteEng']);
|
||||
$etatRdv = $this->nettoyer($v['etatRdvEng']);
|
||||
}
|
||||
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align="center">
|
||||
<input class="form-control btn btn-primary" type="button" value="<?= $numeroDemandeRdv ?>"
|
||||
onClick="javascript:selectionner_rdv('<?= $idDemande ?>');">
|
||||
</td>
|
||||
<td align='center'><?= dateheureLang($dateSysteme, $_SESSION['p_lang']) ?></td>
|
||||
<td align='center' width="10%"><?= $this->nettoyer($v['numeroBeneficiaire']) ?></td>
|
||||
<td ><?= $this->nettoyer($v['beneficiaire']) ?></td>
|
||||
|
||||
<td><?= $prestataire ?></td>
|
||||
<td><?= $specialite ?></td>
|
||||
|
||||
<td align='center' width="10%">
|
||||
<?php if($codeEtatRdv == "1"):?>
|
||||
<span class="badge bg-success"><?= $etatRdv; ?></span>
|
||||
<?php elseif($codeEtatRdv == "0"): ?>
|
||||
<span class="badge bg-warning text-dark"><?= $etatRdv; ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-danger"><?= $etatRdv; ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td align='center'><?= $this->nettoyer($v['motifReponseRdv']) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
96
Vue/Historiquerdv/index.php
Normal file
96
Vue/Historiquerdv/index.php
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<?php
|
||||
$this->titre = "Intersanté - Historique prises Rendez-vous";
|
||||
|
||||
$codeEtatRdv = $_SESSION['codeEtatRdv'] ?? "";
|
||||
?>
|
||||
|
||||
<legend> <?= _("Historique des prises de rendez-vous") ?> </legend>
|
||||
|
||||
<input class="sr-only" id="nomForm" name="nomForm" value="histordv">
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%" class="required"> <?= _("Période du") ?> </td>
|
||||
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['p_debutMois_C'], $_SESSION['p_lang']) ?>" required></td>
|
||||
|
||||
<td width="10%" align="center" class="required"> <?= _("au") ?> </td>
|
||||
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateCouranteLang($_SESSION['p_lang'], $_SESSION['p_lang']) ?>" required></td>
|
||||
|
||||
<td width="5%" align="center"> <?= _("Etat") ?> </td>
|
||||
<td>
|
||||
<select class="form-select" id="codeEtatRdv" NAME="codeEtatRdv" style='font-size:10pt;'>
|
||||
<?php liste_options_consultation($reponsedemande, $codeEtatRdv); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td> </td>
|
||||
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerrdv();"><?= _("Actualiser") ?>...</button> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="div_dossiers">
|
||||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2" style='text-align:center' width="5%"> <?= _("N° RDV") ?> </th>
|
||||
<th rowspan="2" style='text-align:center' width="10%"> Date </th>
|
||||
<th rowspan="2" colspan="2" style='text-align:center' width="30%"> <?= _("Bénéficiaire") ?> </th>
|
||||
|
||||
<th rowspan="2"> <?= _("Prestataire") ?> </th>
|
||||
<th rowspan="2"> <?= _("Spécialité") ?> </th>
|
||||
|
||||
<th colspan="2" style='text-align:center'> <?= _("Répondu") ?> </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style='text-align:center'> <?= _("Etat") ?> </th>
|
||||
<th style='text-align:center'> <?= _("Motif") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php foreach ($demandes as $v):
|
||||
$idDemande = $this->nettoyer($v['id']);
|
||||
$numeroDemandeRdv = $this->nettoyer($v['numeroDemandeRdv']);
|
||||
$dateSysteme = $this->nettoyer($v['dateSysteme']);
|
||||
|
||||
$codeEtatRdv = $this->nettoyer($v['codeEtatRdv']);
|
||||
|
||||
$prestataire = $this->nettoyer($v['prestataire']);
|
||||
$specialite = $this->nettoyer($v['specialite']);
|
||||
$etatRdv = $this->nettoyer($v['etatRdv']);
|
||||
|
||||
if (est_anglophone()){
|
||||
$specialite = $this->nettoyer($v['specialiteEng']);
|
||||
$etatRdv = $this->nettoyer($v['etatRdvEng']);
|
||||
}
|
||||
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td align="center">
|
||||
<input class="form-control btn btn-primary" type="button" value="<?= $numeroDemandeRdv ?>"
|
||||
onClick="javascript:selectionner_rdv('<?= $idDemande ?>');">
|
||||
</td>
|
||||
<td align='center'><?= dateheureLang($dateSysteme, $_SESSION['p_lang']) ?></td>
|
||||
<td align='center' width="8%"><?= $this->nettoyer($v['numeroBeneficiaire']) ?></td>
|
||||
<td ><?= $this->nettoyer($v['beneficiaire']) ?></td>
|
||||
|
||||
<td><?= $prestataire ?></td>
|
||||
<td><?= $specialite ?></td>
|
||||
|
||||
<td align='center' width="8%">
|
||||
<?php if($codeEtatRdv == "1"):?>
|
||||
<span class="badge bg-success"><?= $etatRdv; ?></span>
|
||||
<?php elseif($codeEtatRdv == "0"): ?>
|
||||
<span class="badge bg-warning text-dark"><?= $etatRdv; ?></span>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-danger"><?= $etatRdv; ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td align='center'><?= $this->nettoyer($v['motifReponseRdv']) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
147
Vue/Rendezvous/index.php
Normal file
147
Vue/Rendezvous/index.php
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
<?php
|
||||
$this->titre = "Intersanté - Prise de rendez-vous";
|
||||
|
||||
$idDemandeRdv = $_SESSION['idDemandeRdv'] ?? "0";
|
||||
|
||||
$numeroDemandeRdv = $this->nettoyer($demande['numeroDemandeRdv']);
|
||||
$codeEtatRdv = $this->nettoyer($demande['codeEtatRdv']);
|
||||
$lien = $this->nettoyer($demande['lien']);
|
||||
$numeroBeneficiaire = $this->nettoyer($demande['numeroBeneficiaire']);
|
||||
$motifRdv = $this->nettoyer($demande['motifRdv']);
|
||||
$debutRdv = $this->nettoyer($demande['debutRdv']);
|
||||
$finRdv = $this->nettoyer($demande['finRdv']);
|
||||
$codePrestataire = $this->nettoyer($demande['codePrestataire']);
|
||||
$prestataire = $this->nettoyer($demande['prestataire']);
|
||||
$codeSpecialite = $this->nettoyer($demande['codeSpecialite']);
|
||||
$etatRdv = $this->nettoyer($demande['etatRdv']);
|
||||
$dateReponseRdv = $this->nettoyer($demande['dateReponseRdv']);
|
||||
$motifReponseRdv = $this->nettoyer($demande['motifReponseRdv']);
|
||||
$dateRdvAccordee = $this->nettoyer($demande['dateRdvAccordee']);
|
||||
$heureRdvAccordee = $this->nettoyer($demande['heureRdvAccordee']);
|
||||
$telephone = $this->nettoyer($demande['telephone']);
|
||||
$email = $this->nettoyer($demande['email']);
|
||||
|
||||
if (est_anglophone()){
|
||||
$lien = $this->nettoyer($demande['lienEng']);
|
||||
$etatRdv = $this->nettoyer($demande['etatRdvEng']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<legend> <?= _("Prise de rendez-vous") ?> </legend>
|
||||
|
||||
<INPUT class="sr-only" TYPE="text" id="numeroDemandeRdv" NAME="numeroDemandeRdv" value="<?= $numeroDemandeRdv ?>">
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colspan="4" align="center">
|
||||
<INPUT class="form-control" style="font-size:12pt; font-weight:bold; text-align:center;" TYPE="text" id="numeroDemandeRdv" NAME="numeroDemandeRdv" readonly value="<?= _("Demande RDV No").": ".$numeroDemandeRdv ?>">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="10%" > <?= _("Bénéficiaire") ?> </td>
|
||||
<td >
|
||||
<select class="form-select" id="numeroBeneficiaire" name="numeroBeneficiaire" style='font-size:10pt;' onChange="javascript:lienparente();" disabled>
|
||||
<?php liste_options($benficiaires, $numeroBeneficiaire); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td width="10%" align="center" > <?= _("Lien Parenté") ?> </td>
|
||||
<td width="38%">
|
||||
<div id="div_lien">
|
||||
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="lienDemandeur" NAME="lienDemandeur" value="<?= $lien ?>" readonly>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td > <?= _("Téléphone") ?> </td>
|
||||
<td >
|
||||
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="telephone" NAME="telephone" value="<?= $telephone ?>" readonly>
|
||||
</td>
|
||||
|
||||
<td align="center"> <?= _("E-mail") ?> </td>
|
||||
<td >
|
||||
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="email" NAME="email" value="<?= $email ?>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td > <?= _("Prestataire") ?> </td>
|
||||
<td >
|
||||
<input id="searchInputPrestataire" name="searchInputPrestataire" style="font-size:12pt; height:30px;" class="form-control" type="text" readonly
|
||||
onkeyup="javascript:affichelisteprestataires(this.value);" value="<?= $prestataire; ?>">
|
||||
<INPUT class="sr-only" TYPE="text" id="codePrestataire" NAME="codePrestataire" value="<?= $codePrestataire; ?>">
|
||||
|
||||
</td>
|
||||
|
||||
<td align="center" > <?= _("Spécialité") ?> </td>
|
||||
<td >
|
||||
<select class="form-control selectpicker" data-live-search="true" id="codeSpecialite" name="codeSpecialite" style='font-size:10pt;' disabled>
|
||||
<?php liste_options($specialites, $codeSpecialite); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td ><?= _("Motif RDV") ?></td>
|
||||
<td colspan="3">
|
||||
<textarea id="motifRdv" name="motifRdv" rows="4" style="width:100%" disabled><?= $motifRdv ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<td colspan="4" align="center">
|
||||
<INPUT class="form-control" style="font-size:12pt; font-weight:bold; text-align:center;" TYPE="text" readonly value="<?= _("Réponse à la demande de RDV")?>">
|
||||
</td>
|
||||
|
||||
<?php if($codeEtatRdv == "0"): ?>
|
||||
<tr>
|
||||
<td class="required"> <?= _("Etat") ?> </td>
|
||||
<td colspan="3">
|
||||
<select class="form-select" id="codeEtatRdv" name="codeEtatRdv" style='font-size:10pt;' required autofocus onchange="javascript:visibilite_date_rdv()">
|
||||
<?php liste_options($etatRDV, $codeEtatRdv, true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="tr_date">
|
||||
<td class="required"> <?= _("Date RDV") ?> </td>
|
||||
<td >
|
||||
<INPUT style='font-size:10pt;' class="form-control datepicker" TYPE="text" id="dateRdvAccordee" NAME="dateRdvAccordee" value="<?= dateLang($dateRdvAccordee, $_SESSION['p_lang']) ?>" required>
|
||||
</td>
|
||||
|
||||
<td align="center" class="required"> <?= _("Heure RDV") ?> </td>
|
||||
<td >
|
||||
<INPUT style='font-size:10pt;' class="form-control" TYPE="time" id="heureRdvAccordee" NAME="heureRdvAccordee" value="<?= $heureRdvAccordee ?>" placeholder="00:00" required onfocus="if(this.value==='') this.value='00:00';">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td ><?= _("Motif") ?></td>
|
||||
<td colspan="3">
|
||||
<textarea id="motifReponseRdv" name="motifReponseRdv" rows="4" style="width:100%"><?= $motifReponseRdv ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php elseif($codeEtatRdv == "1"): ?>
|
||||
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<?php if($codeEtatRdv == "0"): ?>
|
||||
<td ></td>
|
||||
<td colspan="3"><button class="form-control btn btn-primary" onClick="javascript:valider_rdv();"><?= _("Valider la réponse") ?></button></td>
|
||||
<?php else: ?>
|
||||
<td colspan="4"></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ actesHarmonises : <?= $_SESSION['p_actesHarmonises'] ?>
|
|||
<script src="Js/datepicker-fr.js"></script>
|
||||
<?php endif; ?>
|
||||
|
||||
<script src="Js/fonctions.js?ver=2025.11.17.00"></script>
|
||||
<script src="Js/fonctions.js?ver=2026.01.16.07"></script>
|
||||
|
||||
<script src="Bootstrap/js/timer.jquery.js"></script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user