78 lines
1.4 KiB
PHP
Executable File
78 lines
1.4 KiB
PHP
Executable File
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
|
|
require_once __ROOT__.'/vendor/autoload.php';
|
|
use \api\core\Request;
|
|
?>
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
<nav class='sub-menu-side'>
|
|
<span data-sublink='view'>
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/view.svg' ); ?></span>
|
|
<span>Mon Profil</span>
|
|
</span>
|
|
|
|
<span data-sublink='password'>
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/password.svg' ); ?></span>
|
|
<span>Mot de passe</span>
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$post = [];
|
|
foreach($_POST as $k=>$v)
|
|
array_push($post, $k);
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
/* MON PROFIL
|
|
*
|
|
*/
|
|
// if( $sublink == 'view' ){
|
|
|
|
echo "<section data-sublink='view'>";
|
|
echo 'Profil';
|
|
echo '</section>';
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CHANGEMENT MOT DE PASSE
|
|
*
|
|
*/
|
|
echo "<section data-sublink='password'>";
|
|
|
|
echo "<form class='search'>";
|
|
echo "<input id='old_pwd' type='password' placeholder='Mot de passe actuel'><br>";
|
|
echo "<span class='error-msg old_pwd'></span><br>";
|
|
|
|
echo "<input id='new_pwd' type='password' placeholder='Nouveau mot de passe'><br>";
|
|
echo "<span class='error-msg new_pwd'></span><br>";
|
|
|
|
echo "<input id='confirm_pwd' type='password' placeholder='Confirmation'><br>";
|
|
echo "<span class='error-msg confirm_pwd'></span><br>";
|
|
|
|
echo "<button id='update_pwd'>Mettre à jour</button>";
|
|
echo "</form>";
|
|
|
|
echo '</section>';
|
|
|
|
?>
|