From 2cacfabb691d85b6e8529c13c2c7ee48b7ddf92c Mon Sep 17 00:00:00 2001 From: M_Viper Date: Sun, 25 Feb 2024 15:28:05 +0000 Subject: [PATCH] article_overview.php aktualisiert --- article_overview.php | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/article_overview.php b/article_overview.php index a7ed913..c5d59ba 100644 --- a/article_overview.php +++ b/article_overview.php @@ -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 */ + } @@ -90,14 +100,23 @@ echo "= strtotime($ten_days_before_expiry) && strtotime($current_date) <= strtotime($expiration_date)) { - echo " class='expiring'"; + echo " class='expiring'"; // Klasse 'expiring' hinzufügen } echo ">"; - echo "" . $row["item_name"] . ""; + + echo "= strtotime($ten_days_before_expiry) && strtotime($current_date) <= strtotime($expiration_date)) { + echo " style='color: red;'"; // Schriftfarbe auf Rot setzen + } + echo ">" . $row["item_name"] . ""; echo "" . $row["manufacturer"] . ""; echo "" . $row["location"] . ""; echo "" . $row["amount_should"] . ""; - echo "" . $row["amount_is"] . ""; + echo "" . $row["amount_is"] . ""; echo "" . $expiration_date . ""; echo "" . $row["barcode"] . ""; echo "";