SMMP/public_html/view/settings.php

77 lines
1.6 KiB
PHP
Raw Normal View History

2016-10-18 14:03:03 +00:00
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
require_once __ROOT__.'/vendor/autoload.php';
use \generic\core\View;
2016-10-18 14:03:03 +00:00
?>
<!-- [1] Gestion du sous-menu de gauche -->
<nav class='sub-menu-side'>
<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>
<span>Informations</span>
2016-10-18 14:03:03 +00:00
</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>
2016-10-18 14:03:03 +00:00
</span>
<span data-sublink='admins' >
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/user.svg' ); ?></span>
<span>Administrateurs</span>
</span>
<span data-sublink='admin' >
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/add.svg' ); ?></span>
<span>Administrateur</span>
</span>
</nav>
2016-10-18 14:03:03 +00:00
<?php
2016-10-18 14:03:03 +00:00
/* INFORMATIONS ENTREPOT
*
*/
echo "<section data-sublink='info'>";
$view = View::load('settings.view');
echo $view->render();
echo "</section>";
2016-10-18 14:03:03 +00:00
/* CHANGEMENT MOT DE PASSE
*
*/
echo "<section data-sublink='password'>";
2016-10-18 14:03:03 +00:00
$view = View::load('settings.password');
echo $view->render();
2016-10-18 14:03:03 +00:00
echo '</section>';
2016-10-18 14:03:03 +00:00
/* LISTE ADMINISTRATEURS
*
*/
2017-11-08 15:07:40 +00:00
echo "<section data-sublink='admins' class='list fstart'>";
$view = View::load('settings.admin.view');
echo $view->render();
2016-10-18 14:03:03 +00:00
echo '</section>';
/* CREATION ADMINISTRATEUR
*
*/
echo "<section data-sublink='admin'>";
$view = View::load('settings.admin.create');
echo $view->render();
echo '</section>';