38 lines
1.2 KiB
PHP
Executable File
38 lines
1.2 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabgarantiesproduction.php';
|
|
|
|
class ControleurAjaxtbmodifiergarantiesproduction extends Controleur {
|
|
private $garantie;
|
|
|
|
public function __construct(){
|
|
$this->garantie = new Tabgarantiesproduction();
|
|
}
|
|
|
|
public function index() {
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$garantieprod = $this->garantie->getgarantiesproduction($id);
|
|
$garantie = $this->garantie->getgarantie();
|
|
$produit = $this->garantie->getproduit();
|
|
|
|
$this->genererVueAjax(array(
|
|
'garantiesproduction' => $garantieprod,
|
|
'garantie' => $garantie,
|
|
'produit' => $produit
|
|
));
|
|
}
|
|
|
|
public function modifier(){
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$codeProduit = $this->requete->getParametreFormulaire("codeProduit");
|
|
$codeGarantie = $this->requete->getParametreFormulaire("codeGarantie");
|
|
|
|
$this->garantie->modifiergarantiesproduction($codeProduit,$codeGarantie,$id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|