small Tweaks
This commit is contained in:
@@ -78,7 +78,7 @@ function wishlistMainBuilder($ListID)
|
||||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3">
|
||||
');
|
||||
|
||||
$sql = 'SELECT ID, title, description, link, image, reserved, price FROM whishes WHERE whislist = ' . $ListID;
|
||||
$sql = 'SELECT ID, title, description, link, image, reserved, price FROM whishes WHERE whislist = ' . $ListID . ' ORDER BY RAND()';
|
||||
$result = $conn->query($sql);
|
||||
|
||||
if ($result !== false && $result->num_rows > 0) {
|
||||
|
@@ -171,8 +171,7 @@ if (isset($_POST['reservation'])) {
|
||||
<p class="float-end mb-1">
|
||||
<a href="#">Back to top</a>
|
||||
</p>
|
||||
<p class="mb-1">Album example is © Bootstrap, but please download and customize it for yourself!</p>
|
||||
<p class="mb-0">New to Bootstrap? <a href="/">Visit the homepage</a> or read our <a href="../getting-started/introduction/">getting started guide</a>.</p>
|
||||
<p class="mb-1">Simple Wishlist © by Marcel Peterkau</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -269,6 +268,7 @@ if (isset($_POST['reservation'])) {
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p id="ReservationInfoText">Bitte vergeben sie ein Passwort um diesen Wunsch zu reservieren. Nur mit diesem Passwort (oder durch den Listeneigentümer) kann die Reservierung wieder aufgehoben werden.</p>
|
||||
<form action="" method="POST">
|
||||
<label for="ListPassword" class="form-label">Passwort</label>
|
||||
<div class="input-group mb-3">
|
||||
@@ -298,6 +298,7 @@ if (isset($_POST['reservation'])) {
|
||||
if (reserved == 1) {
|
||||
modal.find('#reservation-submit').text('Reservierung aufheben')
|
||||
modal.find('#reservationModalLabel').text('Reservierung aufheben')
|
||||
modal.find('#ReservationInfoText').remove()
|
||||
} else {
|
||||
modal.find('#reservation-submit').text('Reservieren')
|
||||
modal.find('#reservationModalLabel').text('Wunsch reservieren')
|
||||
|
Reference in New Issue
Block a user