a
This commit is contained in:
parent
900ac9d1da
commit
6d1c527497
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));
|
||||
}
|
||||
|
||||
}
|
||||
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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user