From e00f680053a01160c0e0ffa394d79671b9eb04b4 Mon Sep 17 00:00:00 2001 From: Nils <2120531@stud.hs-mannheim.de> Date: Wed, 14 Jun 2023 21:06:12 +0200 Subject: [PATCH] =?UTF-8?q?Verl=C3=A4ngerung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meinebuecher.php | 10 ++ verlaengerung.php | 170 +++++++++++++++++++++++++++----- verlaengerung_erfolgreich.php | 179 ++++++++++++++++++++++++++++++---- 3 files changed, 319 insertions(+), 40 deletions(-) diff --git a/meinebuecher.php b/meinebuecher.php index 744da29..3457528 100644 --- a/meinebuecher.php +++ b/meinebuecher.php @@ -175,6 +175,16 @@ parentDiv.style.backgroundColor = '#70AD47'; document.getElementById('placeholder$ausleihID').classList.add('extend'); + document.getElementById('placeholder_container$ausleihID').addEventListener('click', function(){ + if (!e) var e = window.event; + e.cancelBubble = true; + if (e.stopPropagation) e.stopPropagation(); + ID = this.id; + var data = new URLSearchParams(); + data.append('ausleihID', ID); + var url = 'http://141.19.142.11/verlaengerung.php?' + data.toString(); + location.href = url; + }); } // Ausgeliehen und nicht Verlängerbar else if (currentElement.innerHTML.trim().includes('Rückgabe') && $bookExtendable === 0){ diff --git a/verlaengerung.php b/verlaengerung.php index 3d62d66..0d72b27 100644 --- a/verlaengerung.php +++ b/verlaengerung.php @@ -5,8 +5,9 @@ + -