Version DeepSeek corrigée v0.1
This commit is contained in:
parent
c228d14b96
commit
c3dab11552
|
|
@ -72,152 +72,200 @@
|
|||
|
||||
<!-- Affichage mobile (cartes) -->
|
||||
<div class="d-md-none">
|
||||
<div style="max-width: 100%; padding: 15px; box-sizing: border-box; overflow: hidden;">
|
||||
|
||||
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 5px; margin-bottom:10px; display: block; text-align: center; font-size: 24px;">
|
||||
Portail Assuré
|
||||
</span>
|
||||
<!-- Copie exacte de la logique desktop, juste adaptée pour mobile -->
|
||||
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 5px; margin-bottom:10px; display: block; font-size: 22px; text-align: center;">
|
||||
Portail Assuré
|
||||
</span>
|
||||
|
||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||
<div class="text-center p-t-10" style="margin-bottom: 15px;">
|
||||
<div style="background-color: #f8d7da; color: #721c24; padding: 10px; border-radius: 6px; border: 1px solid #f5c6cb; font-size: 14px;">
|
||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||
<div class="text-center p-t-10" style="margin-bottom: 15px;">
|
||||
<h4 class="txt3">
|
||||
<div class="col-12 alert alert-danger" style="padding: 10px; font-size: 14px;">
|
||||
<?= $msgErreur ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-center p-t-10" id="div_msgErreur" style="margin-bottom: 15px;"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($maintenance!='1'): ?>
|
||||
|
||||
<!-- Langue -->
|
||||
<div class="wrap-input100" style="margin-bottom: 15px; text-align: center;">
|
||||
<label for="langue_mobile" style="font-size: 12pt; display: block; margin-bottom: 5px;">Langue</label>
|
||||
<select class="form-select" id="langue_mobile" name="langue_mobile"
|
||||
style="width: 100%; max-width: 300px; margin: 0 auto; text-align:center; padding: 10px; border-radius: 9px; border: 2px solid #7D4FFE !important; font-size: 14px; background-color: #ffffff; color: #7D4FFE; box-sizing: border-box; display: block;"
|
||||
required autocomplete="off" onchange="javascript:changer_langue_connexion();">
|
||||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
</h4>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-center p-t-10" id="div_msgErreur" style="margin-bottom: 15px;"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Entité -->
|
||||
<div class="wrap-input100" style="margin-bottom: 15px; text-align: center;">
|
||||
<div class="wrap-input100 validate-input">
|
||||
<label for="codeSociete_mobile" style="font-size: 12pt; display: block; margin-bottom: 5px;">Entité</label>
|
||||
<input class="input100" type="text" name="codeSociete_mobile" id="codeSociete_mobile" value="<?= $codeSociete ?>"
|
||||
placeholder="Entité"
|
||||
style="width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE !important; text-align: center; box-sizing: border-box; display: block;"
|
||||
required AUTOCOMPLETE="off" onChange="javascript:changer_entite_portail();">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Identifiant -->
|
||||
<div id="div_login_portail_mobile" class="wrap-input100" style="margin-bottom: 15px; text-align: center;">
|
||||
<div class="wrap-input100 validate-input">
|
||||
<label for="login_mobile" style="font-size: 12pt; display: block; margin-bottom: 5px;">Identifiant</label>
|
||||
<input class="input100" type="text" name="login_mobile" id="login_mobile" value="<?= $codeUtilisateur ?>"
|
||||
placeholder="Identifiant"
|
||||
style="width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE !important; text-align: center; box-sizing: border-box; display: block;"
|
||||
required AUTOCOMPLETE="off">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Mot de passe -->
|
||||
<div class="wrap-input100 validate-input" style="margin-bottom: 20px; text-align: center;">
|
||||
<label for="mdp_mobile" style="font-size: 12pt; display: block; margin-bottom: 5px;">Mot de passe</label>
|
||||
<input class="input100" type="password" name="mdp_mobile" id="mdp_mobile"
|
||||
placeholder="Mot de passe"
|
||||
style="width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE !important; text-align: center; box-sizing: border-box; display: block;"
|
||||
required AUTOCOMPLETE="off">
|
||||
</div>
|
||||
|
||||
<!-- Bouton Connexion -->
|
||||
<div class="container-login100-form-btn" style="text-align: center; margin-bottom: 20px;">
|
||||
<button name="btn_connexion_mobile" id="btn_connexion_mobile"
|
||||
class="btn login-btn"
|
||||
style="width: 100%; max-width: 300px; background: #7D4FFE; color: white; font-size: 18px; font-weight: 700; padding: 12px; border-radius: 9px; border: none; margin: 0 auto; display: block;">
|
||||
Connexion
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="footer" style="position: relative; bottom: 0; left: 0; font-size: 11px; text-align: center; padding: 10px; width: 100%; box-sizing: border-box;">
|
||||
Tous droits réservés <a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($maintenance!='1'): ?>
|
||||
<!-- TOUTE LA STRUCTURE EST IDENTIQUE, SEULEMENT LES STYLES SONT AJUSTÉS POUR MOBILE -->
|
||||
<div class="wrap-input100" style="margin-bottom: 15px;">
|
||||
<label for="langue">Langue</label>
|
||||
<select class="form-select" id="langue" name="langue"
|
||||
style="width: 100%; height: 40px; padding: 8px 12px; border: 2px solid #7D4FFE !important; border-radius: 9px; background: transparent; font-size: 13px; color: #7D4FFE; text-align: center; box-sizing: border-box;"
|
||||
required autocomplete="off" onchange="javascript:changer_langue_connexion();">
|
||||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrap-input100" style="margin-bottom: 15px;">
|
||||
<div class="wrap-input100 validate-input">
|
||||
<label for="codeSociete">Entité</label>
|
||||
<input class="input100" type="text" name="codeSociete" id="codeSociete" value="<?= $codeSociete ?>"
|
||||
placeholder="Entité"
|
||||
style="width: 100%; height: 40px; padding: 8px 12px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE; text-align: center; box-sizing: border-box;"
|
||||
required AUTOCOMPLETE="off"
|
||||
onChange="javascript:changer_entite_portail();" >
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_login_portail" class="wrap-input100" style="margin-bottom: 15px;">
|
||||
<div class="wrap-input100 validate-input">
|
||||
<label for="login">Identifiant</label>
|
||||
<input class="input100" type="text" name="login" id="login" value="<?= $codeUtilisateur ?>"
|
||||
placeholder="Identifiant"
|
||||
style="width: 100%; height: 40px; padding: 8px 12px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE; text-align: center; box-sizing: border-box;"
|
||||
required AUTOCOMPLETE="off">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrap-input100 validate-input" style="margin-bottom: 20px;">
|
||||
<label for="mdp">Mot de passe</label>
|
||||
<input class="input100" type="password" name="mdp" id="mdp" placeholder="Mot de passe"
|
||||
style="width: 100%; height: 40px; padding: 8px 12px; border: 2px solid #7D4FFE !important; border-radius: 9px; color: #7D4FFE; text-align: center; box-sizing: border-box;"
|
||||
required AUTOCOMPLETE="off">
|
||||
</div>
|
||||
|
||||
<div class="container-login100-form-btn" style="margin-bottom: 20px;">
|
||||
<button name="btn_connexion" id="btn_connexion" class="btn login-btn"
|
||||
style="width: 100%; height: 45px; background: #7D4FFE; color: white; font-size: 18px; font-weight: 700; border-radius: 9px; border: none; box-sizing: border-box;">
|
||||
Connexion
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="footer" style="position: relative; bottom: auto; left: auto; font-size: 11px; text-align: center; padding: 10px; width: 100%; box-sizing: border-box;">
|
||||
Tous droits réservés <a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<!-- STYLE CRITIQUE POUR ÉVITER TOUT DÉBORDEMENT -->
|
||||
<style>
|
||||
/* Reset pour éviter tout débordement */
|
||||
.d-md-none * {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
/* RESET COMPLET POUR MOBILE */
|
||||
.d-md-none {
|
||||
width: 100% !important;
|
||||
max-width: 100vw !important;
|
||||
overflow-x: hidden !important;
|
||||
position: relative !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
/* Styles spécifiques pour mobile */
|
||||
@media screen and (max-width: 767px) {
|
||||
.d-md-none > * {
|
||||
max-width: 100% !important;
|
||||
box-sizing: border-box !important;
|
||||
word-wrap: break-word !important;
|
||||
}
|
||||
|
||||
/* CONTENEUR PRINCIPAL SANS DÉBORDEMENT */
|
||||
.d-md-none {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
justify-content: center !important;
|
||||
align-items: center !important;
|
||||
padding: 10px 15px !important;
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
/* GARANTIR QUE TOUT TIENT DANS L'ÉCRAN */
|
||||
.wrap-input100 {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
/* LES LABELS ET INPUTS S'ADAPTENT */
|
||||
.d-md-none label {
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
text-align: center !important;
|
||||
margin-bottom: 5px !important;
|
||||
font-size: 12pt !important;
|
||||
}
|
||||
|
||||
.d-md-none input,
|
||||
.d-md-none select,
|
||||
.d-md-none .login-btn {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
margin: 0 auto !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* EMPÊCHER LE ZOOM SUR MOBILE */
|
||||
.d-md-none input,
|
||||
.d-md-none select {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
/* CORRECTION SPÉCIFIQUE POUR LE FOOTER */
|
||||
.d-md-none .footer {
|
||||
position: static !important;
|
||||
margin-top: 20px !important;
|
||||
width: 100% !important;
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
/* POUR LES TRÈS PETITS ÉCRANS */
|
||||
@media screen and (max-width: 320px) {
|
||||
.d-md-none {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
padding: 10px !important;
|
||||
}
|
||||
|
||||
.d-md-none > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 10px;
|
||||
.login100-form-title {
|
||||
font-size: 20px !important;
|
||||
}
|
||||
|
||||
/* Ajustement des champs sur très petits écrans */
|
||||
@media screen and (max-width: 320px) {
|
||||
.d-md-none input,
|
||||
.d-md-none select,
|
||||
.d-md-none .login-btn {
|
||||
max-width: 280px !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.login100-form-title {
|
||||
font-size: 22px !important;
|
||||
}
|
||||
.d-md-none input,
|
||||
.d-md-none select {
|
||||
height: 38px !important;
|
||||
padding: 6px 10px !important;
|
||||
}
|
||||
|
||||
.login-btn {
|
||||
height: 42px !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Bouton hover (identique à desktop) */
|
||||
.login-btn:hover {
|
||||
background: white !important;
|
||||
color: #7D4FFE !important;
|
||||
border: solid 2px #7D4FFE !important;
|
||||
}
|
||||
|
||||
/* Placeholder (identique à desktop) */
|
||||
input::placeholder {
|
||||
font-weight: bold;
|
||||
color: #7D4FFE;
|
||||
opacity: 0.8;
|
||||
/* POUR LES TABLETTES EN MODE PORTRAIT */
|
||||
@media screen and (min-width: 480px) and (max-width: 767px) {
|
||||
.d-md-none {
|
||||
max-width: 400px !important;
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// Utilisation des mêmes fonctions que le desktop
|
||||
// Les champs mobiles peuvent être reliés aux fonctions existantes
|
||||
// ou vous pouvez créer des wrappers si nécessaire
|
||||
// IMPORTANT: MÊME LOGIQUE JAVASCRIPT QUE LE DESKTOP
|
||||
// Les IDs sont identiques, donc les fonctions JavaScript existantes
|
||||
// fonctionneront directement avec cette version mobile
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Optionnel : Synchroniser les valeurs entre desktop et mobile si nécessaire
|
||||
// ou utiliser directement les mêmes fonctions
|
||||
|
||||
// Prévenir le zoom sur focus mobile (amélioration UX)
|
||||
document.querySelectorAll('input, select').forEach(function(element) {
|
||||
element.addEventListener('focus', function() {
|
||||
this.style.fontSize = '16px'; // Prévenir le zoom iOS
|
||||
// Assurer que le bouton a le même comportement
|
||||
document.getElementById('btn_connexion')?.addEventListener('click', function(e) {
|
||||
// La logique existante dans votre application s'appliquera automatiquement
|
||||
// car les IDs des champs sont identiques à la version desktop
|
||||
console.log('Connexion mobile - mêmes IDs que desktop');
|
||||
});
|
||||
|
||||
// Correction pour garantir que tout s'affiche correctement
|
||||
window.addEventListener('load', function() {
|
||||
// Vérifier et corriger tout débordement
|
||||
const mobileContainer = document.querySelector('.d-md-none');
|
||||
if (mobileContainer) {
|
||||
// Forcer le recalcul des dimensions
|
||||
mobileContainer.style.width = '100%';
|
||||
mobileContainer.style.overflowX = 'hidden';
|
||||
|
||||
// Vérifier chaque élément pour éviter le débordement
|
||||
const allElements = mobileContainer.querySelectorAll('*');
|
||||
allElements.forEach(el => {
|
||||
el.style.maxWidth = '100%';
|
||||
el.style.boxSizing = 'border-box';
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user