Import initial du projet Production
This commit is contained in:
30
Controleur/ControleurAjaxcommanderbons.php
Normal file
30
Controleur/ControleurAjaxcommanderbons.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Typebon.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurAjaxcommanderbons extends Controleur {
|
||||
private $typebon;
|
||||
|
||||
public function __construct() {
|
||||
$this->typebon = new Typebon();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$typebon = $this->typebon->getListe();
|
||||
|
||||
$this->genererVueAjax(array('typebon' => $typebon));
|
||||
}
|
||||
|
||||
public function commanderBon()
|
||||
{
|
||||
$codeTypeBon = $this->requete->getParametreFormulaire("codeTypeBon");
|
||||
$quantite = $this->requete->getParametreFormulaire("quantite", "numerique");
|
||||
$commentaire = "";
|
||||
|
||||
$this->typebon->commanderbon($codeTypeBon, $quantite, $commentaire);
|
||||
|
||||
$this->executerAction("index");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user