This commit is contained in:
KANE LAZENI 2026-07-05 15:20:24 +00:00
parent 35edc58c29
commit bef8abe38d
2 changed files with 9 additions and 14 deletions

View File

@ -86375,15 +86375,15 @@ function changer_entite_portail()
},
complete: function()
{
src_logo="";
afficherLogoSociete = $("#afficherLogoSociete").val();
var src_logo="";
var afficherLogoSociete = $("#afficherLogoSociete").val();
if(afficherLogoSociete=="1")
{
src_logo="Societes/"+codeSociete+"/Logos/logo_societe.png";
}
const wrapper = document.querySelector('.login-wrapper');
wrapper.style.backgroundImage = `url('${src_logo}')`;
const image_logo = document.getElementById('image_logo');
image_logo.setAttribute('src', src_logo);
}
});
}

View File

@ -34,22 +34,17 @@
require('french.php');
}
?>
<div style="text-align: center; margin-top: 5px;">
<img id="image_logo" name="image_logo" src="<?= $cheminLogo ?>" alt="" style="max-height: 150px; width: auto;">
</div>
</form>
</div>
</div>
<style>
/* Conteneur principal avec l'image de fond */
.login-wrapper {
background-image: url('<?= $cheminLogo ?>');
background-size: auto 100px; /* largeur auto, hauteur max 80px */
background-position: left;
background-repeat: no-repeat;
display: flex;
align-items: left;
justify-content: left;
}
/* Formulaire semi-transparent par-dessus l'image */
.login100-form {