This commit is contained in:
e025532
2024-11-26 09:37:10 +01:00
parent d339cb10d8
commit d1f7f5f313
11 changed files with 320 additions and 117 deletions

View File

@@ -37,14 +37,14 @@
<!-- Display -->
<div class="col py-3">
<!-- Page Title -->
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">EPO</span></h1>
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">NESSUS</span></h1>
<!-- Main content -->
<div class="row">
<!-- Get DATAs -->
<?php
DB_ENTRY02();
$result = $conn->query("SELECT * FROM GlobalCrossover where epo = 'Y' order by server");
$result = $conn->query("SELECT * FROM GlobalCrossover where epo like '%.%' order by server");
?>
<table class='table table-bordered table-hover table-sm'
@@ -53,7 +53,7 @@
>
<thead>
<th data-field="Name" data-sortable="true">Name</th>
<th data-field="LastUpdate" data-sortable="true">Last Update</th>
<th data-field="LastUpdate" data-sortable="true">Version</th>
</thead>
<tbody>
<!-- Display DATAs -->
@@ -61,12 +61,7 @@
while ($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>".$row['Server']."</td>";
$lu=date_create($row['EPOlu']);
$diff=date_diff($lu,date_create(date("Y-m-d")));
if($diff->format("%R%a") > 7){
echo "<td class='bg-warning'>".$row['EPOlu']."</td>";
}else{
echo "<td class='bg-success'>".$row['EPOlu']."</td>";
echo "<td class='bg-success'>".$row['EPO']."</td>";
}
echo "</tr>";
}