Coorection version DeepSeek
This commit is contained in:
parent
641fe99ea5
commit
06d7b2ad68
|
|
@ -5,6 +5,7 @@
|
||||||
$msgErreur = 'Site en maintenance, veuillez vous reconnecter plus tard!';
|
$msgErreur = 'Site en maintenance, veuillez vous reconnecter plus tard!';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
|
<!-- Tableau desktop (affiché sur les écrans moyens et grands) -->
|
||||||
<div class="d-none d-md-block">
|
<div class="d-none d-md-block">
|
||||||
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 5px; margin-bottom:10px;">
|
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 5px; margin-bottom:10px;">
|
||||||
|
|
@ -70,198 +71,161 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Affichage mobile (cartes) -->
|
<!-- Affichage mobile (cartes) -->
|
||||||
<style>
|
<div class="d-md-none">
|
||||||
/* Global mobile reset pour éviter les débordements */
|
<div class="mobile-login-container" style="max-width: 100%; padding: 20px 15px; margin: 0 auto;">
|
||||||
.mobile-portail-assure,
|
|
||||||
.mobile-portail-assure * {
|
|
||||||
box-sizing: border-box;
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-portail-assure {
|
<!-- En-tête mobile -->
|
||||||
width: 100%;
|
<div class="text-center mb-4">
|
||||||
height: 100vh;
|
<span class="login100-form-title" style="font-family: Play-Bold; color:#7D4FFE; font-size: 24px; display: block; margin-bottom: 5px;">
|
||||||
overflow: hidden; /* pas de scroll horizontal ni vertical forcé ici */
|
Portail Assuré
|
||||||
background: #1c1c1c; /* fond sombre proche d’un thème portail */
|
</span>
|
||||||
display: flex;
|
<div style="height: 3px; width: 60px; background-color: #7D4FFE; margin: 0 auto;"></div>
|
||||||
flex-direction: column;
|
</div>
|
||||||
color: #e5e5e5;
|
|
||||||
font-family: Arial, sans-serif;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-header {
|
<!-- Message d'erreur -->
|
||||||
padding: 12px 16px;
|
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
||||||
text-align: center;
|
<div class="text-center mb-3">
|
||||||
font-size: 20px;
|
<div class="alert alert-danger p-2" style="font-size: 13px; border-radius: 8px;">
|
||||||
font-family: Play-Bold, Arial, sans-serif;
|
|
||||||
color: #e5e5e5; /* même couleur que ton titre desktop */
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-main {
|
|
||||||
flex: 1;
|
|
||||||
padding: 8px 12px 4px 12px;
|
|
||||||
overflow-y: auto; /* léger scroll vertical possible si petit écran */
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-card {
|
|
||||||
background: #2a2a2a;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 12px;
|
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
|
||||||
animation: fadeInUpMobile 0.35s ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-field {
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-field label {
|
|
||||||
display: block;
|
|
||||||
font-size: 13px;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
color: #cccccc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-input,
|
|
||||||
.mobile-select {
|
|
||||||
width: 100%;
|
|
||||||
height: 40px;
|
|
||||||
border-radius: 6px;
|
|
||||||
border: 1px solid #444;
|
|
||||||
background: #1f1f1f;
|
|
||||||
color: #e5e5e5;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 14px;
|
|
||||||
padding: 0 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-input::placeholder {
|
|
||||||
color: #777;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-select:focus,
|
|
||||||
.mobile-input:focus {
|
|
||||||
outline: none;
|
|
||||||
border-color: #007bff;
|
|
||||||
box-shadow: 0 0 4px rgba(0,123,255,0.7);
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-alert {
|
|
||||||
background: #8b1a1a;
|
|
||||||
border-radius: 6px;
|
|
||||||
padding: 8px;
|
|
||||||
font-size: 13px;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-btn {
|
|
||||||
width: 100%;
|
|
||||||
height: 42px;
|
|
||||||
border-radius: 20px;
|
|
||||||
border: none;
|
|
||||||
background: #007bff; /* bleu type bouton bootstrap, proche de ce que tu as sûrement */
|
|
||||||
color: #fff;
|
|
||||||
font-size: 16px;
|
|
||||||
margin-top: 6px;
|
|
||||||
transition: background 0.2s ease, transform 0.1s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-btn:active {
|
|
||||||
transform: scale(0.97);
|
|
||||||
background: #0062cc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-footer {
|
|
||||||
text-align: center;
|
|
||||||
font-size: 11px;
|
|
||||||
padding: 4px 6px 6px 6px;
|
|
||||||
color: #999999;
|
|
||||||
background: #1c1c1c;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-footer a {
|
|
||||||
color: #e5e5e5;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-footer a:hover {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes fadeInUpMobile {
|
|
||||||
from { opacity: 0; transform: translateY(10px); }
|
|
||||||
to { opacity: 1; transform: translateY(0); }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="mobile-portail-assure d-md-none">
|
|
||||||
|
|
||||||
<!-- HEADER -->
|
|
||||||
<div class="mobile-header">
|
|
||||||
Portail Assuré
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- CONTENU PRINCIPAL -->
|
|
||||||
<div class="mobile-main">
|
|
||||||
<div class="mobile-card">
|
|
||||||
|
|
||||||
<!-- Message d'erreur -->
|
|
||||||
<?php if (isset($msgErreur) and $msgErreur>" "): ?>
|
|
||||||
<div class="mobile-alert">
|
|
||||||
<?= $msgErreur ?>
|
<?= $msgErreur ?>
|
||||||
</div>
|
</div>
|
||||||
<?php else: ?>
|
</div>
|
||||||
<div id="div_msgErreur"></div>
|
<?php else: ?>
|
||||||
<?php endif; ?>
|
<div class="text-center mb-3" id="div_msgErreur_mobile"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if($maintenance!='1'): ?>
|
<?php if($maintenance!='1'): ?>
|
||||||
|
|
||||||
<!-- Langue -->
|
<!-- Carte de connexion mobile -->
|
||||||
<div class="mobile-field">
|
<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;">
|
||||||
<label for="langue">Langue</label>
|
|
||||||
<select class="mobile-select" id="langue" name="langue"
|
<!-- Champ Langue -->
|
||||||
required autocomplete="off"
|
<div class="mb-3">
|
||||||
onchange="javascript:changer_langue_connexion();">
|
<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); ?>
|
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Entité -->
|
<!-- Champ Entité -->
|
||||||
<div class="mobile-field">
|
<div class="mb-3">
|
||||||
<label for="codeSociete">Entité</label>
|
<label for="codeSociete_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||||
<input class="mobile-input" type="text" name="codeSociete" id="codeSociete"
|
Entité
|
||||||
value="<?= $codeSociete ?>" placeholder="Entité" required autocomplete="off"
|
</label>
|
||||||
onchange="javascript:changer_entite_portail();">
|
<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();">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Identifiant -->
|
<!-- Champ Identifiant -->
|
||||||
<div class="mobile-field">
|
<div class="mb-3" id="div_login_portail_mobile">
|
||||||
<label for="login">Identifiant</label>
|
<label for="login_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||||
<input class="mobile-input" type="text" name="login" id="login"
|
Identifiant
|
||||||
value="<?= $codeUtilisateur ?>" placeholder="Identifiant" required autocomplete="off">
|
</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;"
|
||||||
|
required AUTOCOMPLETE="off">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Mot de passe -->
|
<!-- Champ Mot de passe -->
|
||||||
<div class="mobile-field">
|
<div class="mb-4">
|
||||||
<label for="mdp">Mot de passe</label>
|
<label for="mdp_mobile" class="form-label required" style="font-size: 14px; color: #7D4FFE; font-weight: 600; display: block; margin-bottom: 5px;">
|
||||||
<input class="mobile-input" type="password" name="mdp" id="mdp"
|
Mot de passe
|
||||||
placeholder="Mot de passe" required autocomplete="off">
|
</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>
|
</div>
|
||||||
|
|
||||||
<!-- Bouton -->
|
<!-- Bouton Connexion -->
|
||||||
<button name="btn_connexion" id="btn_connexion" class="mobile-btn">
|
<div class="text-center">
|
||||||
Connexion
|
<button name="btn_connexion_mobile" id="btn_connexion_mobile"
|
||||||
</button>
|
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>
|
||||||
|
|
||||||
<?php endif; ?>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- FOOTER -->
|
<?php endif; ?>
|
||||||
<div class="mobile-footer">
|
|
||||||
Tous droits réservés
|
|
||||||
<a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Styles spécifiques mobile -->
|
||||||
|
<style>
|
||||||
|
.mobile-login-container {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-btn-mobile:hover {
|
||||||
|
background: white !important;
|
||||||
|
color: #7D4FFE !important;
|
||||||
|
border: solid 2px #7D4FFE !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control::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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// Adaptation des fonctions JavaScript pour mobile
|
||||||
|
function changer_langue_connexion_mobile() {
|
||||||
|
// À adapter avec votre logique existante
|
||||||
|
changer_langue_connexion();
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
// 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});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user