61 lines
2.4 KiB
PHP
Executable File
61 lines
2.4 KiB
PHP
Executable File
<?php
|
|
// $nomFicAppelant = basename(__FILE__);
|
|
if ($idMail!='') {
|
|
$tabResult= dynRequete_select('SELECT', 'clients', ['idMail', 'pwd', 'civ', 'nom', 'prenom', 'tel', 'lgCli', 'statut', 'cle'], ['idMail' =>$idMail], '', 'connect.reqSelect.php', 0, $debug[2],'tabResult');
|
|
if ($tabResult) {
|
|
foreach ($tabResult as $i => $row) {
|
|
$idMailRecupBase = $row['idMail'];
|
|
$pwdRecupBase = $row['pwd'];
|
|
$civ = $row['civ'];
|
|
$nom = $row['nom'];
|
|
$prenom = $row['prenom'];
|
|
$tel = $row['tel'];
|
|
// utilisation de tel dans panier
|
|
$_SESSION['tel']=$tel;
|
|
$lgCli = $row['lgCli'];
|
|
$statutCli = $row['statut'];
|
|
$cleBdd = $row['cle'];
|
|
}
|
|
}
|
|
else {
|
|
// msg ==> utilisateur inexistant
|
|
$usrSiteMsg='<span data-tooltip="' .$navMsg[27]. '">' .$navMsg[27]. '</span>';
|
|
$validLogin='N';
|
|
$usrSiteMsgClass='ko';
|
|
$erreurSql=1;
|
|
|
|
echo '<div style="grid-column:1 / span 3; padding:50px; margin:10px; max-width:100%; text-align:center;" >';
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton re-essayer
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0,0,'boutons', 'span','onClick="window.location=\'connection\';"','bouton', 4, 'icones','-','');
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton contactez-nous
|
|
// ---------------------------------------------------
|
|
echo '   ';
|
|
dynamiqItemImage (0,0,'boutons', 'span','-','menu', 18, 'icones','-','-');
|
|
echo '</div>';
|
|
}
|
|
}
|
|
else {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) $debugMsg .= 'Requête select ko: mail vide dans connect.reqSelect.php';$usrSiteMsgClass='ko';
|
|
$usrSiteMsg='<span data-tooltip="' .$navMsg[27]. '">' .$navMsg[27]. '</span>';
|
|
$usrSiteMsgClass='ko';
|
|
echo '<div style="grid-column:1 / span 3; padding:50px; margin:10px; max-width:100%; text-align:center" >';
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton re-essayer
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0,0,'boutons', 'span','onClick="window.location=\'connection\';"','bouton', 4, 'icones','-','');
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton contactez-nous
|
|
// ---------------------------------------------------
|
|
echo '   ';
|
|
dynamiqItemImage (0,0,'boutons', 'span','-','menu', 18, 'icones','-','-');
|
|
|
|
echo '</div>';
|
|
}
|
|
?>
|