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:
28
index.php
28
index.php
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Page Title -->
|
||||
<title>Web Infra Reports</title>
|
||||
<title>Web Infra Reports IT</title>
|
||||
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||
|
||||
<!-- JQuery -->
|
||||
@@ -35,7 +35,7 @@
|
||||
<!-- Display -->
|
||||
<div class="col py-3">
|
||||
<!-- Page Title -->
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">HOME</span></h1>
|
||||
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;"><?php echo $nav_home; ?></span></h1>
|
||||
|
||||
<!-- Main content -->
|
||||
<?php
|
||||
@@ -69,7 +69,7 @@
|
||||
<div class="row flex-nowrap text-center">
|
||||
<div class="col"> <!-- CARTE AD -->
|
||||
<div class="card border-primary mb-3">
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> ActiveDirectory</h5></div>
|
||||
<div class="card-header text-dark"><h5><i class="fs-4 bi-pc text-primary"></i> <?php echo $w_ad; ?></h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
DB_ENTRY02();
|
||||
@@ -78,7 +78,7 @@
|
||||
$result = $conn->query("SELECT count(*) as nbADinactive FROM adcomputers WHERE enabled = 'False'");
|
||||
$nbADinactive = mysqli_fetch_array($result)['nbADinactive'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/AD-Detail.php""><?php echo $nbADactive; ?></b> Devices <small>(<?php echo $nbADinactive; ?> inactifs)</small></a></p>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/AD-Detail.php""><?php echo $nbADactive; ?></b> <?php echo $w_devices; ?> <small>(<?php echo $nbADinactive; ?> <?php echo $w_inactives; ?>)</small></a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,7 +93,7 @@
|
||||
$nbglpi = mysqli_fetch_array($result)['nbglpi'];
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/GLPI-Detail.php"><?php echo $nbglpi; ?></b> Devices</a></p>
|
||||
<p class="card-text text-center text-dark"><b><?php echo $nbglpi; ?></b> <?php echo $w_devices; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,7 +108,7 @@
|
||||
$rs=odbc_exec($conn,$sql);
|
||||
$nbsccm = odbc_result($rs,"nbsccm");
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/SCCM-Detail.php"><?php echo $nbsccm; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center text-dark"><b><?php echo $nbsccm; ?></b> Agents</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -122,7 +122,7 @@
|
||||
$result = $conn->query("SELECT count(*) as nbnessus FROM GlobalCrossover where epo like '%.%'");
|
||||
$nbnessus = mysqli_fetch_array($result)['nbnessus'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/Nessus-Detail.php"><?php echo $nbnessus; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center text-dark"><b><?php echo $nbnessus; ?></b> Agents</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -135,7 +135,7 @@
|
||||
$result = $conn->query("SELECT count(*) as nbS1 FROM GlobalCrossover where S1 like '%.%'");
|
||||
$nbS1 = mysqli_fetch_array($result)['nbS1'];
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/S1-Detail.php"><?php echo $nbS1; ?></b> Agents</a></p>
|
||||
<p class="card-text text-center text-dark"><b><?php echo $nbS1; ?></b> Agents</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -150,7 +150,7 @@
|
||||
$nbnbu = mysqli_fetch_array($result)['nbnbu'];
|
||||
mysqli_close($conn);
|
||||
?>
|
||||
<p class="card-text text-center"><b><a href="/dashboard/NBU-Detail.php"><?php echo $nbnbu; ?></b> Clients</a></p>
|
||||
<p class="card-text text-center text-dark"><b><?php echo $nbnbu; ?></b> Clients</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -161,7 +161,7 @@
|
||||
<div class="row flex-nowrap text-center">
|
||||
<div class="col">
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><h3>OS Windows INFRA</h3></div>
|
||||
<div class="card-header text-dark"><h3>Windows INFRA</h3></div>
|
||||
<div class="card-body">
|
||||
<canvas id="ChartServer" ></canvas>
|
||||
</div>
|
||||
@@ -169,7 +169,7 @@
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><h3>OS Windows APPLI</h3></div>
|
||||
<div class="card-header text-dark"><h3>Windows APPLI</h3></div>
|
||||
<div class="card-body">
|
||||
<canvas id="ChartServerA" ></canvas>
|
||||
</div>
|
||||
@@ -177,7 +177,7 @@
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><h3>OS Linux/AIX</h3></div>
|
||||
<div class="card-header text-dark"><h3>Linux/AIX</h3></div>
|
||||
<div class="card-body">
|
||||
<canvas id="ChartLinux"></canvas>
|
||||
</div>
|
||||
@@ -185,7 +185,7 @@
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><h3>Device Type</h3></div>
|
||||
<div class="card-header text-dark"><h3>Type</h3></div>
|
||||
<div class="card-body">
|
||||
<canvas id="ChartType"></canvas>
|
||||
</div>
|
||||
@@ -240,7 +240,7 @@
|
||||
});
|
||||
|
||||
let dataType = document.getElementById("dataType").innerHTML.split(",");
|
||||
let labelsType = ['Physical', 'Virtual'];
|
||||
let labelsType = ['Phys.', 'Virt.'];
|
||||
new Chart("ChartType", {
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user