Version deepSeek corrigé
This commit is contained in:
parent
06d7b2ad68
commit
c228d14b96
|
|
@ -72,91 +72,77 @@
|
|||
|
||||
<!-- Affichage mobile (cartes) -->
|
||||
<div class="d-md-none">
|
||||
<div class="mobile-login-container" style="max-width: 100%; padding: 20px 15px; margin: 0 auto;">
|
||||
<div style="max-width: 100%; padding: 15px; box-sizing: border-box; overflow: hidden;">
|
||||
|
||||
<!-- En-tête mobile -->
|
||||
<div class="text-center mb-4">
|
||||
<span class="login100-form-title" style="font-family: Play-Bold; color:#7D4FFE; font-size: 24px; display: block; margin-bottom: 5px;">
|
||||
Portail Assuré
|
||||
</span>
|
||||
<div style="height: 3px; width: 60px; background-color: #7D4FFE; margin: 0 auto;"></div>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
<!-- Message d'erreur -->
|
||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||
<div class="text-center mb-3">
|
||||
<div class="alert alert-danger p-2" style="font-size: 13px; border-radius: 8px;">
|
||||
<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;">
|
||||
<?= $msgErreur ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-center mb-3" id="div_msgErreur_mobile"></div>
|
||||
<div class="text-center p-t-10" id="div_msgErreur" style="margin-bottom: 15px;"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($maintenance!='1'): ?>
|
||||
|
||||
<!-- Carte de connexion mobile -->
|
||||
<div class="mobile-login-card" style="background: white; border-radius: 12px; padding: 25px 20px; box-shadow: 0 4px 12px rgba(125, 79, 254, 0.1); margin-bottom: 20px;">
|
||||
|
||||
<!-- Champ Langue -->
|
||||
<div class="mb-3">
|
||||
<label for="langue_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||
Langue
|
||||
</label>
|
||||
<select class="form-select" id="langue_mobile" name="langue_mobile"
|
||||
style="width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #7D4FFE !important; font-size: 14px; background-color: #ffffff; color: #7D4FFE; box-sizing: border-box;"
|
||||
required autocomplete="off" onchange="javascript:changer_langue_connexion_mobile();">
|
||||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<!-- 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>
|
||||
|
||||
<!-- Champ Entité -->
|
||||
<div class="mb-3">
|
||||
<label for="codeSociete_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||
Entité
|
||||
</label>
|
||||
<input class="form-control" type="text" name="codeSociete_mobile" id="codeSociete_mobile"
|
||||
value="<?= $codeSociete ?>" placeholder="Entité"
|
||||
style="width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #7D4FFE !important; font-size: 14px; color: #7D4FFE; text-align: center; background-color: #ffffff; box-sizing: border-box;"
|
||||
required AUTOCOMPLETE="off" onChange="javascript:changer_entite_portail_mobile();">
|
||||
<!-- 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>
|
||||
|
||||
<!-- Champ Identifiant -->
|
||||
<div class="mb-3" id="div_login_portail_mobile">
|
||||
<label for="login_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||
Identifiant
|
||||
</label>
|
||||
<input class="form-control" type="text" name="login_mobile" id="login_mobile"
|
||||
value="<?= $codeUtilisateur ?>" placeholder="Identifiant"
|
||||
style="width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #7D4FFE !important; font-size: 14px; color: #7D4FFE; text-align: center; background-color: #ffffff; box-sizing: border-box;"
|
||||
<!-- 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>
|
||||
|
||||
<!-- Champ Mot de passe -->
|
||||
<div class="mb-4">
|
||||
<label for="mdp_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||
Mot de passe
|
||||
</label>
|
||||
<input class="form-control" type="password" name="mdp_mobile" id="mdp_mobile"
|
||||
placeholder="Mot de passe"
|
||||
style="width: 100%; padding: 10px 12px; border-radius: 8px; border: 2px solid #7D4FFE !important; font-size: 14px; color: #7D4FFE; text-align: center; background-color: #ffffff; box-sizing: border-box;"
|
||||
required AUTOCOMPLETE="off">
|
||||
</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="text-center">
|
||||
<button name="btn_connexion_mobile" id="btn_connexion_mobile"
|
||||
class="btn login-btn-mobile"
|
||||
style="width: 100%; padding: 12px; background: #7D4FFE; color: white; font-size: 16px; font-weight: 700; border-radius: 8px; border: none; transition: all 0.3s;">
|
||||
Connexion
|
||||
</button>
|
||||
</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>
|
||||
|
||||
</div> <!-- Fin de la carte -->
|
||||
|
||||
<!-- Footer mobile -->
|
||||
<div class="footer-mobile text-center mt-4" style="font-size: 11px; color: #666; padding: 0 10px;">
|
||||
Tous droits réservés <a href="https://www.ebene.info/" style="color: #7D4FFE; text-decoration: none;">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||||
<!-- 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; ?>
|
||||
|
|
@ -164,68 +150,74 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Styles spécifiques mobile -->
|
||||
<style>
|
||||
.mobile-login-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
/* Reset pour éviter tout débordement */
|
||||
.d-md-none * {
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.login-btn-mobile:hover {
|
||||
/* Styles spécifiques pour mobile */
|
||||
@media screen and (max-width: 767px) {
|
||||
.d-md-none {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.d-md-none > div {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Bouton hover (identique à desktop) */
|
||||
.login-btn:hover {
|
||||
background: white !important;
|
||||
color: #7D4FFE !important;
|
||||
border: solid 2px #7D4FFE !important;
|
||||
}
|
||||
|
||||
.form-control::placeholder {
|
||||
/* Placeholder (identique à desktop) */
|
||||
input::placeholder {
|
||||
font-weight: bold;
|
||||
color: #7D4FFE;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
outline: none;
|
||||
border-color: #7D4FFE !important;
|
||||
box-shadow: 0 0 0 3px rgba(125, 79, 254, 0.1);
|
||||
}
|
||||
|
||||
/* Ajustement pour les très petits écrans */
|
||||
@media screen and (max-width: 360px) {
|
||||
.mobile-login-card {
|
||||
padding: 20px 15px;
|
||||
}
|
||||
|
||||
.login100-form-title {
|
||||
font-size: 22px !important;
|
||||
}
|
||||
opacity: 0.8;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
// Adaptation des fonctions JavaScript pour mobile
|
||||
function changer_langue_connexion_mobile() {
|
||||
// À adapter avec votre logique existante
|
||||
changer_langue_connexion();
|
||||
}
|
||||
// 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
|
||||
|
||||
function changer_entite_portail_mobile() {
|
||||
// À adapter avec votre logique existante
|
||||
changer_entite_portail();
|
||||
}
|
||||
|
||||
// Gestion du bouton de connexion mobile
|
||||
document.getElementById('btn_connexion_mobile')?.addEventListener('click', function() {
|
||||
// Récupération des valeurs des champs mobiles
|
||||
const codeSociete = document.getElementById('codeSociete_mobile').value;
|
||||
const login = document.getElementById('login_mobile').value;
|
||||
const mdp = document.getElementById('mdp_mobile').value;
|
||||
const langue = document.getElementById('langue_mobile').value;
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// Optionnel : Synchroniser les valeurs entre desktop et mobile si nécessaire
|
||||
// ou utiliser directement les mêmes fonctions
|
||||
|
||||
// Ici, ajoutez votre logique de connexion
|
||||
// Pour l'instant, on utilise les mêmes fonctions que le desktop
|
||||
// Vous devrez adapter selon votre architecture
|
||||
console.log('Connexion mobile:', {codeSociete, login, mdp, langue});
|
||||
// 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
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user