diff --git a/tasks/dbTest/index.php b/tasks/dbTest/index.php
deleted file mode 100644
index a443dbd..0000000
--- a/tasks/dbTest/index.php
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
- Artikel
-
-
-
- prepare($query);
- $stmt->execute();
- $result = $stmt->fetchAll();
-
- DB::closeConnection($db);
- ?>
-
-
-
-
- #
- Artikelname
- Lagerbestand
-
-
-
-
-
- = $item["ArtikelNr"] ?>
- = $item["Artikelname"] ?>
- = $item["Lagerbestand"] ?>
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tasks/functions/data/counter.txt b/tasks/functions/data/counter.txt
index e440e5c..bf0d87a 100644
--- a/tasks/functions/data/counter.txt
+++ b/tasks/functions/data/counter.txt
@@ -1 +1 @@
-3
\ No newline at end of file
+4
\ No newline at end of file
diff --git a/tasks/functions/funktionen.php b/tasks/functions/index.php
similarity index 100%
rename from tasks/functions/funktionen.php
rename to tasks/functions/index.php
diff --git a/tasks/guestBook/index.php b/tasks/guestBook/index.php
index 68bcce3..9188f5f 100644
--- a/tasks/guestBook/index.php
+++ b/tasks/guestBook/index.php
@@ -19,6 +19,7 @@
include_once "../../base/headers.php";
Headers::html();
+ session_name("PHP_SESSION_guestBook");
session_start();
$errors = $_SESSION["error"] ?? [];
$_SESSION["error"] = [];
diff --git a/tasks/itemList/components/pagination.php b/tasks/itemList/components/pagination.php
new file mode 100644
index 0000000..ae47de8
--- /dev/null
+++ b/tasks/itemList/components/pagination.php
@@ -0,0 +1,19 @@
+
+
+
\ No newline at end of file
diff --git a/tasks/itemList/components/table/body.php b/tasks/itemList/components/table/body.php
new file mode 100644
index 0000000..6dced32
--- /dev/null
+++ b/tasks/itemList/components/table/body.php
@@ -0,0 +1,13 @@
+
+
+
+ = $item["ArtikelNr"] ?>
+ = $item["Artikelname"] ?>
+ = number_format($item["Einzelpreis"], 2, ",", ".") ?>
+
+
+
\ No newline at end of file
diff --git a/tasks/itemList/components/table/head.php b/tasks/itemList/components/table/head.php
new file mode 100644
index 0000000..c5e7191
--- /dev/null
+++ b/tasks/itemList/components/table/head.php
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/tasks/itemList/css/head.css b/tasks/itemList/css/head.css
new file mode 100644
index 0000000..e022df5
--- /dev/null
+++ b/tasks/itemList/css/head.css
@@ -0,0 +1,34 @@
+.arrow-down::after {
+ display: inline-block;
+ margin-left: .255em;
+ vertical-align: .255em;
+ content: "";
+ border-top: .3em solid;
+ border-right: .3em solid transparent;
+ border-bottom: 0;
+ border-left: .3em solid transparent;
+}
+
+.arrow-up::after {
+ display: inline-block;
+ margin-left: .255em;
+ vertical-align: .255em;
+ content: "";
+ border-top: .3em solid;
+ border-right: .3em solid transparent;
+ border-bottom: 0;
+ border-left: .3em solid transparent;
+ transform: rotate(180deg);
+}
+
+.arrow-none::after {
+ display: inline-block;
+ margin-left: .255em;
+ vertical-align: .255em;
+ content: "";
+ border-top: .3em solid;
+ border-right: .3em solid transparent;
+ border-bottom: 0;
+ border-left: .3em solid transparent;
+ color: transparent;
+}
\ No newline at end of file
diff --git a/tasks/itemList/index.php b/tasks/itemList/index.php
new file mode 100644
index 0000000..014c2b4
--- /dev/null
+++ b/tasks/itemList/index.php
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+ Artikel
+
+
+
+ prepare($cnt);
+ $stmt->execute();
+ $maxPage = intdiv($stmt->fetch(PDO::FETCH_COLUMN), 10);
+
+ $page = isset($_GET["p"]) ? intval($_GET["p"]) : 0;
+ if ($page > $maxPage) {
+ Headers::redirect("./?p=$maxPage");
+ return;
+ }
+ if ($page < 0) {
+ Headers::redirect("./");
+ return;
+ }
+
+ $query .= "OFFSET " . $page * 10;
+
+ $stmt = $db->prepare($query);
+ $stmt->execute();
+ $result = $stmt->fetchAll();
+
+ DB::closeConnection($db);
+ ?>
+
+
+
+
+
+
+ Below you will find a list of all purchasable items, their item number as well as their price per unit.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tasks/itemList/queries.php b/tasks/itemList/queries.php
new file mode 100644
index 0000000..949399b
--- /dev/null
+++ b/tasks/itemList/queries.php
@@ -0,0 +1,27 @@
+ [
+ "up" => "ArtikelNr ASC",
+ "down" => "ArtikelNr DESC",
+ ],
+ "article" => [
+ "up" => "Artikelname ASC",
+ "down" => "Artikelname DESC",
+ ],
+ "price" => [
+ "up" => "Einzelpreis ASC",
+ "down" => "Einzelpreis DESC",
+ ],
+];