Meine Bücher weiter gemacht
parent
149cda66ae
commit
b8fecd611b
|
@ -16,7 +16,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
@ -164,34 +164,42 @@ if(isset($_POST['submit'])){
|
|||
<div>
|
||||
<p id='bestellungsInfo$ausleihID'></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class='shoppingCart_container'>
|
||||
<div class='shoppingCart' id='shoppingCart$ausleihID'></div>
|
||||
</div>
|
||||
<script type='text/javascript'
|
||||
language='JavaScript'>
|
||||
(function() {
|
||||
var currentElement = document.
|
||||
getElementById('available_$ausleihID');
|
||||
var parentDiv = currentElement.parentElement;
|
||||
// Sofort Abholbereit
|
||||
if (currentElement.innerHTML.trim() === 'Sofort Abholbereit') {
|
||||
parentDiv.style.backgroundColor
|
||||
= '#70AD47';
|
||||
document.getElementById('bestellungsInfo$ausleihID').innerHTML = 'Diese Reservierung verfällt, wenn das Buch nicht bis zum $bookStartdatePlusSeven abgeholt wurde.';
|
||||
document.getElementById('shoppingCart$ausleihID').style.backgroundImage = url('pictures/bin.png')
|
||||
}
|
||||
// Ausgeliehen und Verlängerbar
|
||||
else if (currentElement.innerHTML.trim().includes('Rückgabe') && $bookExtendable === 1){
|
||||
parentDiv.style.backgroundColor
|
||||
= '#70AD47';
|
||||
} else if (currentElement.innerHTML.trim().includes('Rückgabe') && $bookExtendable === 0){
|
||||
}
|
||||
// Ausgeliehen und nicht Verlängerbar
|
||||
else if (currentElement.innerHTML.trim().includes('Rückgabe') && $bookExtendable === 0){
|
||||
parentDiv.style.backgroundColor
|
||||
= '#F34343';
|
||||
} else {
|
||||
} else
|
||||
// Noch nicht Ausgeliehen
|
||||
{
|
||||
parentDiv.style.backgroundColor
|
||||
= '#F34343';
|
||||
document.getElementById('bestellungsInfo$ausleihID').innerHTML = 'Dieses Buch ist für sie Reserviert.';
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</div>
|
||||
<div class='shoppingCart_container'>
|
||||
<div class='shoppingCart'></div>
|
||||
</div>
|
||||
</div>";
|
||||
$counter++;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -21,7 +21,7 @@ TODO (optional):
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -30,7 +30,7 @@ TODO (optional, geringe Priorität):
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<h1 class="kopf" >
|
||||
<br><br>
|
||||
Bibliothek
|
||||
<a href="index.html" id="bildID">
|
||||
<a href="index.php" id="bildID">
|
||||
<img id="CandleID" src="pictures/candle.png"
|
||||
alt="Bild von einer Kerze" width="200" height="192"/></a>
|
||||
<br><br>
|
||||
|
|
Loading…
Reference in New Issue