article_overview.php aktualisiert
This commit is contained in:
		| @@ -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>"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user