Enhance /X/Inventory.php with detailed backup log handling and dynamic styling, add new opwsinf URL in include/all.php, and remove unused Orphan LUNs link from the navbar.

This commit is contained in:
2025-11-05 10:09:03 +01:00
parent ea46ba5c8f
commit 9afc833361
3 changed files with 21 additions and 13 deletions

View File

@@ -179,19 +179,27 @@
//LastBackup //LastBackup
$lr = explode(".", $s['backuplast'] ?? "")[0]; $lr = explode(".", $s['backuplast'] ?? "")[0];
$size = 0; if(str_contains(strtolower($s['backuplog']), 'progress')){
if ($s['backuplog'] != "") { $size = "<span class='text-warning'>In Progress</span>";
if (str_contains($s['backuplog'], "Length")) { }elseif (str_contains(strtolower($s['backuplog']), 'waiting')){
$size = explode(" ", $s['backuplog'])[1]; $size = "<span class='text-warning'><br>".$s['backuplog']."</span>";
} else { }elseif (str_contains(strtolower($s['backuplog']), 'error')){
$size = explode(" ", $s['backuplog'])[3]; $size = "<span class='text-danger'><b> ERROR !!!</b></span>";
}else {
$size = 0;
if ($s['backuplog'] != "") {
if (str_contains($s['backuplog'], "Length")) {
$size = explode(" ", $s['backuplog'])[1];
} else {
$size = explode(" ", $s['backuplog'])[3];
}
$size = floor($size / 1024 / 1024 / 1024);
}
if ($size >= 15) {
$size = "<span class='text-danger'><b>$size GB</b></span>";
} else {
$size = "$size GB";
} }
$size = floor($size / 1024 / 1024 / 1024);
}
if ($size >= 15) {
$size = "<span class='text-danger'><b>$size GB</b></span>";
} else {
$size = "$size GB";
} }
try { try {
$lrDate = new DateTime($lr); $lrDate = new DateTime($lr);

View File

@@ -3,6 +3,7 @@
$BaseUrl = "http://".$_SERVER['SERVER_NAME']; $BaseUrl = "http://".$_SERVER['SERVER_NAME'];
$root = $_SERVER['DOCUMENT_ROOT']; $root = $_SERVER['DOCUMENT_ROOT'];
$bdnuss = "http://web-bdnuss-sys-dev.appliarmony.net"; $bdnuss = "http://web-bdnuss-sys-dev.appliarmony.net";
$opwsinf = "https://wsopinf.appliarmony.net";
// FUNCTIONS // // FUNCTIONS //
//tools// //tools//

View File

@@ -78,7 +78,6 @@
<ul class="collapse nav flex-column ms-1" id="Storage" data-bs-parent="#menu"> <ul class="collapse nav flex-column ms-1" id="Storage" data-bs-parent="#menu">
<li class="w-100"> <li class="w-100">
<a href="/Storage/Dashboard.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- Dashboard IBM SAN</span></a> <a href="/Storage/Dashboard.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- Dashboard IBM SAN</span></a>
<a href="/Storage/orphanluns.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- SVC Orphan LUNs</span></a>
</li> </li>
</ul> </ul>
</li> </li>