54 lines
1.7 KiB
PHP
54 lines
1.7 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Prescription.php';
|
|
require_once 'Modele/Detailprescription.php';
|
|
// require_once 'Modele/Ged.php';
|
|
|
|
class ControleurPrescriptioncons extends Controleur {
|
|
private $menuvue;
|
|
private $prescription;
|
|
private $detailprescription;
|
|
private $ged;
|
|
|
|
public function __construct() {
|
|
$this->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));
|
|
}
|
|
*/
|
|
} |