Woche 1 fertig
This commit is contained in:
@@ -37,6 +37,9 @@ include "gerichte.php";
|
||||
.speisen td {
|
||||
border: solid;
|
||||
border-collapse: collapse;
|
||||
border-radius: 4px;
|
||||
padding: 5px;
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
.speisen td:not(:first-of-type) {
|
||||
@@ -139,6 +142,7 @@ include "gerichte.php";
|
||||
<td>Gerichte</td>
|
||||
<td>Preis intern</td>
|
||||
<td>Preis extern</td>
|
||||
<td>Bild</td>
|
||||
</tr>
|
||||
<?php
|
||||
/**
|
||||
@@ -148,7 +152,7 @@ include "gerichte.php";
|
||||
|
||||
|
||||
foreach ($gerichte as $gericht){
|
||||
echo "<tr class=\"speisen\"><td>".$gericht["name"]."</td><td>".$gericht["priceint"]."</td><td>".$gericht["priceex"]."</td>";
|
||||
echo "<tr class=\"speisen\"><td>".$gericht["name"]."</td><td>".$gericht["priceint"]."</td><td>".$gericht["priceex"]."</td><td><img src=".$gericht["img"]." alt=".$gericht["name"].">";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user