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

@@ -188,8 +188,8 @@
echo "<div class='col-md-4'></div>";
echo "</div><br>";
// EPO
echo "<h3><span class='font-weight-bold'>EPO</span></h3>" ;
// Nessus
echo "<h3><span class='font-weight-bold'>Nessus</span></h3>" ;
echo "<div class='row'>";
if(isset($row['EPO'])){
if($row['EPO']=="Y"){
@@ -198,24 +198,9 @@
echo "<div class='col-md-3'><input type='text' class='form-control bg-secondary text-white' disabled value='".$row['EPO']."'></div>";
}
}else{
echo "<div class='col-md-3'><div class='input-group'><span class='input-group-text'><i class='bi bi-pencil-square text-primary'></i></span><input type='text' class='form-control' id='EPO' name ='EPO' Placeholder='Missing' maxlength = '20'></div></div>";
echo "<div class='col-md-3'><div class='input-group'><span class='input-group-text'><i class='bi bi-pencil-square text-primary'></i></span><input type='text' class='form-control' id='EPO' name ='EPO' placeholder='Missing' maxlength = '20'></div></div>";
}
if(isset($row['EPOlu'])){
echo "<div class='col-md-2 text-end text-bottom'><b>Last Update</b></div>";
$date1=date_create($row['EPOlu']);
$diff=date_diff($date1,date_create(date("Y-m-d")));
if($diff->format("%R%a") > 7){
echo "<div class='col-md-3'><input type='text' class='form-control bg-danger text-white' disabled value='".$row['EPOlu']." (".abs($diff->format("%R%a"))." days)'></div>";
}else{
echo "<div class='col-md-3'><input type='text' class='form-control bg-success text-white' disabled value='".$row['EPOlu']." (".abs($diff->format("%R%a"))." days)'></div>";
}
}else{
if(!(isset($row['EPO']) && $row['EPO'] !=="Y")){
echo "<div class='col-md-2 text-end text-bottom'><b>Last Update</b></div>";
echo "<div class='col-md-3'><input type='text' class='form-control bg-warning' disabled value='Missing'></div>";
}
}
echo "<div class='col-md-4'></div>";
echo "<div class='col-md-9'></div>";
echo "</div><br>";
// NBU