Article List

This commit is contained in:
2024-06-07 13:33:01 +02:00
parent f6626019ae
commit 15d3507b04
10 changed files with 236 additions and 59 deletions
+13
View File
@@ -0,0 +1,13 @@
<tbody>
<?php
foreach ($result as $item) {
?>
<tr>
<th scope="row"><?= $item["ArtikelNr"] ?></th>
<td><?= $item["Artikelname"] ?></td>
<td><?= number_format($item["Einzelpreis"], 2, ",", ".") ?></td>
</tr>
<?php
}
?>
</tbody>
+15
View File
@@ -0,0 +1,15 @@
<thead class="sticky-top table-dark">
<tr>
<form method="post">
<th>
<button class="p-0 text-white fw-bold text-nowrap btn btn-link arrow-<?= $number ?>" name="number" value="<?= $number == "up" ? "down" : "up" ?>" title="<?= $number == "up" ? "Abwärts sortieren" : "Aufwärts sortieren" ?>">#</button>
</th>
<th>
<button class="p-0 text-white fw-bold text-nowrap btn btn-link arrow-<?= $article ?>" name="article" value="<?= $article == "up" ? "down" : "up" ?>" title="<?= $article == "up" ? "Abwärts sortieren" : "Aufwärts sortieren" ?>">Name</button>
</th>
<th>
<button class="p-0 text-white fw-bold text-nowrap btn btn-link arrow-<?= $price ?>" name="price" value="<?= $price == "up" ? "down" : "up" ?>" title="<?= $price == "up" ? "Abwärts sortieren" : "Aufwärts sortieren" ?>">Price per Unit</button>
</th>
</form>
</tr>
</thead>