72 lines
1.7 KiB
PHP
Executable File
72 lines
1.7 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabacteconsultation.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurActesconsultations extends Controleur
|
|
{
|
|
private $menuvue;
|
|
private $acte;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Actesconsultations');
|
|
$this->acte = new Tabacteconsultation();
|
|
|
|
|
|
$existeselection = $this->acte->existeSelection();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$tabacte = $this->acte->getlisteracteconsultation();
|
|
$existeselection = $this->acte->existeSelection();
|
|
$chemin = $this->menuvue->getChemin('Actesconsultations');
|
|
|
|
$this->genererVue(array('tabacte' => $tabacte,'existeselection' => $existeselection, 'chemin' => $chemin));
|
|
|
|
}
|
|
|
|
public function supprimer(){
|
|
$id = $this->requete->getParametreFormulaire('id');
|
|
|
|
$this->acte->supprimeracteconsultation($id);
|
|
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////
|
|
|
|
public function selectionneun(){
|
|
|
|
$id = $this->requete->getParametreFormulaire('id');
|
|
$actes = $this->acte->getid($id);
|
|
|
|
if($actes['choix']=='0'){
|
|
$this->acte->selectionnerune($id);
|
|
}else{
|
|
$this->acte->deselectionnerune($id);
|
|
}
|
|
}
|
|
|
|
public function selectionnetout(){
|
|
$existeselection = $this->acte->existeSelection();
|
|
if($existeselection){
|
|
$this->acte->deselectionnertoutes();
|
|
}else{
|
|
$this->acte->selectionnertoutes();
|
|
}
|
|
}
|
|
|
|
public function supprimerTout(){
|
|
|
|
$this->acte->supprimertoutes();
|
|
|
|
}
|
|
|
|
public function supprimerChoix(){
|
|
|
|
$this->acte->supprimerchoix();
|
|
|
|
}
|
|
|
|
} |