Article List
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<nav>
|
||||
<ul class="pagination justify-content-center">
|
||||
<li class="page-item">
|
||||
<a class="page-link <?php if ($page === 0) echo "disabled" ?>" href="?p=<?= $page > 0 ? $page - 1 : 0 ?>">
|
||||
<span aria-hidden="true">«</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php for ($i = 0; $i <= $maxPage; $i++) { ?>
|
||||
<li class="page-item <?php if ($page === $i) echo "active" ?>">
|
||||
<a class="page-link" href="?p=<?= $i ?>"><?= $i + 1 ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li class="page-item">
|
||||
<a class="page-link <?php if ($page === $maxPage) echo "disabled" ?>" href="?p=<?= $page < $maxPage ? $page + 1 : $maxPage ?>">
|
||||
<span aria-hidden="true">»</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user