SMMP/public_html/view/history.php

52 lines
1.2 KiB
PHP
Executable File

<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
require_once __ROOT__.'/autoloader.php';
use \api\core\Request;
use \database\core\DatabaseDriver;
use \database\core\Repo;
use \viewer\core\Viewer;
use \orm\core\Table; use \orm\core\Rows;
?>
<!-- [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>Tout afficher</span>
</span>
<span data-sublink='filter' >
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/filter.svg' ); ?></span>
<span>Détails</span>
</span>
<span data-sublink='remove' >
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/archive.svg' ); ?></span>
<span>Archiver</span>
</span>
</nav>
<?php
$post = [];
foreach($_POST as $k=>$v)
array_push($post, $k);
$sublink = $post[0];
/* [1] VIEW -> Liste des acces
=========================================================*/
echo "<section data-sublink='view' class='list fstart'>";
$view = new Viewer('history.view', []);
$view->view();
echo '</section>';