alpha_full/admin/styles/css.post_details.php
2026-04-06 22:58:51 +02:00

428 lines
19 KiB
PHP
Executable File

<?php
$bgColor='';
$borderTopCss='';
$borderRightCss='';
$borderBottomCss='';
$borderLeftCss='';
$cssFlexBasisUnite='';
include ("./styles/couleursGene/codesCouleur.php");
// print_r($colNom);
// -----------------------------------------------------
// Commentaire
// -----------------------------------------------------
if (isset($_POST['commentCss'])) {$commentCss=$_POST['commentCss'];}
// -----------------------------------------------------
// Gras
// -----------------------------------------------------
if (isset($_POST['fontWeightCss'])) {$fontWeightCss=$_POST['fontWeightCss'];}
// -----------------------------------------------------
// Souligné
// -----------------------------------------------------
if (isset($_POST['textDecorationCss'])) {$textDecorationCss=$_POST['textDecorationCss'];}
// -----------------------------------------------------
// Text alignement
// -----------------------------------------------------
if (isset($_POST['textAlignCss'])) {$textAlignCss=$_POST['textAlignCss'];}
// -----------------------------------------------------
// Italique
// -----------------------------------------------------
if (isset($_POST['fontStyleCss'])) {$fontStyleCss=$_POST['fontStyleCss'];}
// -----------------------------------------------------
// Couleur de police
// -----------------------------------------------------
if (isset($_POST['couleurTexteCss'])) {$couleurTexteCss=$_POST['couleurTexteCss'];}
if (isset($couleurTexteCss) ) {
if ($couleurTexteCss!='Couleur du thème' && ($couleurTexteCss!='Couleur globale') && strtolower($couleurTexteCss)!='transparent' ) {
$c=1;
$trouve=false;
// echo count($colNom);
while ($trouve==false and $c < count($colNom) ) {
if ($colNom[$c]==$couleurTexteCss ) {
$trouve=true;
}
$c++;
}
if ($trouve === false) {if (substr($couleurTexteCss, 0,1)!="#" && strlen($couleurTexteCss)> 1 && $couleurTexteCss!="inherit") $couleurTexteCss="#" .$couleurTexteCss; }
}
}
// -----------------------------------------------------
// Liste des polices
// -----------------------------------------------------
if (isset($_POST['fontCss'])) {$fontCss=$_POST['fontCss'];}
// -----------------------------------------------------
// Taille de police
// -----------------------------------------------------
if (isset($_POST['fontSizeCss'])) {$fontSizeCss=$_POST['fontSizeCss'];}
// -----------------------------------------------------
// Largeur
// -----------------------------------------------------
if (isset($_POST['widthCss'])) {$widthCss=$_POST['widthCss']; }
if (isset($_POST['widthUnite'])) {$widthUnite=$_POST['widthUnite'];}
if (isset($_POST['maxWidthCss'])) {$maxWidthCss=$_POST['maxWidthCss'];}
if (isset($_POST['maxWidthUnite'])) {$maxWidthUnite=$_POST['maxWidthUnite'];}
if (isset($_POST['minWidthCss'])) {$minWidthCss=$_POST['minWidthCss'];}
if (isset($_POST['minWidthUnite'])) {$minWidthUnite=$_POST['minWidthUnite'];}
// -----------------------------------------------------
// Hauteur
// -----------------------------------------------------
if (isset($_POST['heightCss'])) {$heightCss=$_POST['heightCss'];}
if (isset($_POST['heightUnite'])) {$heightUnite=$_POST['heightUnite'];}
if (isset($_POST['maxHeightCss'])) {$maxHeightCss=$_POST['maxHeightCss'];}
if (isset($_POST['maxHeightUnite'])) {$maxHeightUnite=$_POST['maxHeightUnite'];}
if (isset($_POST['minHeightCss'])) {$minHeightCss=$_POST['minHeightCss'];}
if (isset($_POST['minHeightUnite'])) {$minHeightUnite=$_POST['minHeightUnite'];}
// -----------------------------------------------------
// Couleur de fonds
// -----------------------------------------------------
if (isset($_POST['backGroundCss'])) {$backGroundCss=$_POST['backGroundCss'];}
if ($backGroundCss!="" && $backGroundCss!="-") {
if ($backGroundCss!='Couleur du thème' && ($backGroundCss!='Couleur globale') && strtolower($backGroundCss!='transparent') ) {
$test='';
$test=strpos($backGroundCss,'gradient' );
if ($test =="") {$test=strpos($backGroundCss,'linear');}
if ($test=="") {
$c=1;
$trouve=false;
while ($trouve==false and $c < count($colNom) ) {
if ($colNom[$c]==$backGroundCss ) {
$trouve=true;
}
$c++;
}
}
else $trouve=true;
if ($trouve==false) {if (substr($backGroundCss, 0,1)!="#" && strlen($backGroundCss)> 1 && $backGroundCss!="inherit") $backGroundCss="#" .$backGroundCss;}
}
}
// -----------------------------------------------------
// Alignement vertical
// -----------------------------------------------------
if (isset($_POST['verticalAlignCss'])) {$verticalAlignCss=($_POST['verticalAlignCss']);}
// -----------------------------------------------------
// Alignement horizontal : margin
// -----------------------------------------------------
// ----->Top
// -----------------------------------------------------
if (isset($_POST['marginTopCss'])) {$marginTopCss=$_POST['marginTopCss'];}
if (isset($_POST['topMarginUnite'])) {$topMarginUnite=$_POST['topMarginUnite'];}
// ----->Right
if (isset($_POST['marginRightCss'])) {$marginRightCss=$_POST['marginRightCss'];}
if (isset($_POST['rightMarginUnite'])) {$rightMarginUnite=$_POST['rightMarginUnite'];}
// ----->Bottom
if (isset($_POST['marginBottomCss'])) {$marginBottomCss=$_POST['marginBottomCss'];}
if (isset($_POST['bottomtMarginUnite'])) {$bottomtMarginUnite=$_POST['bottomtMarginUnite'];}
// ----->Left
if (isset($_POST['marginLeftCss'])) {$marginLeftCss=$_POST['marginLeftCss'];}
if (isset($_POST['leftMarginUnite'])) {$leftMarginUnite=$_POST['leftMarginUnite'];}
// -----------------------------------------------------
// Position
// -----------------------------------------------------
if (isset($_POST['positionCss'])) {$positionCss=$_POST['positionCss'];}
// -----------------------------------------------------
// Position topCss
// -----------------------------------------------------
if (isset($_POST['topCss'])) {$topCss=$_POST['topCss'];}
if (isset($_POST['topUnite'])) {$topUnite=$_POST['topUnite'];}
// -----------------------------------------------------
// Position rightCss
// -----------------------------------------------------
if (isset($_POST['rightCss'])) {$rightCss=$_POST['rightCss'];}
if (isset($_POST['rightUnite'])) {$rightUnite=$_POST['rightUnite'];}
// -----------------------------------------------------
// Position bottomCss
// -----------------------------------------------------
if (isset($_POST['bottomCss'])) {$bottomCss=$_POST['bottomCss'];}
if (isset($_POST['bottomUnite'])) {$bottomUnite=$_POST['bottomUnite'];}
// -----------------------------------------------------
// Position gauche
// -----------------------------------------------------
if (isset($_POST['leftCss'])) {$leftCss=$_POST['leftCss'];}
if (isset($_POST['leftUnite'])) {$leftUnite=$_POST['leftUnite'];}
// -----------------------------------------------------
// Display
// -----------------------------------------------------
if (isset($_POST['displayCss'])) {$displayCss=$_POST['displayCss'];}
// -----------------------------------------------------
// LineHeightCSS
// -----------------------------------------------------
if (isset($_POST['lineHeightCSS'])) {$lineHeightCSS=$_POST['lineHeightCSS'];}
if (isset($_POST['lineHeightUnite'])) {$lineHeightUnite=$_POST['lineHeightUnite'];}
// -----------------------------------------------------
// Bordure epaisseur
// -----------------------------------------------------
if (isset($_POST['bordCss'])) {$bordCss=$_POST['bordCss'];}
// -----------------------------------------------------
// Bordure style
// -----------------------------------------------------
if (isset($_POST['bordStyleCss'])) {$bordStyleCss=$_POST['bordStyleCss'];}
if ($bordCss==0 || $bordCss=="-") {$bordStyleCss="-";}
// -----------------------------------------------------
// Border color
// -----------------------------------------------------
if (isset($_POST['borderColorCss'])) {$borderColorCss=$_POST['borderColorCss'];}
if (isset($borderColorCss)) {
if ($borderColorCss!='Couleur du thème' && ($borderColorCss!='Couleur globale') && strtolower($borderColorCss!='transparent')) {
$c=1;
$trouve=false;
while ($trouve==false and $c < count($colNom) ) {
if ($colNom[$c]==$borderColorCss ) {
$trouve=true;
}
$c++;
}
if ($trouve==false) {if (substr($borderColorCss, 0,1)!="#" && strlen($borderColorCss)> 1 && $borderColorCss !="inherit") $borderColorCss="#" .$borderColorCss; }
}
}
// -----------------------------------------------------
// Border arondi
// -----------------------------------------------------
if (isset($_POST['borderRadiusCss'])) {$borderRadiusCss=$_POST['borderRadiusCss'];}
// -----------------------------------------------------
// Border les 4
// -----------------------------------------------------
if (isset($_POST['borderTopCss'])) {
$borderTopCss=$_POST['borderTopCss'];
if ($borderTopCss=="" ) {$borderTopCss="-";}
if ($borderTopCss=='1') {
$borderTopCss='';
if ($bordCss!="-" && $bordCss!="" ) $borderTopCss=$bordCss;
if ($bordStyleCss!="-" && $bordStyleCss!="") $borderTopCss= $borderTopCss. ' ' .$bordStyleCss;
if ($borderColorCss!="-" && $borderColorCss!="") $borderTopCss= $borderTopCss. ' ' .$borderColorCss;
}
}
if (isset($_POST['borderRightCss'])) {
$borderRightCss=$_POST['borderRightCss'];
if ($borderRightCss=='1') {
$borderRightCss='';
if ($bordCss!="-" && $bordCss!="" ) $borderRightCss=$bordCss;
if ($bordStyleCss!="-" && $bordStyleCss!="") $borderRightCss= $borderRightCss. ' ' .$bordStyleCss;
if ($borderColorCss!="-" && $borderColorCss!="") $borderRightCss= $borderRightCss. ' ' .$borderColorCss;
}
}
if (isset($_POST['borderBottomCss'])) {
$borderBottomCss=$_POST['borderBottomCss'];
if ($borderBottomCss=='1') {
$borderBottomCss='';
if ($bordCss!="-" && $bordCss!="" ) $borderBottomCss=$bordCss;
if ($bordStyleCss!="-" && $bordStyleCss!="") $borderBottomCss= $borderBottomCss. ' ' .$bordStyleCss;
if ($borderColorCss!="-" && $borderColorCss!="") $borderBottomCss= $borderBottomCss. ' ' .$borderColorCss;
}
}
if (isset($_POST['borderLeftCss'])) {
$borderLeftCss=$_POST['borderLeftCss'];
if ($borderLeftCss=='1') {
$borderLeftCss='';
if ($bordCss!="-" && $bordCss!="" ) $borderLeftCss=$bordCss;
if ($bordStyleCss!="-" && $bordStyleCss!="") $borderLeftCss= $borderLeftCss. ' ' .$bordStyleCss;
if ($borderColorCss!="-" && $borderColorCss!="") $borderLeftCss= $borderLeftCss. ' ' .$borderColorCss;
}
}
// -----------------------------------------------------
// Border arrondi les 4
// -----------------------------------------------------
if (isset($_POST['borderTopLeftCss'])) {$borderTopLeftCss=$_POST['borderTopLeftCss']; }
if (isset($_POST['borderTopRightCss'])) {$borderTopRightCss=$_POST['borderTopRightCss']; }
if (isset($_POST['borderBottomLeftCss'])) {$borderBottomLeftCss=$_POST['borderBottomLeftCss']; }
if (isset($_POST['borderLeftCss'])) { $borderBottomRightCss=$_POST['borderBottomRightCss']; }
// -----------------------------------------------------
// Padding top
// -----------------------------------------------------
if (isset($_POST['paddingTopCss'])) {$paddingTopCss=$_POST['paddingTopCss'];}
if (isset($_POST['topPaddingUnite'])) {$topPaddingUnite=$_POST['topPaddingUnite'];}
// -----------------------------------------------------
// Padding right
// -----------------------------------------------------
if (isset($_POST['paddingRightCss'])) {$paddingRightCss=$_POST['paddingRightCss'];}
if (isset($_POST['rightPaddingUnite'])) {$rightPaddingUnite=$_POST['rightPaddingUnite'];}
// -----------------------------------------------------
// Padding bottom
// -----------------------------------------------------
if (isset($_POST['paddingBottomCss'])) {$paddingBottomCss=$_POST['paddingBottomCss'];}
if (isset($_POST['bottomPaddingUnite'])) {$bottomPaddingUnite=$_POST['bottomPaddingUnite'];}
// -----------------------------------------------------
// Padding left
// -----------------------------------------------------
if (isset($_POST['paddingLeftCss'])) {$paddingLeftCss=$_POST['paddingLeftCss'];}
if (isset($_POST['leftPaddingUnite'])) {$leftPaddingUnite=$_POST['leftPaddingUnite'];}
// -----------------------------------------------------
// Flottement
// -----------------------------------------------------
if (isset($_POST['floatCss'])) {$floatCss=$_POST['floatCss'];}
// -----------------------------------------------------
// resize boite
// -----------------------------------------------------
if (isset($_POST['resizeCss'])) {$resizeCss=$_POST['resizeCss'];}
// -----------------------------------------------------
// Transformation
// -----------------------------------------------------
if (isset($_POST['transformCss'])) {$transformCss=$_POST['transformCss'];}
// -----------------------------------------------------
// Tansition
// -----------------------------------------------------
if (isset($_POST['transitionCss'])) {$transitionCss=$_POST['transitionCss'];}
// -----------------------------------------------------
// Animation
// -----------------------------------------------------
if (isset($_POST['animationCss'])) {$animationCss=$_POST['animationCss'];}
// -----------------------------------------------------
// Majuscules
// -----------------------------------------------------
if (isset($_POST['textTransformCss'])) {$textTransformCss=$_POST['textTransformCss'];}
// -----------------------------------------------------
// Ombre de texte
// -----------------------------------------------------
if (isset($_POST['textShadowCss'])) {$textShadowCss=$_POST['textShadowCss'];}
// -----------------------------------------------------
// Ombre de boite
// -----------------------------------------------------
if (isset($_POST['boxShadowCss'])) {$boxShadowCss=$_POST['boxShadowCss'];}
// -----------------------------------------------------
// overflow
// -----------------------------------------------------
if (isset($_POST['overflowCss'])) {$overflowCss=$_POST['overflowCss'];}
// -----------------------------------------------------
// List-style : puces
// -----------------------------------------------------
if (isset($_POST['listStyleCss'])) {$listStyleCss=$_POST['listStyleCss'];}
// -----------------------------------------------------
// Clear
// -----------------------------------------------------
if (isset($_POST['clearCss'])) {$clearCss=($_POST['clearCss']);}
// -----------------------------------------------------
// Opacity
// -----------------------------------------------------
if (isset($_POST['opacityCss'])) {$opacityCss=$_POST['opacityCss'];}
// -----------------------------------------------------
// Visibility
// -----------------------------------------------------
if (isset($_POST['visibilityCss'])) {$visibilityCss=$_POST['visibilityCss'];}
// -----------------------------------------------------
// White space
// -----------------------------------------------------
if (isset($_POST['whiteSpaceCss'])) {$whiteSpaceCss=($_POST['whiteSpaceCss']);}
// -----------------------------------------------------
// zIndex
// -----------------------------------------------------
if (isset($_POST['zIndexeCss'])) {$zIndexeCss=$_POST['zIndexeCss'];}
// -----------------------------------------------------
// Key frames
// -----------------------------------------------------
if (isset($_POST['KframeCss'])) {$KframeCss=$_POST['KframeCss'];}
// -----------------------------------------------------
// Cursor
// -----------------------------------------------------
if (isset($_POST['theCursor'])) {$theCursor=$_POST['theCursor'];}
// -----------------------------------------------------
// Dimensions
// -----------------------------------------------------
if (isset($_POST['dimValLarg'])) {$dimValLarg=$_POST['dimValLarg'];}
if (isset($_POST['widthSelectedIndex'])) {$widthSelectedIndex=$_POST['widthSelectedIndex'];}
if (isset($_POST['dimValHaut'])) {$dimValHaut=$_POST['dimValHaut'];}
if (isset($_POST['heightSelectedIndex'])) {$heightSelectedIndex=$_POST['heightSelectedIndex'];}
if (isset($_POST['maxHeight'])) {$maxHeight=$_POST['maxHeight'];}
if (isset($_POST['minHeight'])) {$minHeight=$_POST['minHeight'];}
if (isset($_POST['maxWidth'])) {$maxWidth=$_POST['maxWidth'];}
if (isset($_POST['minWidth'])) {$minWidth=$_POST['minWidth'];}
// -----------------------------------------------------
// Flex
// -----------------------------------------------------
if (isset($_POST['flexDirectionCss'])) {$flexDirectionCss=$_POST['flexDirectionCss'];}
if (isset($_POST['flexBasisCss'])) {$flexBasisCss=$_POST['flexBasisCss'];}
if (isset($_POST['flexWrapCss'])) {$flexWrapCss=$_POST['flexWrapCss'];}
if (isset($_POST['justifyContentCss'])) {$justifyContentCss=$_POST['justifyContentCss'];}
// n'existe plus
// if (isset($_POST['alignContentCss'])) {$alignContentCss=$_POST['alignContentCss'];}
if (isset($_POST['flexAlignContentCss'])) {$flexAlignContentCss=$_POST['flexAlignContentCss'];}
if (isset($_POST['justifyItemsCss'])) {$justifyItemsCss=$_POST['justifyItemsCss'];}
if (isset($_POST['alignItemsCss'])) {$alignItemsCss=$_POST['alignItemsCss'];}
if (isset($_POST['cssFlexBasisUnite'])) {$cssFlexBasisUnite=$_POST['cssFlexBasisUnite'];}
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['justifyContentCss=' => $justifyContentCss], '');}
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['alignItemsCss=' => $alignItemsCss], '');}
// -----------------------------------------------------
// Grid
// -----------------------------------------------------
if (isset($_POST['gridTemplateColumnsCss'])) {$gridTemplateColumnsCss=$_POST['gridTemplateColumnsCss'];}
if (isset($_POST['gridTemplateRowsCss'])) {$gridTemplateRowsCss=$_POST['gridTemplateRowsCss'];}
if (isset($_POST['gridColumnGapCss'])) {$gridColumnGapCss=$_POST['gridColumnGapCss'];}
if (isset($_POST['gridRowGappCss'])) {$gridRowGappCss=$_POST['gridRowGappCss'];}
if (isset($_POST['gridGappCss'])) {$gridGappCss=$_POST['gridGappCss'];}
// if (isset($_POST['gridColumnStartCss'])) {$gridColumnStartCss=$_POST['gridColumnStartCss'];}
// if (isset($_POST['gridColumnEndCss'])) {$gridColumnEndCss=$_POST['gridColumnEndCss'];}
// if (isset($_POST['gridRowStartCss'])) {$gridRowStartCss=$_POST['gridRowStartCss'];}
// if (isset($_POST['gridRowEndCss'])) {$gridRowEndCss=$_POST['gridRowEndCss'];}
if (isset($_POST['gridColumnCss'])) {$gridColumnCss=$_POST['gridColumnCss'];}
if (isset($_POST['gridRowCss'])) {$gridRowCss=$_POST['gridRowCss'];}
if (isset($_POST['gridTemplateAreaCss'])) {$gridTemplateAreaCss=$_POST['gridTemplateAreaCss'];}
if (isset($_POST['gridAreaCss'])) {$gridAreaCss=$_POST['gridAreaCss'];}
// -----------------------------------------------------
// Image BackGround
// -----------------------------------------------------
if (isset($_POST['bgRepeatCss'])) {$bgRepeatCss=$_POST['bgRepeatCss'];}
if (isset($_POST['bgSizeCss'])) {$bgSizeCss=$_POST['bgSizeCss'];}
?>