aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controller/MaintenanceController.php10
-rw-r--r--src/model/DatabaseSettingUp.php1
-rw-r--r--src/view/templates/maintenance.php4
3 files changed, 8 insertions, 7 deletions
diff --git a/src/controller/MaintenanceController.php b/src/controller/MaintenanceController.php
index 49ec23f..3b804fc 100644
--- a/src/controller/MaintenanceController.php
+++ b/src/controller/MaintenanceController.php
@@ -16,18 +16,18 @@ class MaintenanceController
16 } 16 }
17 else{ 17 else{
18 $view = '<h4>Table ' . TABLE_PREFIX . 'log de la BDD</h4> 18 $view = '<h4>Table ' . TABLE_PREFIX . 'log de la BDD</h4>
19 <table style="border-collapse: collapse; font-size: smaller;"> 19 <table>
20 <thead> 20 <thead>
21 <tr> 21 <tr>
22 <th style="border: 1px black solid;">date et heure (Greenwich)</th> 22 <th>date et heure (Greenwich)</th>
23 <th style="border: 1px black solid;">connexion réussie</th> 23 <th>connexion réussie</th>
24 </tr> 24 </tr>
25 </thead> 25 </thead>
26 <tbody>'; 26 <tbody>';
27 foreach($data as $entry){ 27 foreach($data as $entry){
28 $view .= '<tr> 28 $view .= '<tr>
29 <td style="border: 1px black solid;">' . $entry->getFormatedDate() . '</td> 29 <td>' . $entry->getFormatedDate() . '</td>
30 <td style="border: 1px black solid;">' . ($entry->getSuccess() ? 'oui' : 'non') . '</td> 30 <td>' . ($entry->getSuccess() ? 'oui' : 'non') . '</td>
31 </tr>'; 31 </tr>';
32 } 32 }
33 $view .= '</tbody></table>'; 33 $view .= '</tbody></table>';
diff --git a/src/model/DatabaseSettingUp.php b/src/model/DatabaseSettingUp.php
index d64f226..4086d5a 100644
--- a/src/model/DatabaseSettingUp.php
+++ b/src/model/DatabaseSettingUp.php
@@ -81,6 +81,7 @@ class DatabaseSettingUp
81 $emails->addCSS('show_emails'); 81 $emails->addCSS('show_emails');
82 $emails->addJS('form'); 82 $emails->addJS('form');
83 $maintenance = new Page("Maintenance", 'maintenance', "Opérations de maintenance, installation, sauvegarde, restauration", true, false, false, NULL, NULL); 83 $maintenance = new Page("Maintenance", 'maintenance', "Opérations de maintenance, installation, sauvegarde, restauration", true, false, false, NULL, NULL);
84 $maintenance->addCSS('maintenance');
84 $maintenance->addJS('maintenance'); 85 $maintenance->addJS('maintenance');
85 86
86 /* -- table node -- */ 87 /* -- table node -- */
diff --git a/src/view/templates/maintenance.php b/src/view/templates/maintenance.php
index 426831f..660756b 100644
--- a/src/view/templates/maintenance.php
+++ b/src/view/templates/maintenance.php
@@ -1,5 +1,5 @@
1<?php declare(strict_types=1); ?> 1<?php declare(strict_types=1); ?>
2<section> 2<section class="maintenance">
3 <h3>Maintenance du site</h3> 3 <h3>Maintenance du site</h3>
4 <div class="basic_div"> 4 <div class="basic_div">
5 <p> 5 <p>
@@ -13,7 +13,7 @@
13 </div> 13 </div>
14 <div class="basic_div"> 14 <div class="basic_div">
15 <p> 15 <p>
16 <a href="http://nageurs.localhost/index.php?page=emails"><button>Consulter les emails</button></a><br> 16 <a href="<?= new URL(['page' => 'emails']) ?>"><button>Consulter les emails</button></a><br>
17 <i>Emails reçus depuis tous les formulaires de contact</i> 17 <i>Emails reçus depuis tous les formulaires de contact</i>
18 </p> 18 </p>
19 </div> 19 </div>