27 lines
654 B
PHP
Executable File
27 lines
654 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabservice.php';
|
|
|
|
class ControleurAjaxtbajouterservice extends Controleur {
|
|
private $service;
|
|
|
|
public function __construct() {
|
|
$this->service = new Tabservice();
|
|
}
|
|
|
|
public function index() {
|
|
$this->genererVueAjax();
|
|
}
|
|
|
|
public function ajouter(){
|
|
|
|
$libelle = strtoupper($this->requete->getParametreFormulaire("libelle"));
|
|
$libelleEng = strtoupper($this->requete->getParametreFormulaire("libelleEng"));
|
|
|
|
$this->service->ajouterservice($libelle,$libelleEng);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|