Initial Commit
This commit is contained in:
25
include/listgenerator.php
Normal file
25
include/listgenerator.php
Normal 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>
|
||||
');
|
||||
}
|
Reference in New Issue
Block a user