32 lines
893 B
PHP
Executable File
32 lines
893 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabexclusionacteproduit.php';
|
|
|
|
class ControleurAjaxtbajouterexclusionacteproduit extends Controleur {
|
|
private $exclusion;
|
|
|
|
public function __construct() {
|
|
$this->exclusion = new Tabexclusionacteproduit();
|
|
}
|
|
|
|
public function index() {
|
|
$tabproduit = $this->exclusion->getproduit();
|
|
$tabacte = $this->exclusion->getacte();
|
|
|
|
$this->genererVueAjax(array(
|
|
'produit' => $tabproduit,
|
|
'acte' => $tabacte
|
|
));
|
|
}
|
|
|
|
public function ajouter(){
|
|
$codeProduit = $this->requete->getParametreFormulaire("codeProduit");
|
|
$codeActe = $this->requete->getParametreFormulaire("codeActe");
|
|
|
|
$this->exclusion->ajouterexclusionacteproduit($codeProduit,$codeActe);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|