$_FILES["fileToUpload"]["tmp_name"]], '');} if ($_FILES["fileToUpload"]["tmp_name"]!='') { $target_dir = "../Design/_fonds/"; $targetExtension =['jpeg', 'jpg', 'png', 'gif', 'bmp' ]; $targetSize ='6291456'; //6 Mo $largeurMax = 0; $hauteurMax = 0; $largeurMin = 0; $hauteurMin = 0; include ($includePathAdmin. "/_fonctions/uploadGenerique.php"); } } if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['uploadOk' => $uploadOk], '');} // ----------------------------------------------------- // Req UPDATE + select // ----------------------------------------------------- if ($uploadOk==1) {include ("imgFondsReqUpdate.php");} } include ("imgFondsReqSelect.php"); // ----------------------------------------------------- // Debug // ----------------------------------------------------- if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .= monDebug (1,[ 'theImage' => $theImage, 'imgRepeat' => $imgRepeat, 'imgSize' => $imgSize, 'modifLg' => $modifLg, 'backgroundRepeat' => $backgroundRepeat, 'backgroundSize' => $backgroundSize, ],''); } echo '
'; // ----------------------------------------------------- // Form // ----------------------------------------------------- echo '
'; echo 'Prévisualisation réduite : '; echo '
'; if ($theImage!="-" && $theImage!="") { $retour=''; $theImage2=str_replace("../../","../",$theImage); $msgHTM=''; $retour=file_put_contents('imgFondsPreview.html',$msgHTM); // echo ''; echo ''; } echo '
'; // ----------------------------------------------------- // Champs cachés // ----------------------------------------------------- echo ''; echo ''; echo ''; echo ''; // ----------------------------------------------------- // Chemin actuel // ----------------------------------------------------- echo '
'; echo 'Chemin actuel : '; echo ''; echo '
'; // ----------------------------------------------------- // Gallerie // ----------------------------------------------------- echo '
'; // ----------------------------------------------------- // Bouton parcourir // ----------------------------------------------------- echo ''; echo ''; // ----------------------------------------------------- // Gallerie // ----------------------------------------------------- echo '🖼️ Images du site'; echo '📚 Bibliothèque'; if (isset( $src)) { switch ($src) { case 'Design': $src='../Design/gallerie.php?scope=fonds&siteDossier=' .$_SESSION['siteDossier']. '&server=' .$_SESSION['server']. '&src=Design&propager=' .$propager; break; case 'Biblio': default: $src='/include/biblio/gallerie.php?scope=fonds&siteDossier=' .$_SESSION['siteDossier']. '&server=' .$_SESSION['server']. '&src=Biblio&propager=' .$propager; break; } echo ''; } echo '
'; // ----------------------------------------------------- // Supprimer image // ----------------------------------------------------- echo '
Supprimer : '; echo ' '; echo '
'; // ----------------------------------------------------- // Repeat // ----------------------------------------------------- echo ''; echo ' Répetition : '; echo ''; echo ''; // ----------------------------------------------------- // Saisie des options // ----------------------------------------------------- // ----------------------------------------------------- // Valeur aide // ----------------------------------------------------- echo ''; echo ''; echo ''; $title='Choisissez une valeur depuis la liste déroulante'; echo ' Taille option : '; echo ''; echo ''; // Saisie valeur echo ''; echo ' Taille saisie : '; echo ''; echo ''; echo '
'; // ----------------------------------------------------- // Zone validate // ----------------------------------------------------- echo '
'; // ----------------------------------------------------- // Valider // ----------------------------------------------------- echo ''; echo ' '; echo 'Valider'; echo ''; // ----------------------------------------------------- // Gérer le style // ----------------------------------------------------- echo ''; echo ' '; echo 'Gérer le style '; // ----------------------------------------------------- // Btn retour // ----------------------------------------------------- echo ''; echo ''; echo' Retour à l\'agencement '; echo ''; echo '
'; echo '
'; } else { $confPath="../_conf"; include ("./adminInclude/redirectionAdmin.php"); } ?>