alpha_full/admin/agencement/blocDroit/pages/page/reqPage/pageReqSelect.php
2026-04-06 22:58:51 +02:00

47 lines
1.6 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
if ($theIdPage !='') {
if (!isset($forceLg) ) $forceLg=0;
if ($forceLg != 1 ) {
$theLgF = $_SESSION['lgCouranteCode']; }
else {
for ($l=0; $l<$_SESSION['nbLg']; $l++) {
if ($lg==$tableLangueCode[$l]) $theLgF= $tableLangueCode[$l]; ;
}
}
$tabResult= dynRequete_select('SELECT', 'pages', ['description', 'nom', 'fichier', 'emplacement', 'codeLangue', 'absolu' ], ['id' =>$theIdPage, 'codeLangue' =>$theLgF], '', 'pageReqSelect.php', 0, $debug[2],'tabResult');
if ($tabResult) {
foreach ($tabResult as $i => $row) {
$theDescPage = $row['description'];
$theNomPage = $row['nom'];
$theFicPage = $row['fichier'];
$theEmplacement = $row['emplacement'];
$tabCodeLanguePage = $row['codeLangue'];
$absolu = $row['absolu'];
$_SESSION['theNomPage']=$theNomPage;
$_SESSION['absolu']=$absolu;
}
if (isset($debug[2]) && $debug[2] == '1') {
$debugMsg .= monDebug(2, [
'<br>descPage=' => $theDescPage,
'theNomPage=' => $theNomPage,
'theFicPage=' => $theFicPage,
'theEmplacement=' => $theEmplacement,
'tabCodeLanguePage' => $tabCodeLanguePage
], '');
}
}
else {
$admMsg .= "Il est impossible de retrouver les données contenu" .$idPrdRech. "."; $admMsgClass='ko';
}
}
else {
$admMsg .= "<br>Nous sommes désolés, les données ne peuvent pas être affichées.";
if (isset($debug[2]) && $debug[2] == '1' ) {
$debugMsg .= monDebug(2,['theIdPage est' => 'vide'],'pageReqSelect.php');
$admMsgClass='ko';
}
}
?>