diff --git a/src/articles.php b/src/articles.php index dbf91d3..6855258 100644 --- a/src/articles.php +++ b/src/articles.php @@ -196,9 +196,10 @@ $conn->close();
-
-
-
+
+
+
+
@@ -376,6 +377,7 @@ document.addEventListener('DOMContentLoaded', function () { const filterText = document.getElementById('filter-text'); const filterCategory = document.getElementById('filter-category'); const filterManufacturer = document.getElementById('filter-manufacturer'); + const filterLocation = document.getElementById('filter-location'); const collapsedCategories = new Set(); let currentView = 'list'; diff --git a/src/public_location.php b/src/public_location.php index 5750604..99acb0b 100644 --- a/src/public_location.php +++ b/src/public_location.php @@ -41,7 +41,7 @@ if (!empty($parent_name)) { } // Lade Artikel in diesem Lagerort (und in Unterorten, falls Ebene 1) -$sql_articles = "SELECT a.name, a.weight_grams, a.quantity_owned, a.image_url, a.product_designation, m.name as manufacturer_name, c.name as category_name, c.color as category_color +$sql_articles = "SELECT a.id, a.parent_article_id, a.name, a.weight_grams, a.quantity_owned, a.image_url, a.product_designation, m.name as manufacturer_name, c.name as category_name, c.color as category_color FROM articles a LEFT JOIN manufacturers m ON a.manufacturer_id = m.id LEFT JOIN categories c ON a.category_id = c.id @@ -137,33 +137,16 @@ function renderArticleCard($article, $level = 0) {
- +

Dieser Lagerort ist leer.

-

Artikel gefunden

+

Artikel gefunden

- -
- Bild - -
x
-
+ +