Initial Commit

This commit is contained in:
2022-09-16 22:29:37 +02:00
commit 72c38aee2b
24 changed files with 8695 additions and 0 deletions

25
include/listgenerator.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
function generateListItem($ListItemID, $ItemImage, $ItemTitle, $ItemPrice, $ItemComment)
{
$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);
echo ('
<div class="col">
<div class="card shadow-sm">
<img src="' . $ItemImage . '" class="card-img-top">
<div class="card-body">
<h5 class="card-title">' . $ItemTitle . '</h5>
<p class="card-text">' . $ItemComment . '</p>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-outline-secondary">zum Anbieter</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Reservieren</button>
</div>
<small class="text-muted">' . $formatter->formatCurrency($ItemPrice / 100, 'EUR') . '</small>
</div>
</div>
</div>
</div>
');
}