sxe
This commit is contained in:
parent
c2fe10f0b9
commit
1df1c58bc0
|
|
@ -3,13 +3,15 @@ require_once 'Framework/Modele.php';
|
||||||
class Tabbaremeaccessoireavenant extends Modele{
|
class Tabbaremeaccessoireavenant extends Modele{
|
||||||
|
|
||||||
public function getlisterbaremeaccessoireavenant(){
|
public function getlisterbaremeaccessoireavenant(){
|
||||||
$sql = "SELECT a.*, b.libelle AS typecontrat, b.libelleEng AS typecontratEng,
|
$sql = "SELECT a.*,
|
||||||
c.libelle AS appli, c.libelleEng AS appliEng
|
b.libelle AS typecontrat,
|
||||||
|
b.libelleEng AS typecontratEng,
|
||||||
|
c.libelle AS appli,
|
||||||
|
c.libelleEng AS appliEng
|
||||||
FROM baremeaccessoireavevant a
|
FROM baremeaccessoireavevant a
|
||||||
JOIN typecontrat b ON (b.codeTypeContrat = a.codeTypeContrat)
|
JOIN typecontrat b ON (b.codeTypeContrat = a.codeTypeContrat)
|
||||||
JOIN applications c ON (c.codeApplication = a.codeApplication)
|
JOIN applications c ON (c.codeApplication = a.codeApplication)
|
||||||
WHERE (a.codeSociete =?)
|
WHERE (a.codeSociete =?) ORDER BY a.codeTypeContrat DESC, a.primeMax ASC;";
|
||||||
ORDER BY a.codeTypeContrat DESC, a.primeMin ASC;";
|
|
||||||
|
|
||||||
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
|
$resultat = $this->executerRequete($sql, array($_SESSION['codeSociete']));
|
||||||
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
return $resultat->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user