$theImage , '$_FILES[fileToUpload][tmp_name]' => isset($_FILES["fileToUpload"]["tmp_name"]) ? $_FILES["fileToUpload"]["tmp_name"]:'' ], 'titre.modale.php'); } // ----------------------------------------------------- // Req UPDATE Titre image : PM : pas de propager car l'image vient de Css // if ($uploadOk==1) ? normalement oui mais sera a tester et faire sur favicon / logo ... include ("titreReqUpdate.php"); //include ($includePathAdmin. "/drapeaux/changementLg.php"); } // ----------------------------------------------------- // Next langue // ----------------------------------------------------- if ($codeOpe=="nextLg") { include ($includePathAdmin. "/drapeaux/changementLg.php"); } // ----------------------------------------------------- // Supprimer image // ----------------------------------------------------- if ($codeOpe=="supprTitre") { include ("titreReqDelete.php"); } // ----------------------------------------------------- // Debug // ----------------------------------------------------- if (isset($debug[1]) && $debug[1] == '1' ) {include ("titre.debug.php");} // ----------------------------------------------------- // Requete langueNav Select // ----------------------------------------------------- include ("titreReqSelect.php"); // ----------------------------------------------------- // Form // ----------------------------------------------------- echo '
'; echo '
'; // ----------------------------------------------------- // Champs cachés // ----------------------------------------------------- echo ''; echo ''; echo ''; echo ''; // ----------------------------------------------------- // Langue drapeaux // ----------------------------------------------------- echo '
'; include ($includePathAdmin. "/drapeaux/drapeauxAff.php"); echo '
'; // ----------------------------------------------------- // theMsg // ----------------------------------------------------- echo '
'; echo 'Texte : '; $theMsg= gTranslate($theMsg, strtolower( substr ($_SESSION['lgCouranteCode'], 0, -1) ) ) ; echo ''; echo ''; // ----------------------------------------------------- // Infobulle // ----------------------------------------------------- echo ''; echo ' Info-bulle : '; $thePopup= gTranslate($thePopup, strtolower( substr ($_SESSION['lgCouranteCode'], 0, -1) ) ) ; echo ''; echo ''; // ----------------------------------------------------- // theAlt // ----------------------------------------------------- echo ''; echo ' Texte de remplacement : '; $theAlt= gTranslate($theAlt, strtolower( substr ($_SESSION['lgCouranteCode'], 0, -1) ) ) ; echo ''; echo ''; echo '
'; // ----------------------------------------------------- // Modifier le style text // ----------------------------------------------------- echo ' '; $volet="Eléments d\'entête"; echo ''; echo ' '; echo 'Gérer le style du contenu'; echo ''; // ----------------------------------------------------- // Image // ----------------------------------------------------- include ($includePathAdmin. '/_fonctions/fonction_imageCouleurDeFonds.php'); echo '
'; if ($theImage!="-" && $theImage!="") { $retour=''; $theImage2=str_replace("./","../", $theImage); $theImage2=str_replace("../../","../", $theImage); // determiner la couleur de fonds $isBright = isImageBright($theImage2); $backgroundColor = $isBright ? 'grey' : 'white'; $msgHTM =' donc je force a cover // if (!empty($backgroundSize) && $backgroundSize!='-') $msgHTM .='background-size:' .$backgroundSize. ';'; $msgHTM .='background-size:cover;'; $msgHTM .='">'; $retour=file_put_contents('imgTitrePreview.htm', $msgHTM); echo ''; } echo '
'; // ----------------------------------------------------- // Chemin // ----------------------------------------------------- echo 'Chemin actuel : '; echo ''; echo ''; // ----------------------------------------------------- // Gallerie // ----------------------------------------------------- echo '
'; // ----------------------------------------------------- // Choisir un fichier: bouton recalcitrant avec Label // ----------------------------------------------------- echo ''; echo '🖼️ Images du site'; echo '📚 Bibliothèque'; if (isset( $src)) { switch ($src) { case 'Design': $src='../Design/gallerie.php?scope=titre&siteDossier=' .$_SESSION['siteDossier']. '&server=' .$_SESSION['server']. '&src=Design&propager=' .$propager; break; case 'Biblio': default: $src='/include/biblio/gallerie.php?scope=titre&siteDossier=' .$_SESSION['siteDossier']. '&server=' .$_SESSION['server']. '&src=Biblio&propager=' .$propager; break; } echo ''; } echo '
'; // ----------------------------------------------------- // Repeat // ----------------------------------------------------- echo '
'; echo ''; echo 'Répetition : '; echo ''; echo ''; // ----------------------------------------------------- // Size : saisie options // ----------------------------------------------------- echo ''; $title='Choisissez une valeur depuis la liste déroulante'; echo ' Taille option : '; echo ''; echo ''; // ----------------------------------------------------- // Saisie valeur // ----------------------------------------------------- echo ''; echo ''; echo ''; echo ' Taille saisie : '; echo ''; echo ''; echo '
'; // ----------------------------------------------------- // Modifier le style conteneur // ----------------------------------------------------- if ($theImage!="-" && $theImage!="") { echo ''; } else { echo ''; } echo ' '; echo 'Gérer le style du conteneur'; echo ''; // ----------------------------------------------------- // Supprimer image // ----------------------------------------------------- echo ''; echo ' '; echo 'Suprimer l\'image'; echo ''; echo '
'; //formModale // ----------------------------------------------------- // Zone validate // ----------------------------------------------------- echo '
'; // ----------------------------------------------------- // Bouton Valider // ----------------------------------------------------- echo ''; echo ' '; echo 'Valider pour ' .$_SESSION['lgCouranteLibelle']; echo ''; // ----------------------------------------------------- // Bouton next // ----------------------------------------------------- echo '
'; echo ' '; echo 'Langue suivante ( uniquement textes )'; echo '
'; // ----------------------------------------------------- // Bouton Fin // ----------------------------------------------------- echo ''; echo ' '; echo 'Retour à l\'agencement'; echo ''; echo '
'; echo '
'; } else { $confPath="../_conf"; include ("./adminInclude/redirectionAdmin.php"); } ?>