Added history/archive to 'view'-er + fixed views' class
This commit is contained in:
parent
be6b3502be
commit
0c2e031885
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace view\history\archive;
|
||||
|
||||
use \generic\core\i_view;
|
||||
|
||||
|
||||
class main extends i_view{
|
||||
|
||||
public function __construct(){
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<form class='search'>
|
||||
Le téléchargement de l'archive supprimera toutes les entrées de l'historique.
|
||||
<br>
|
||||
<center>Etes-vous sur de vouloir procéder ?</center>
|
||||
<br>
|
||||
<button id='archive_clean'>Archiver l'historique</button>
|
||||
</form>
|
|
@ -54,7 +54,7 @@
|
|||
=========================================================*/
|
||||
if( isset($post[1]) && is_numeric($post[1]) ){
|
||||
|
||||
echo "<section data-sublink='details' class='list fstart'>";
|
||||
echo "<section data-sublink='details'>";
|
||||
|
||||
$view = View::load('history.details');
|
||||
echo $view->render([
|
||||
|
@ -72,15 +72,10 @@
|
|||
/* [3] Archive -> Archivage des logs
|
||||
=========================================================*/
|
||||
|
||||
echo "<section data-sublink='archive' class='list fstart'>";
|
||||
echo "<section data-sublink='archive'>";
|
||||
|
||||
echo "<form class='search'>";
|
||||
echo "Le téléchargement de l'archive supprimera toutes les entrées de l'historique.";
|
||||
echo "<br>";
|
||||
echo "<center>Etes-vous sur de vouloir procéder ?</center>";
|
||||
echo "<br>";
|
||||
echo "<button id='archive_clean'>Archiver l'historique</button>";
|
||||
echo "</form>";
|
||||
$view = View::load('history.archive');
|
||||
echo $view->render();
|
||||
|
||||
echo '</section>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue