42 lines
1.8 KiB
PHP
Executable File
42 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
require_once ($includePath. "/_fonctions/fonctionItemMessage.php");
|
|
include_once ($includePath. "/req/11-init.accueilMsgList.php");
|
|
|
|
// ---------------------------------------------------
|
|
// 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>';
|
|
}
|
|
|
|
// Liste des catégories par blocs
|
|
include ("./pages/accueil/accueil-M3.reqSelect.php");
|
|
$test=count($statusFamTab);
|
|
$imgFamHeight=400/$test;
|
|
$imgFamHeight=intval($imgFamHeight). 'px';
|
|
// echo $imgFamHeight;
|
|
for($q=0; $q<$test; $q++) {
|
|
if ($statusFamTab[$q]!=0) {
|
|
if (file_exists($grandeImageTab[$q]) && $grandeImageTab[$q]!='' && $grandeImageTab[$q]!='-' ) {
|
|
// afficher la categorie
|
|
itemImageNew(0, 1, 1, 'pageAccM3', 'max-height:' .$imgFamHeight. ';', 'span', 'titreFamilleBlocAcc', '-baliseStyle-', 'onClick="self.location.href=\'id=' .$idFamTab[$q]. '-categorie=' .$libFamTab[$q]. '\'"', '-', '', 'imgFamilleBlocAcc', '-icoStyle-', $grandeImageTab[$q], '-champType-', '-champClass-', '-champStyle-', '-champValue-', '-msgStyle-', $libFamTab[$q], 2 ,'-id-');
|
|
}
|
|
else {
|
|
//echo $libFamTab[$q].'-'.$grandeImageTab[$q];
|
|
}
|
|
}
|
|
else {
|
|
//echo 'statusFamTab'.$statusFamTab[$q];
|
|
}
|
|
}
|
|
?>
|