From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../Praktikum5_6/b-bestellzustand.php | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/b-bestellzustand.php (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/b-bestellzustand.php') diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/b-bestellzustand.php b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/b-bestellzustand.php new file mode 100644 index 0000000..f1d7407 --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum5_6/b-bestellzustand.php @@ -0,0 +1,126 @@ + $val) + //echo "$key $val \n"; + { + $auftrg_nr = substr($key,2); + //echo $auftrg_nr; + } + + //if(is_array($Best)) + { + //print_r($Best); + foreach ($Best as $aktBest) { + if ($aktBest->AuftNr == $auftrg_nr) + { + $pzAktZust = $aktBest->zustand; + $newZustand=$pzAktZust; + if ($pzAktZust == 'bestellt') + $newZustand = 'imOfen'; + else if ($pzAktZust == 'imOfen') + $newZustand = 'fertig'; + } + } + } + + $update_str = "UPDATE t_bestellung b SET Zustand='$newZustand' WHERE b.AuftragNr = '$auftrg_nr'"; + //echo $update_str; + $res = mysql_query($update_str) or die('Query failed: ' . mysql_error()); + } +?> + + + + + + Pizzabäcker (bestellte Pizza) + + + + + + +

Pizzabäcker (bestellte Pizza)

+ "; + echo "
"; + //echo ""; + ?> + + + + + + + + + + getauftnr(); + echo"\n"; + if ($aktZustand == 'imOfen') { + echo "\n"; + echo "\n"; + } + else if ($aktZustand == 'bestellt') { + echo "\n"; + echo "\n"; + } else if ($aktZustand == 'fertig') { + echo "\n"; + echo "\n"; + } + echo "\n"; + } + } + ?> +
+
+ im Ofen + fertig +
"; + $aktName =$aktBest->getpiz_name(); + echo $aktName; + $aktZustand = $aktBest->zustand; + echo "
+
+ + \ No newline at end of file -- cgit v1.2.3