article_overview.php aktualisiert

This commit is contained in:
M_Viper 2024-02-25 15:28:05 +00:00
parent 22dc0d5d98
commit 2cacfabb69
1 changed files with 22 additions and 3 deletions

View File

@ -17,6 +17,16 @@
.edit-form a:hover { .edit-form a:hover {
cursor: pointer; 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> </style>
</head> </head>
<body style="background-color: aliceblue;"> <body style="background-color: aliceblue;">
@ -90,14 +100,23 @@
echo "<tr"; echo "<tr";
if (strtotime($current_date) >= strtotime($ten_days_before_expiry) && strtotime($current_date) <= strtotime($expiration_date)) { 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 ">";
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["manufacturer"] . "</td>";
echo "<td>" . $row["location"] . "</td>"; echo "<td>" . $row["location"] . "</td>";
echo "<td>" . $row["amount_should"] . "</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>" . $expiration_date . "</td>";
echo "<td>" . $row["barcode"] . "</td>"; echo "<td>" . $row["barcode"] . "</td>";
echo "<td>"; echo "<td>";