58 lines
2.5 KiB
PHP
Executable File
58 lines
2.5 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// -----------------------------------------------------
|
|
// Requete sur categories ( ancien familles )
|
|
// -----------------------------------------------------
|
|
$idFamRech=$idFam;
|
|
include ("./catalog/req/reqSelectPrdFromCategories.php");
|
|
|
|
echo '<li>';
|
|
for ($p =0;$p<count($tabIdPrd);$p++) {
|
|
echo '<ul class="pucePrd" style="white-space:break-word;width:98%;" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Produit Image
|
|
// -----------------------------------------------------
|
|
if (!empty($lienImgPrdPt[$p]) && $lienImgPrdPt[$p]!="-") {
|
|
// ne veut pas marcher comme il faut avec la classe
|
|
echo '<img style="float:left;" width="50" height="50" src=".' .$lienImgPrdPt[$p]. '" />';
|
|
echo ' ';
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// Produit Nom
|
|
// -----------------------------------------------------
|
|
echo '<a href="frmAdmin.php?affAdmin=8&ongletCatalog=4&idPrd=' .$tabIdPrd[$p]. '" >';
|
|
echo '<span >';
|
|
echo '' .$tabLibPrd[$p];
|
|
echo '</span>';
|
|
echo '</a>';
|
|
echo ' ';
|
|
|
|
// -----------------------------------------------------
|
|
// Check gondole
|
|
// -----------------------------------------------------
|
|
echo '<br><span style="color:grey; font-size:12px; padding:-10px;"> Gondole :';
|
|
$title="Si vous cochez cette case, l\article apparaîtrra en gondole, sue la page des gondoles.";
|
|
if ($tabGondole[$p]==1) {
|
|
echo '<input type="checkbox" title="' .$title. '" id="gond-' .$tabIdPrd[$p]. '" value="1" checked onClick="updatePrdGondTV(' .$tabIdPrd[$p]. ',' .$tabIdFam[$f]. ');" ><label for="gondole">Oui</label>';
|
|
}
|
|
else {
|
|
echo '<input type="checkbox" title="' .$title. '" id="gond-' .$tabIdPrd[$p]. '" value="0" onClick="updatePrdGondTV(' .$tabIdPrd[$p]. ',' .$tabIdFam[$f]. ');" ><label for="gondole">Non</label>';
|
|
}
|
|
echo '</ul>';
|
|
|
|
// essayer de re-ouvrir l'arbo suite à maj gondole
|
|
if ($tabIdFam[$f]==$famToOpen && $fait==0) {
|
|
// echo '<script>document.getElementById("famItem' .$tabIdFam[$f]. '").innerHTML=document.getElementById("famItem' .$tabIdFam[$f]. '").innerHTML + " <span style=color:green> Ok ! </span>";</script>';
|
|
echo '<script>
|
|
document.getElementById("caret' .$f. '").parentElement.querySelector(".nested").classList.toggle("active");
|
|
document.getElementById("caret' .$f. '").classList.toggle("caret-down");
|
|
</script>';
|
|
$fait=1;
|
|
}
|
|
}
|
|
echo '</li>';
|
|
?>
|