Woche 1 fertig
This commit is contained in:
@@ -9,19 +9,23 @@
|
||||
$gerichte = [
|
||||
1 => ['name' => 'Rindfleich mit Bambus, Kaiserschoten und roter Paprika, dazu Mie Nudeln',
|
||||
'priceint' => 3.50,
|
||||
"priceex" => 6.20
|
||||
"priceex" => 6.20,
|
||||
"img" =>"img/bambus.jpg"
|
||||
],
|
||||
2 => ['name' => 'Spinatrisotto mit kleinen Samosateigecken und gemischter Salat',
|
||||
'priceint' => 2.90,
|
||||
"priceex" => 5.30
|
||||
"priceex" => 5.30,
|
||||
"img" =>"img/risotto.jpg"
|
||||
],
|
||||
3 => ['name' => 'Spaghetti Bolognese',
|
||||
'priceint' => 3,
|
||||
"priceex" => 5
|
||||
"priceex" => 5,
|
||||
"img" =>"img/bolo.jpg"
|
||||
],
|
||||
4 => ['name' => 'Spaghetti Carbonara',
|
||||
'priceint' => 3,
|
||||
"priceex" => 5
|
||||
"priceex" => 5,
|
||||
"img" =>"img/carbonara.jpg"
|
||||
]
|
||||
]
|
||||
?>
|
||||
BIN
M2/Werbeseite/img/bambus.jpg
Normal file
BIN
M2/Werbeseite/img/bambus.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
BIN
M2/Werbeseite/img/bolo.jpg
Normal file
BIN
M2/Werbeseite/img/bolo.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
BIN
M2/Werbeseite/img/carbonara.jpg
Normal file
BIN
M2/Werbeseite/img/carbonara.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 139 KiB |
BIN
M2/Werbeseite/img/risotto.jpg
Normal file
BIN
M2/Werbeseite/img/risotto.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
@@ -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