alpha_full/pages/index/newPwdAdmin.php
2026-04-06 22:58:51 +02:00

64 lines
3.5 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=='controlerNewPwdAdm') {
include ("./pages/index/newPwdAdm.controle.php");
if ($validNewPwdAdm=='O') {
include ("./pages/index/newPwdAdm.validation.php");
}
}
if (isset($debug[1]) && $debug[1] == '1' ) {include ("newPwdAdm.debug.php");}
if ($validNewPwdAdm !='O') {
echo '<div id="pageConnexion" style="grid-column:1 / span 2; width:100%;" >';
echo '<form name="newPwdFormAdm" 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($adminMail,'@');
echo '<div class="champsCliCell" style="width:100%; margin:auto; text-align:center;" >';
if ($test >0) echo '<input style="width:90%" type="text" name="adminMail" maxlength="80" value="' .$adminMail. '" >';
else echo '<input type="text" style="width:90%; margin:auto;" name="adminMail" maxlength="80" value="" placeHolder="e-mail" >';
echo '</div>';
// ---------------------------------------------------
// Msg ==> newPwdAdm
// ---------------------------------------------------
dynamiqItemMessage(0, 1, 'libConnCell', '-styleDiv-', '-balise-', 'libConn', '-action-', 'client', 9, '-msg1-');
$voirMdp= '&#160;<span type="button" onClick="showHidePwd(\'newPwdAdm\');" 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\';" ', 'newPwdAdm', 'Nouveau mot de passe', $newPwdAdm, $voirMdp, '-');
// ---------------------------------------------------
// ==> newPwdAdm confirm
// ---------------------------------------------------
dynamiqItemMessage( 0, 1, 'libClientsCell', '-', 'span', 'libClients', '-action-', 'client', 93, '-msg1-');
$voirMdp= '&#160;<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="controlerNewPwdAdm();"';
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 ($adminMail !='') {$_SESSION['adminMail']=$adminMail;}
?>