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-01-30 17:39:21 +00:00
|
|
|
use \api\core\Request;
|
2016-10-18 14:03:03 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
|
|
|
|
<nav class='sub-menu-side'>
|
2017-10-19 12:21:20 +00:00
|
|
|
<span data-sublink='info'>
|
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>
|
2017-10-19 12:21:20 +00:00
|
|
|
<span>Informations</span>
|
2016-10-18 14:03:03 +00:00
|
|
|
</span>
|
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
<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>
|
2016-10-18 14:03:03 +00:00
|
|
|
</span>
|
|
|
|
|
2017-10-19 12:57:37 +00:00
|
|
|
<span data-sublink='admin' >
|
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/user.svg' ); ?></span>
|
|
|
|
<span>Administrateurs</span>
|
|
|
|
</span>
|
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
</nav>
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
<?php
|
2016-10-18 14:03:03 +00:00
|
|
|
|
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo "<section data-sublink='info'></section>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
/* CHANGEMENT MOT DE PASSE
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
echo "<section data-sublink='password'>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo "<form class='search'>";
|
|
|
|
echo "<input id='old_pwd' type='password' placeholder=\"Code d'accès actuel\"><br>";
|
|
|
|
echo "<span class='error-msg old_pwd'></span><br>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo "<input id='new_pwd' type='password' placeholder=\"Nouveau code d'accès\"><br>";
|
|
|
|
echo "<span class='error-msg new_pwd'></span><br>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo "<input id='confirm_pwd' type='password' placeholder='Confirmation'><br>";
|
|
|
|
echo "<span class='error-msg confirm_pwd'></span><br>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo "<button id='update_pwd'>Mettre à jour</button>";
|
|
|
|
echo "</form>";
|
2016-10-18 14:03:03 +00:00
|
|
|
|
2017-10-19 12:57:37 +00:00
|
|
|
echo '</section>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CREATION ADMINISTRATEUR
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
echo "<section data-sublink='admin'>";
|
|
|
|
|
|
|
|
echo "<form class='valid'>";
|
|
|
|
echo "<input id='admin_username' type='text' placeholder='Identifiant'><br>";
|
|
|
|
echo "<span class='error-msg admin_username'></span><br>";
|
|
|
|
echo "<input id='admin_mail' type='text' placeholder='Adresse mail'><br>";
|
|
|
|
echo "<span class='error-msg admin_mail'></span><br>";
|
|
|
|
echo "<input id='admin_password' type='text' placeholder='Mot de passe généré...' disabled><br>";
|
|
|
|
|
|
|
|
echo "<button id='admin_submit'>Créer l'administrateur</button>";
|
|
|
|
echo "</form>";
|
|
|
|
|
2017-10-19 12:21:20 +00:00
|
|
|
echo '</section>';
|