140 lines
3.6 KiB
PHP
Executable File
140 lines
3.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Valeur par defaut
|
|
// -----------------------------------------------------
|
|
|
|
// Barre de recherche
|
|
$rechCol='1 / span 5';
|
|
|
|
// Bandeau
|
|
$bandCol='1 / span 5';
|
|
$bandRow='4';
|
|
|
|
// UserMsg sur colonne 2 a 5 et ligne 5
|
|
$usrCol='1 / span 5';
|
|
$usrRow='5';
|
|
|
|
$indepCol='1';
|
|
$indepRow='6 / span 2';
|
|
|
|
$pageRow='6 / span 2';//ne devrait pas en avoir beoin
|
|
|
|
$footerRow='9';
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------------------------
|
|
// --------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
switch ($agcmtType) {
|
|
// -----------------------------------------------------
|
|
// menu independant oui | pub en bas | barre Rechercher | enlever menuderoulant boutique
|
|
// -----------------------------------------------------
|
|
case 1:
|
|
// barre recherche
|
|
// $rechCol='1 / span 5';
|
|
|
|
// Bandeau sur colonne 2 a 5 et ligne 4
|
|
// $bandCol='1 / span 5';
|
|
// $bandRow='4';
|
|
|
|
// UserMsg sur colonne 2 a 5 et ligne 5
|
|
// $usrCol='2 / span 5';
|
|
// $usrRow='5';
|
|
|
|
// Menu Indep de 1 col et 4 rows : 4-7
|
|
// $indepCol='1';
|
|
//$indepRow='6 / span 2';//ne devrait pas en avoir beoin
|
|
|
|
// Page sur colonne 2 a 5 et lignes 6-7
|
|
$pageCol='2 / span 5';
|
|
|
|
|
|
if ($affPub==1) { // Pub en bas a 8
|
|
|
|
$pubCol='1 / span 5';
|
|
$pubRow='8';
|
|
// Hauteur pour pub
|
|
$queryUpCss6="UPDATE `" .$nomThemeCss. "` SET `height`='100%' WHERE nom='pub-table' ;";
|
|
$queryUpCss7="UPDATE `" .$nomThemeCss. "` SET `flex-direction`='row' WHERE nom='#pub-container' ;";
|
|
}
|
|
else {
|
|
|
|
$pubCol='0';
|
|
$pubRow='0';
|
|
}
|
|
break;
|
|
|
|
// -----------------------------------------------------
|
|
// menu independant non | pub a droite
|
|
// -----------------------------------------------------
|
|
case 2:
|
|
// Barre de recherche
|
|
// $rechCol='1 / span 5';
|
|
|
|
// Bandeau
|
|
// $bandCol='1 / span 5';
|
|
// $bandRow='4';
|
|
|
|
// msg
|
|
// $usrCol='1 / span 4';
|
|
// $usrRow='5';
|
|
|
|
// page
|
|
// $pageRow='6 / span 2';
|
|
|
|
//pub
|
|
if ($affPub==1) { // pub a droite
|
|
$pageCol='1 / span 4';
|
|
|
|
$pubCol='5';
|
|
$pubRow='6 / span 2';
|
|
|
|
// hauteur max pour pub
|
|
$queryUpCss6="UPDATE `" .$nomThemeCss. "` SET `height`='33%' WHERE nom='pub-table' ;";
|
|
$queryUpCss7="UPDATE `" .$nomThemeCss. "` SET `flex-direction`='column', height='100%' WHERE nom='#pub-container' ;";
|
|
}
|
|
else {
|
|
$pageCol='1 / span 5';
|
|
$pubCol='0';
|
|
$pubRow='0';
|
|
}
|
|
|
|
break;
|
|
|
|
// -----------------------------------------------------
|
|
// menu independant non | pub en bas
|
|
// -----------------------------------------------------
|
|
case 3:
|
|
// Barre de recherche sur 4 colonnes
|
|
// $rechCol='1 / span 5';
|
|
|
|
// => decalage bandeau 1 colonne a gauche et prends toutes les colonnes
|
|
// $bandCol='1 / span 5';
|
|
// $bandRow='4';
|
|
|
|
// UserMsg sur colonne 1 a 5
|
|
// $usrCol='1 / span 5';
|
|
// $usrRow='5';
|
|
|
|
// page sur colonne 1 a 5
|
|
$pageCol='1 / span 5';
|
|
|
|
// $pageRow='6 / span 2';
|
|
|
|
|
|
// pub en bas
|
|
if ($affPub==1) {
|
|
$pubCol='1 / span 5';
|
|
$pubRow='8';
|
|
// hauteur pour pub
|
|
$queryUpCss6="UPDATE `" .$nomThemeCss. "` SET `height`='100%' WHERE nom='pub-table' ;";
|
|
$queryUpCss7="UPDATE `" .$nomThemeCss. "` SET `flex-direction`='row' WHERE nom='#pub-container' ;";
|
|
}
|
|
else {
|
|
$pubCol='0';
|
|
$pubRow='0';
|
|
}
|
|
break;
|
|
}
|
|
|
|
?>
|