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