article_overview.php aktualisiert
This commit is contained in:
parent
22dc0d5d98
commit
2cacfabb69
|
@ -17,6 +17,16 @@
|
|||
.edit-form a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Stil für den Ist-Bestand, wenn er den Soll-Bestand unterschreitet */
|
||||
.low-stock {
|
||||
color: red; /* Schriftfarbe auf Orange ändern */
|
||||
}
|
||||
|
||||
/* Stil für die Zeilen, deren Ablaufdatum innerhalb von 10 Tagen liegt */
|
||||
.expiring td {
|
||||
color: red; /* Schriftfarbe auf Rot ändern */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="background-color: aliceblue;">
|
||||
|
@ -90,14 +100,23 @@
|
|||
|
||||
echo "<tr";
|
||||
if (strtotime($current_date) >= strtotime($ten_days_before_expiry) && strtotime($current_date) <= strtotime($expiration_date)) {
|
||||
echo " class='expiring'";
|
||||
echo " class='expiring'"; // Klasse 'expiring' hinzufügen
|
||||
}
|
||||
echo ">";
|
||||
echo "<td>" . $row["item_name"] . "</td>";
|
||||
|
||||
echo "<td";
|
||||
if (strtotime($current_date) >= strtotime($ten_days_before_expiry) && strtotime($current_date) <= strtotime($expiration_date)) {
|
||||
echo " style='color: red;'"; // Schriftfarbe auf Rot setzen
|
||||
}
|
||||
echo ">" . $row["item_name"] . "</td>";
|
||||
echo "<td>" . $row["manufacturer"] . "</td>";
|
||||
echo "<td>" . $row["location"] . "</td>";
|
||||
echo "<td>" . $row["amount_should"] . "</td>";
|
||||
echo "<td>" . $row["amount_is"] . "</td>";
|
||||
echo "<td";
|
||||
if ($row["amount_is"] < $row["amount_should"]) {
|
||||
echo " class='low-stock'";
|
||||
}
|
||||
echo ">" . $row["amount_is"] . "</td>";
|
||||
echo "<td>" . $expiration_date . "</td>";
|
||||
echo "<td>" . $row["barcode"] . "</td>";
|
||||
echo "<td>";
|
||||
|
|
Loading…
Reference in New Issue