63 lines
3.4 KiB
PHP
Executable File
63 lines
3.4 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
|
|
// ---------------------------------------------------
|
|
// Titre de la page : recevoir ses identifiants
|
|
// ---------------------------------------------------
|
|
echo '<h1>';
|
|
dynamiqItemImage (0,0,'connTitre', 'span', '-action-', 'client', 66, 'icones', '-textClass-','-varStyle-');
|
|
echo '</h1>';
|
|
if ($codeOpe=='controlerNewPwd') {
|
|
include ("./pages/connect/newPwd.controle.php");
|
|
if ($validNewPwd=='O') {
|
|
include ("./pages/connect/newPwd.validation.php");
|
|
}
|
|
}
|
|
if (isset($debug[1]) && $debug[1] == '1' ) {include ("newPwd.debug.php");}
|
|
if ($validNewPwd !='O') {
|
|
echo '<div id="pageConnexion" style="grid-column:1 / span 2; width:100%;" >';
|
|
echo '<form name="newPwdForm" method="POST" style="display:contents" >';
|
|
echo '<input type="hidden" id="codeOpe" name="codeOpe" value="0" >';
|
|
|
|
// ---------------------------------------------------
|
|
// champ email
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0, 0, 'libConnCell', 'span', '-', 'client', 8, '-', '-textClass-', '-');
|
|
$test= strpos($idMail,'@');
|
|
echo '<div class="champsCliCell" style="width:100%; margin:auto; text-align:center;" >';
|
|
if ($test >0) echo '<input style="width:90%" type="text" name="idMail" maxlength="80" value="' .$idMail. '" >';
|
|
else echo '<input type="text" style="width:90%; margin:auto;" name="idMail" maxlength="80" value="" placeHolder="e-mail" >';
|
|
echo '</div>';
|
|
|
|
// ---------------------------------------------------
|
|
// Msg ==> newPwd
|
|
// ---------------------------------------------------
|
|
dynamiqItemMessage(0, 1, 'libConnCell', '-styleDiv-', '-balise-', 'libConn', '-action-', 'client', 9, '-msg1-');
|
|
$voirMdp= ' <span type="button" onClick="showHidePwd(\'newPwd\');" id="eye" class="fad fa-eye mdpIco" style="border-radius:7px;cursor:pointer;"></span>';
|
|
dynamiqChamp(0, 1, 'champsConnCell', 'input', 'password', 'champsConn', 'onClick="document.getElementById(\'flagUpdCpte\').value=\'Oui\';" ', 'newPwd', 'Nouveau mot de passe', $newPwd, $voirMdp, '-');
|
|
|
|
// ---------------------------------------------------
|
|
// ==> newPwd confirm
|
|
// ---------------------------------------------------
|
|
dynamiqItemMessage( 0, 1, 'libClientsCell', '-', 'span', 'libClients', '-action-', 'client', 93, '-msg1-');
|
|
$voirMdp= ' <span type="button" onClick="showHidePwd(\'mdpConfirm\');" id="eye2" class="fad fa-eye mdpIco" style="border-radius:7px;cursor:pointer;"></span>';
|
|
dynamiqChamp(0, 1, 'champsConnCell', 'input', 'password', 'champsConn', 'onKeyPress="if (event.keyCode == 13) {validerModif ();};" ', 'mdpConfirm', 'confirmez votre mdp', $mdpConfirm, $voirMdp, '-');
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton valider + contactez nous
|
|
// ---------------------------------------------------
|
|
echo '<div style="margin:auto; width:100%; grid-column:1 / span 2; text-align:center; margin:10px; padding: 10px" >';
|
|
$action='onClick="controlerNewPwd();"';
|
|
dynamiqItemImage (0, 0, 'boutons', 'div', $action, 'bouton', 6, 'icones', '-textClass-','margin-right:20px');
|
|
|
|
// ---------------------------------------------------
|
|
// ==> contactez-nous
|
|
dynamiqItemImage (0, 0,'boutons', 'div','-','menu', 18, 'icones','-','-');
|
|
echo '</div>';
|
|
|
|
echo '</form>';
|
|
echo '</div>';
|
|
}
|
|
|
|
if ($idMail !='') {$_SESSION['idMail']=$idMail;}
|
|
?>
|