| No |
Certificate Name |
Product/Equipment |
Type |
Issue Date |
Expiry Date |
Status |
Vendor |
Action |
Expired';
$statusClass = 'expired';
} elseif($daysUntilExpiry <= 30) {
$statusBadge = 'Expiring Soon';
$statusClass = 'expiring';
} else {
$statusBadge = 'Active';
$statusClass = 'active';
}
} else {
$expirydate = '-';
$statusBadge = 'N/A';
$statusClass = '';
}
// Type badge
$typeBadge = '';
switch(strtolower($type)) {
case 'calibration':
$typeBadge = 'Calibration';
break;
case 'training':
$typeBadge = 'Training';
break;
case 'maintenance':
$typeBadge = 'Maintenance';
break;
default:
$typeBadge = '' . htmlspecialchars($type) . '';
}
?>
| = $no++; ?> |
= htmlspecialchars($certname) ?>
ID: = $certid ?>
|
= htmlspecialchars($productname) ?>
SN: = htmlspecialchars($productnumber) ?>
|
= $typeBadge ?> |
= $issuedate ?> |
= $expirydate ?> |
= $statusBadge ?> |
= htmlspecialchars($vendor) ?> |
|