Initial commit for radiantrh project

This commit is contained in:
2025-12-07 08:36:26 +00:00
commit 6dc580b90b
3334 changed files with 2221683 additions and 0 deletions

52
Modele/Lienparente.php Executable file
View File

@@ -0,0 +1,52 @@
<?php
require_once 'Framework/Modele.php';
class Lienparente extends Modele {
public function getListe() {
$sql = 'SELECT codeLienParente as code, libelle FROM lienparente where codeLienParente != "A" order by ordre, libelle';
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeDependant()
{
if (est_anglophone())
{
$sql = 'SELECT codeLienParente AS `code`, libelleEng as libelle FROM lienparente
WHERE codeLienParente!="A" AND enVigueur ="1"
ORDER BY ordre, libelle;';
}
else
{
$sql = 'SELECT codeLienParente AS `code`, libelle FROM lienparente
WHERE codeLienParente!="A" AND enVigueur ="1"
ORDER BY ordre, libelle;';
}
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
public function getListeAdherent()
{
if (est_anglophone())
{
$sql = 'SELECT codeLienParente AS `code`, libelleEng as libelle FROM lienparente WHERE codeLienParente="A" ORDER BY ordre, libelle';
}
else
{
$sql = 'SELECT codeLienParente AS `code`, libelle FROM lienparente WHERE codeLienParente="A" ORDER BY ordre, libelle';
}
$liste = $this->executerRequete($sql);
return $liste->fetchAll(PDO::FETCH_ASSOC);
}
}