a
This commit is contained in:
parent
f6a1783b3d
commit
7a20bca5a5
|
|
@ -41,6 +41,8 @@ class ControleurAjaxconnexioncookie extends Controleur
|
|||
}
|
||||
}
|
||||
|
||||
$afficherLogoSociete = $this->societeuser->get_afficher_logo_societe($codeSociete);
|
||||
|
||||
$this->genererVueAjax
|
||||
(
|
||||
array
|
||||
|
|
@ -52,7 +54,8 @@ class ControleurAjaxconnexioncookie extends Controleur
|
|||
'codeSocieteUnique' => $codeSocieteUnique,
|
||||
'userUnique' => $userUnique,
|
||||
'codeSociete' => $codeSociete,
|
||||
'codeUtilisateur' => $codeUtilisateur
|
||||
'codeUtilisateur' => $codeUtilisateur,
|
||||
'afficherLogoSociete' => $afficherLogoSociete,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -26230,21 +26230,30 @@ function changer_entite_portail()
|
|||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
// alert('error :' + errorData);
|
||||
// console.log('error :' + data);
|
||||
$("#div_login_portail").html(errorData);
|
||||
},
|
||||
success: function(data) {
|
||||
// alert('success :' + data);
|
||||
// console.log('success :' + data);
|
||||
$("#div_login_portail").html(data);
|
||||
$("#login").focus();
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
/*
|
||||
src_logo="Societes/"+codeSociete+"/Logos/logo_societe.png";
|
||||
const wrapper = document.querySelector('.login-wrapper');
|
||||
wrapper.style.backgroundImage = `url('${src_logo}')`;
|
||||
*/
|
||||
|
||||
src_logo="";
|
||||
afficherLogoSociete = $("#afficherLogoSociete").val();
|
||||
if(afficherLogoSociete=="1")
|
||||
{
|
||||
src_logo="Societes/"+codeSociete+"/Logos/logo_societe.png";
|
||||
}
|
||||
|
||||
const wrapper = document.querySelector('.login-wrapper');
|
||||
wrapper.style.backgroundImage = `url('${src_logo}')`;
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,5 +74,16 @@ WHERE A.actif="1" AND B.site=? ORDER BY 2;';
|
|||
|
||||
return $resultat;
|
||||
}
|
||||
|
||||
public function get_afficher_logo_societe($codeSociete)
|
||||
{
|
||||
$sql = 'select fn_afficher_logo_societe_prestataire(?) as afficherLogoSociete;';
|
||||
|
||||
$resultat = $this->executerRequete($sql, array($codeSociete));
|
||||
|
||||
$ligne = $resultat->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
return $ligne['afficherLogoSociete'];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<input class="sr-only" type="text" name="afficherLogoSociete" id="afficherLogoSociete" value="<?= $afficherLogoSociete ?>">
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||
<?php if($_SESSION['p_lang']=="en_US"): ?>
|
||||
<label for="login">Login</label>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
<input class="sr-only" type="text" name="codeSociete" id="codeSociete" value="<?= $codeSocieteUnique ?>">
|
||||
|
||||
<div id="div_login_portail">
|
||||
<input class="sr-only" type="text" name="afficherLogoSociete" id="afficherLogoSociete" value="<?= $afficherLogoSociete ?>">
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||
<label for="login">Login</label>
|
||||
<input class="input100" type="text" name="login" id="login" value="<?= $codeUtilisateur ?>" placeholder="Identifiant" style="text-align:center;" required AUTOCOMPLETE="off">
|
||||
|
|
@ -48,6 +49,7 @@
|
|||
</div>
|
||||
|
||||
<div id="div_login_portail">
|
||||
<input class="sr-only" type="text" name="afficherLogoSociete" id="afficherLogoSociete" value="<?= $afficherLogoSociete ?>">
|
||||
<div class="wrap-input100 validate-input" data-validate="Enter username">
|
||||
<label for="login">Login</label>
|
||||
<input class="input100" type="text" name="login" id="login" value="<?= $codeUtilisateur ?>" placeholder="Login" style="text-align:center;" required autocomplete="nope">
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
{
|
||||
$msgErreur = 'Site en maintenance, veuillez vous reconnecter plus tard!';
|
||||
}
|
||||
|
||||
$cheminLogo ="/Societes/$codeSociete/Logos/logo_societe.png";
|
||||
?>
|
||||
|
||||
<span class="login100-form-title" style="font-family: Play-Bold; color:#e5e5e5; margin-top: 12px; margin-bottom:10px;">
|
||||
|
|
@ -35,6 +33,7 @@
|
|||
<input class="sr-only" type="text" name="codeSociete" id="codeSociete" value="<?= $codeSocieteUnique ?>">
|
||||
|
||||
<div id="div_login_portail">
|
||||
<input class="sr-only" type="text" name="afficherLogoSociete" id="afficherLogoSociete" value="<?= $afficherLogoSociete ?>">
|
||||
<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">
|
||||
|
|
@ -50,6 +49,7 @@
|
|||
</div>
|
||||
|
||||
<div id="div_login_portail">
|
||||
<input class="sr-only" type="text" name="afficherLogoSociete" id="afficherLogoSociete" value="<?= $afficherLogoSociete ?>">
|
||||
<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="nope">
|
||||
|
|
|
|||
|
|
@ -15,7 +15,18 @@
|
|||
$codeSociete = $_COOKIE['codeSociete'];
|
||||
}
|
||||
|
||||
$cheminLogo ="/Societes/$codeSociete/Logos/logo_societe.png";
|
||||
$cheminLogo = "";
|
||||
if($afficherLogoSociete=="1")
|
||||
{
|
||||
$cheminLogo ="/Societes/$codeSociete/Logos/logo_societe.png";
|
||||
}
|
||||
|
||||
var_dump(
|
||||
array(
|
||||
"cheminLogo" => $cheminLogo,
|
||||
"afficherLogoSociete" => $afficherLogoSociete
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
<div class="login-wrapper">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user