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:
2026-03-31 11:33:57 +02:00
parent d5b45dbc22
commit 10c228f255
47 changed files with 950 additions and 702 deletions

View File

@@ -67,13 +67,13 @@
<table class='table table-bordered table-hover table-sm' id='t1' data-height="620" data-toggle="table" data-search="true" data-show-columns="true" data-export-types="['xlsx','csv','json']" data-show-export="true" data-sortable="true" data-sort-name="VM">
<thead> <!-- Header -->
<tr>
<th data-field='vm' data-sortable='true'>VM</th>
<th data-field='Last Backup' data-sortable='true'>Last Backup</th>
<th data-field='Last Result' data-sortable='true'>Last Result</th>
<th data-field='Last Good' data-sortable='true'>Last Good Backup</th>
<th data-field='Size' data-sortable='true'>Size</th>
<th data-field='Host' data-sortable='true'>Host</th>
<th data-field='Policy' data-sortable='true' data-visible='false'>Policy</th>
<th data-field='vm' data-sortable='true'><?php echo $w_VMs;?></th>
<th data-field='Last Backup' data-sortable='true'><?php echo $w_backuplu;?></th>
<th data-field='Last Result' data-sortable='true'><?php echo $w_lastResult;?></th>
<th data-field='Last Good' data-sortable='true'><?php echo $w_lastGoodBackup;?></th>
<th data-field='Size' data-sortable='true'><?php echo $w_size;?></th>
<th data-field='Host' data-sortable='true'><?php echo $w_host;?></th>
<th data-field='Policy' data-sortable='true' data-visible='false'><?php echo $w_policy;?></th>
</tr>
</thead>
@@ -228,7 +228,7 @@
</div>
<?php
$success = $total - $er - $outdated -$excluded ;
$ERR = "VMs backups (<span class='text-light'>".$total." Success</span> - <span class='text-danger'>".$er." issues</span> - <span class='text-warning'>".$outdated." outdated </span>- <span class='text-info'>".$excluded.' excluded</span>)';
$ERR = "$w_vmBackup (<span class='text-light'>".$total." $w_success</span> - <span class='text-danger'>".$er." $w_issues</span> - <span class='text-warning'>".$outdated." $w_outdated </span>- <span class='text-info'>".$excluded." $w_excluded</span>)";
?>
</body>
<script src="/js/switch.js"></script>