83 lines
3.4 KiB
PHP
Executable File
83 lines
3.4 KiB
PHP
Executable File
<!-- ---------------------------------------------------
|
|
// Modele en vignettes categories ( ancien familles )
|
|
// --------------------------------------------------- */
|
|
!-->
|
|
<script>
|
|
function affImgAcc(q, nb) {
|
|
// alert('affImgAcc'+q);
|
|
var item;
|
|
|
|
for(i=0; i<nb; i++) {
|
|
item='imgAcc'+q;
|
|
|
|
if (document.getElementById('imgAcc'+i).id==item) {
|
|
document.getElementById('imgAcc'+i).style.display='block';
|
|
}
|
|
else {
|
|
// alert('document.getElementById(imgAcc - q).id = '+document.getElementById('imgAcc'+i).id);
|
|
document.getElementById('imgAcc'+i).style.display='none';
|
|
}
|
|
}
|
|
// alert('image style display = '+document.getElementById('imgAcc'+q).style.display);
|
|
}
|
|
</script>
|
|
<style>
|
|
/*#page-container{grid-column: 1 / span4; grid-row:auto; margin:auto;}
|
|
#pub-container{ */grid-row:auto; }
|
|
</style>
|
|
|
|
<?php
|
|
require_once ($includePath. "/_fonctions/fonctionItemMessage.php");
|
|
include_once ($includePath. "/req/11-init.accueilMsgList.php");
|
|
include ("./pages/accueil/accueil-M3.reqSelect.php");
|
|
$test=count($statusFamTab);
|
|
|
|
// ---------------------------------------------------
|
|
// Affichage du mesage commercial
|
|
// ---------------------------------------------------
|
|
include ("accueil.reqSelect.messCom.php");
|
|
if ($afficherMsgCom==1) {
|
|
echo '<div id="messCom" ';
|
|
echo 'style="';
|
|
if (isset ($styleMsgCom) && $styleMsgCom!='-') echo $styleMsgCom;
|
|
if ( $affMContext === true ) echo ' cursor:context-menu" '; else echo '" ';
|
|
echo 'data-tooltip="' .$titleTab. '" ';
|
|
if ( $affMContext === true ) echo $mouseOverMenuContext. ' onContextMenu="return mContextuel( this, \'messCom\', \'titre\', 0, event );"';
|
|
echo '>';
|
|
echo '<i class="' .$icoTab. '"></i>  <span>' .$messTab. '</span>';
|
|
echo '</div>';
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// Barre des promos
|
|
// ---------------------------------------------------
|
|
include ("./pages/produits/barreDesPromos.php");
|
|
|
|
// ---------------------------------------------------
|
|
// Affichage des categories ( ancien familles )
|
|
// ---------------------------------------------------
|
|
echo '<div class="pageAccM4" >';
|
|
for($q=0; $q<$test; $q++) {
|
|
if ($statusFamTab[$q]!=0) {
|
|
if (file_exists($grandeImageTab[$q]) && $grandeImageTab[$q]!='' && $grandeImageTab[$q]!='-' ) {
|
|
echo '<div style="display:flex; flex-direction:column;" >';
|
|
if ( $affMContext === true ) echo '<article style="cursor:context-menu" class="titreFamilleVignette" ' .$mouseOverMenuContext. ' onContextMenu="return mContextuel(this, \'titreFamilleVignette\',\'Categorie\', \'' .$q. '\', event);">' .$libFamTab[$q]. '</article>';
|
|
else echo '<article class="titreFamilleVignette" >' .$libFamTab[$q]. '</article>';
|
|
echo '<article>';
|
|
echo '<a data-tooltip="' .$libFamTab[$q]. '" href="id=' .$idFamTab[$q]. '-categorie=' .$libFamTab[$q]. '" target="_self" >';
|
|
if ( $affMContext === true ) echo '<img style="cursor:context-menu" class="imgFamilleVignette" src="' .$grandeImageTab[$q]. '" ' .$mouseOverMenuContext. ' onContextMenu="return mContextuel(this, \'imgFamilleVignette\', \'Categorie\', \'' .$q. '\', event);" />';
|
|
else echo '<img class="imgFamilleVignette" src="' .$grandeImageTab[$q]. '" />';
|
|
echo '</a>';
|
|
echo '</article>';
|
|
echo '</div>';
|
|
}
|
|
else {
|
|
//echo '<br>'.$libFamTab[$q].'-<img src="'.$grandeImageTab[$q].'"></img>';
|
|
}
|
|
}
|
|
else {
|
|
//echo 'statusFamTab'.$statusFamTab[$q];
|
|
}
|
|
}
|
|
echo '</div>';
|
|
?>
|