From 0c2e031885c0c61fba7edd84425535e73f4776c4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 8 Nov 2017 13:46:57 +0100 Subject: [PATCH] Added history/archive to 'view'-er + fixed views' class --- build/generic/view/history/archive/main.php | 13 +++++++++++++ build/generic/view/history/archive/main.twig | 7 +++++++ public_html/view/history.php | 13 ++++--------- 3 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 build/generic/view/history/archive/main.php create mode 100644 build/generic/view/history/archive/main.twig diff --git a/build/generic/view/history/archive/main.php b/build/generic/view/history/archive/main.php new file mode 100644 index 0000000..a536ca9 --- /dev/null +++ b/build/generic/view/history/archive/main.php @@ -0,0 +1,13 @@ + + Le téléchargement de l'archive supprimera toutes les entrées de l'historique. +
+
Etes-vous sur de vouloir procéder ?
+
+ + \ No newline at end of file diff --git a/public_html/view/history.php b/public_html/view/history.php index bb8a589..7618291 100755 --- a/public_html/view/history.php +++ b/public_html/view/history.php @@ -54,7 +54,7 @@ =========================================================*/ if( isset($post[1]) && is_numeric($post[1]) ){ - echo "
"; + echo "
"; $view = View::load('history.details'); echo $view->render([ @@ -72,15 +72,10 @@ /* [3] Archive -> Archivage des logs =========================================================*/ - echo "
"; + echo "
"; - echo ""; + $view = View::load('history.archive'); + echo $view->render(); echo '
';