Remove test.php and enhance null safety and sorting across components

- Deleted `test.php` as it was no longer in use.
- Enhanced null safety checks in `Inventory.php`, `StdOut-detail.php`, `Backups.php`, and `SwitchsSAN.php` to prevent potential warnings.
- Refactored `SwitchsSAN.php` to improve sorting logic for ports based on errors, vFabric, and Port ID.
- Added seasonal snow effect script in `all.php` with toggle functionality for user engagement.
- Updated navigation bar (`navbar.html`) to include a new VIO page link.
- Introduced a new `VIO.php` page to display VIO monitoring details with table export and sorting features.
This commit is contained in:
e025532
2026-02-04 14:52:49 +01:00
parent b0c9cafc46
commit d5b45dbc22
9 changed files with 544 additions and 175 deletions

View File

@@ -82,7 +82,7 @@
foreach ($list as $s) {
$name = $s['HOSTNAME'];
$ts = $s['ts'];
$lastBackup = (explode(".",$s['LastBackup']))[0];
$lastBackup = (explode(".",$s['LastBackup'] ?? ''))[0];
$location = $s['Location'];
$log = $s['Log'];
$backuptype = $s['BackupType'];
@@ -135,19 +135,15 @@
</div>
</div>
</div>
</div>
</body>
<script src="/js/switch.js"></script>
<script>
$(function() {
// Dès que le switch #showAll change d'état
$('#showAll').on('change', function() {
// On soumet le formulaire le plus proche (le parent)
$(this).closest('form').submit();
});
$('#showSize').on('change', function() {
// On soumet le formulaire le plus proche (le parent)
$(this).closest('form').submit();
});
});