267 lines
8.0 KiB
PHP
Executable File
267 lines
8.0 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) -->
|
||
<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;">
|
||
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">
|
||
Connexion
|
||
</button>
|
||
</div>
|
||
|
||
<div class="footer">
|
||
Tous droits réservés <a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||
</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
|
||
<!-- Affichage mobile (cartes) -->
|
||
<style>
|
||
/* Global mobile reset pour éviter les débordements */
|
||
.mobile-portail-assure,
|
||
.mobile-portail-assure * {
|
||
box-sizing: border-box;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.mobile-portail-assure {
|
||
width: 100%;
|
||
height: 100vh;
|
||
overflow: hidden; /* pas de scroll horizontal ni vertical forcé ici */
|
||
background: #1c1c1c; /* fond sombre proche d’un thème portail */
|
||
display: flex;
|
||
flex-direction: column;
|
||
color: #e5e5e5;
|
||
font-family: Arial, sans-serif;
|
||
}
|
||
|
||
.mobile-header {
|
||
padding: 12px 16px;
|
||
text-align: center;
|
||
font-size: 20px;
|
||
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 ?>
|
||
</div>
|
||
<?php else: ?>
|
||
<div id="div_msgErreur"></div>
|
||
<?php endif; ?>
|
||
|
||
<?php if($maintenance!='1'): ?>
|
||
|
||
<!-- Langue -->
|
||
<div class="mobile-field">
|
||
<label for="langue">Langue</label>
|
||
<select class="mobile-select" id="langue" name="langue"
|
||
required autocomplete="off"
|
||
onchange="javascript:changer_langue_connexion();">
|
||
<?php liste_options($langues, $_SESSION['lang'], true); ?>
|
||
</select>
|
||
</div>
|
||
|
||
<!-- Entité -->
|
||
<div class="mobile-field">
|
||
<label for="codeSociete">Entité</label>
|
||
<input class="mobile-input" type="text" name="codeSociete" id="codeSociete"
|
||
value="<?= $codeSociete ?>" placeholder="Entité" required autocomplete="off"
|
||
onchange="javascript:changer_entite_portail();">
|
||
</div>
|
||
|
||
<!-- Identifiant -->
|
||
<div class="mobile-field">
|
||
<label for="login">Identifiant</label>
|
||
<input class="mobile-input" type="text" name="login" id="login"
|
||
value="<?= $codeUtilisateur ?>" placeholder="Identifiant" required autocomplete="off">
|
||
</div>
|
||
|
||
<!-- Mot de passe -->
|
||
<div class="mobile-field">
|
||
<label for="mdp">Mot de passe</label>
|
||
<input class="mobile-input" type="password" name="mdp" id="mdp"
|
||
placeholder="Mot de passe" required autocomplete="off">
|
||
</div>
|
||
|
||
<!-- Bouton -->
|
||
<button name="btn_connexion" id="btn_connexion" class="mobile-btn">
|
||
Connexion
|
||
</button>
|
||
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- FOOTER -->
|
||
<div class="mobile-footer">
|
||
Tous droits réservés
|
||
<a href="https://www.ebene.info/">© EBENE SOLUTIONS INFORMATIQUES</a>
|
||
</div>
|
||
|
||
</div>
|