Initial commit for radiantprestation project
This commit is contained in:
25
Cron/Typebon.php
Normal file
25
Cron/Typebon.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once 'Modele.php';
|
||||
|
||||
class Typebon extends Modele {
|
||||
|
||||
public function getInfos($codeTypeBon)
|
||||
{
|
||||
$sql = 'select libelle, libelleEng from p_typebon where (codeTypeBon=?)';
|
||||
$resultat = $this->executerRequete($sql, array($codeTypeBon));
|
||||
return $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function getbonpec($idBon)
|
||||
{
|
||||
$sql = 'call sp_r_get_bonpec(?)';
|
||||
|
||||
$bonpec = $this->executerRequete($sql, array($idBon));
|
||||
|
||||
$ligne = $bonpec->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
return $ligne;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user