2016-10-18 14:03:03 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
|
2017-09-19 14:38:16 +00:00
|
|
|
require_once __ROOT__.'/vendor/autoload.php';
|
2017-11-07 11:08:45 +00:00
|
|
|
use \generic\core\View;
|
2016-02-03 22:22:18 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
|
|
|
|
<nav class='sub-menu-side'>
|
|
|
|
<span data-sublink='view'>
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/view.svg' ); ?></span>
|
2016-02-03 22:22:18 +00:00
|
|
|
<span>Mon Profil</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span data-sublink='password'>
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/password.svg' ); ?></span>
|
2016-02-03 22:22:18 +00:00
|
|
|
<span>Mot de passe</span>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2016-07-04 13:45:29 +00:00
|
|
|
$post = [];
|
2016-02-03 22:22:18 +00:00
|
|
|
foreach($_POST as $k=>$v)
|
|
|
|
array_push($post, $k);
|
|
|
|
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
|
|
|
|
|
|
/* MON PROFIL
|
|
|
|
*
|
|
|
|
*/
|
2017-11-07 11:08:45 +00:00
|
|
|
echo "<section data-sublink='view'>";
|
2016-02-03 22:22:18 +00:00
|
|
|
|
2017-11-07 11:08:45 +00:00
|
|
|
$view = View::load('profile.view');
|
|
|
|
echo $view->render();
|
2016-02-03 22:22:18 +00:00
|
|
|
|
2017-11-07 11:08:45 +00:00
|
|
|
echo '</section>';
|
2016-02-03 22:22:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-19 12:07:38 +00:00
|
|
|
/* CHANGEMENT MOT DE PASSE
|
2016-02-03 22:22:18 +00:00
|
|
|
*
|
|
|
|
*/
|
2017-10-19 12:07:38 +00:00
|
|
|
echo "<section data-sublink='password'>";
|
2016-02-03 22:22:18 +00:00
|
|
|
|
2017-11-07 11:08:45 +00:00
|
|
|
$view = View::load('profile.password');
|
|
|
|
echo $view->render();
|
2017-10-19 12:07:38 +00:00
|
|
|
|
|
|
|
echo '</section>';
|
2016-02-03 22:22:18 +00:00
|
|
|
|
2016-07-08 15:04:41 +00:00
|
|
|
?>
|