Import initial du projet Production
This commit is contained in:
37
Controleur/ControleurAjaxtbmodifierbureau.php
Normal file
37
Controleur/ControleurAjaxtbmodifierbureau.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Tabbureau.php';
|
||||
|
||||
class ControleurAjaxtbmodifierbureau extends Controleur {
|
||||
private $bureau;
|
||||
|
||||
public function __construct() {
|
||||
$this->bureau = new Tabbureau();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$id = $this->requete->getParametreFormulaire("id");
|
||||
$bureau = $this->bureau->getbureau($id);
|
||||
|
||||
$this->genererVueAjax(array(
|
||||
'bureau' => $bureau
|
||||
));;
|
||||
}
|
||||
|
||||
public function modifier(){
|
||||
$id = $this->requete->getParametreFormulaire("id");
|
||||
//$codeBureau = strtoupper($this->requete->getParametreFormulaire("codeBureau"));
|
||||
$libelle = strtoupper($this->requete->getParametreFormulaire("libelle"));
|
||||
$nomRespon = strtoupper($this->requete->getParametreFormulaire("nomRespon"));
|
||||
$prenomRespon = strtoupper($this->requete->getParametreFormulaire("prenomRespon"));
|
||||
$telephoneFixe = $this->requete->getParametreFormulaire("telephoneFixe");
|
||||
$telephonePortable = $this->requete->getParametreFormulaire("telephonePortable");
|
||||
$email = $this->requete->getParametreFormulaire("email");
|
||||
|
||||
$this->bureau->modifierbureau($libelle,$nomRespon,$prenomRespon,$telephoneFixe,$telephonePortable,$email,$id);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user