alpha_full/admin/catalog/req/reqAllCat.php
2026-04-06 22:58:51 +02:00

34 lines
1.2 KiB
PHP
Executable File

<?php
$tabIdFam=array();
$tabDescFam=array();
$tabImageFam=array();
$tabgrandeImageFam=array();
$tabStatusFam=array();
$tabAffFam=array();
$tabNomFam=array();
$admMsgClass='ok';
// -----------------------------------------------------
// recherche de toutes les Categories ( ancien familles )
// -----------------------------------------------------
$tabResult= dynRequete_select('SELECT', 'familles as F Join familleslibelle as FL on F.idFam=FL.idFam', ['F.*, FL.libelle'], ['FL.idLg' => $lg], 'ORDER by F.idFam', 'reqAllCat.php', 0, 0,'tabResult');
if ($tabResult) {
foreach ($tabResult as $i => $row) {
$tabIdFam[$i] = $row['idFam'];
$tabDescFam[$i] = $row['description'];
$tabImageFam[$i] = $row['lienImageWeb'];
$tabgrandeImageFam[$i] = $row['grandeImage'];
$tabStatusFam[$i] = $row['status'];
$tabAffFam[$i] = $row['afficher'];
// if ($idFam == $tabIdFam[$i]) {
// $descFam = $tabDescFam[$i];
// $nomFam = $tabNomFam[$i];
// }
$tabNomFam[$i] = $row['libelle'];
}
$nbFam = count($tabIdFam);
}
else {$admMsg .= "Nous sommes désolés, les données des catégories ne peuvent pas être affichées."; $admMsgClass='ko';}
?>