assure/Vue/Ajaxconnexioncookie/french.php

113 lines
3.8 KiB
PHP
Executable File

<?php
$maintenance = $societeusersaas['maintenance'];
if($maintenance=='1')
{
$msgErreur = 'Site en maintenance, veuillez vous reconnecter plus tard!';
}
?>
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 5px; margin-bottom:10px;">
Portail Assuré
</span>
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
<div class="text-center p-t-10">
<h4 class="txt3">
<div class="col-12 alert alert-danger">
<?= $msgErreur ?>
</div>
</h4>
</div>
<?php else: ?>
<div class="text-center p-t-10" id="div_msgErreur">
</div>
<?php endif; ?>
<?php if($maintenance!='1'): ?>
<div class="wrap-input100">
<label for="langue">Langue</label>
<select class="form-select" id="langue" name="langue"
required autocomplete="off" onchange="javascript:changer_langue_connexion();">
<?php liste_options($langues, $_SESSION['lang'], true); ?>
</select>
</div>
<div class="wrap-input100">
<div class="wrap-input100 validate-input" data-validate="Enter Entity">
<label for="codeSociete">Entité</label>
<input class="input100" type="text" name="codeSociete" id="codeSociete" value="<?= $codeSociete ?>"
placeholder="Entité" style="text-align:center;" required AUTOCOMPLETE="off"
onChange="javascript:changer_entite_portail();" >
</div>
</div>
<div id="div_login_portail" class="wrap-input100">
<div class="wrap-input100 validate-input" data-validate="Enter username">
<label for="login">Identifiant</label>
<input class="input100" type="text" name="login" id="login" value="<?= $codeUtilisateur ?>" placeholder="Identifiant" style="text-align:center;" required AUTOCOMPLETE="off">
</div>
</div>
<div class="wrap-input100 validate-input" data-validate="Enter password">
<label for="mdp">Mot de passe</label>
<input class="input100" type="password" name="mdp" id="mdp" placeholder="Mot de passe" style="text-align:center;" required AUTOCOMPLETE="off">
</div>
<div class="container-login100-form-btn">
<button name="btn_connexion" id="btn_connexion" class="btn login-btn" onclick="javascript:patience_connexion();">
Connexion
</button>
</div>
<div id="div_patienter"></div>
<div class="footer" id="autoHideFooter"
style="transition: opacity 0.3s ease;"
onmouseover="this.style.opacity='1'"
onmouseout="if(document.activeElement && document.activeElement.id === 'mdp') this.style.opacity='0'">
Tous droits réservés <a href="https://www.ebene.info/">&copy; EBENE SOLUTIONS INFORMATIQUES</a>
</div>
<?php endif; ?>
<script>
// Script garantissant le fonctionnement
(function() {
function updateFooterVisibility() {
const footer = document.getElementById('autoHideFooter');
if (!footer) return;
const activeElement = document.activeElement;
const shouldHide = activeElement && (
activeElement.id === 'mdp' ||
activeElement.id === 'login' ||
activeElement.id === 'codeSociete'
);
if (shouldHide) {
footer.style.opacity = '0';
footer.style.pointerEvents = 'none';
footer.style.visibility = 'hidden';
} else {
footer.style.opacity = '1';
footer.style.pointerEvents = 'auto';
footer.style.visibility = 'visible';
}
}
// Écouter les changements de focus
document.addEventListener('focusin', updateFooterVisibility, true);
document.addEventListener('focusout', function() {
setTimeout(updateFooterVisibility, 10);
}, true);
// Vérifier périodiquement (backup)
setInterval(updateFooterVisibility, 200);
// Initialiser
setTimeout(updateFooterVisibility, 100);
})();
</script>