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 --- .../Praktikum3/b-bestellzustand.html | 60 ++++++++++++ .../Praktikum3/ewa3.zip | Bin 0 -> 54990 bytes .../Praktikum3/f-fahrer.html | 37 ++++++++ .../Praktikum3/formats.css | 18 ++++ .../Praktikum3/functions.js | 97 +++++++++++++++++++ .../Praktikum3/index.html | 30 ++++++ .../Praktikum3/k-bestellung.html | 104 +++++++++++++++++++++ .../Praktikum3/k-lieferzustand.html | 69 ++++++++++++++ .../Praktikum3/pizza.fla | Bin 0 -> 44544 bytes .../Praktikum3/pizza.gif | Bin 0 -> 3604 bytes .../Praktikum3/pizza.swf | Bin 0 -> 20215 bytes 11 files changed, 415 insertions(+) create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/b-bestellzustand.html create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/ewa3.zip create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/f-fahrer.html create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/formats.css create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/functions.js create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/index.html create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-bestellung.html create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-lieferzustand.html create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.fla create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.gif create mode 100644 Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.swf (limited to 'Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3') diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/b-bestellzustand.html b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/b-bestellzustand.html new file mode 100644 index 0000000..fb92bae --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/b-bestellzustand.html @@ -0,0 +1,60 @@ + + + + Pizzabäcker (bestellte Pizza) + + + + + + +

Pizzabäcker (bestellte Pizza)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ im Ofen + fertig +
Margeritha + + +
Salami + + +
Hawaii + + +
Tonno + + +
+ + diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/ewa3.zip b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/ewa3.zip new file mode 100644 index 0000000..9fd3dcf Binary files /dev/null and b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/ewa3.zip differ diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/f-fahrer.html b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/f-fahrer.html new file mode 100644 index 0000000..a7e9564 --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/f-fahrer.html @@ -0,0 +1,37 @@ + + + + Fahrer + + + + + +

Fahrer

+ + + + + + + + + + + + + + + + + +
+ unterwegs + geliefert +
Salami +
+ Adresse Kunde 1 + 1,00 €
+ + diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/formats.css b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/formats.css new file mode 100644 index 0000000..a768777 --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/formats.css @@ -0,0 +1,18 @@ +h1 { + font-size:2em; + font-family:Arial,sans-serif; + background-color:rgb(36,139,205); + color:rgb(0,0,0); +} +td { + font-size:1em; + font-family:Arial,sans-serif; +} +td.kunde { + font-weight:bold; +} + +select { + height: 100px; + width: 250px; +} \ No newline at end of file diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/functions.js b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/functions.js new file mode 100644 index 0000000..5ccc03c --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/functions.js @@ -0,0 +1,97 @@ +function hello() { + alert("Hello"); +} + +function addToCart(pizzaname) { + var warenkorb = document.getElementById("warenkorb"); + var newElem = document.createElement("option"); + var newText = document.createTextNode(pizzaname); + var dummyElem = document.getElementById("dummy"); + newElem.appendChild(newText); + if (dummyElem != null) + { + warenkorb.removeChild(dummyElem); + } + warenkorb.appendChild(newElem); + newElem.id="opt"+eval(warenkorb.length); + sumCart(); +} + +function delFromCart() { + var warenkorb = document.getElementById("warenkorb"); + for (i=warenkorb.length-1;i>=0;i--) + { + if (warenkorb.options[i].selected == true) + warenkorb.removeChild(warenkorb.options[i]); + } + sumCart(); +} + +function checkAddr() { + var ka = document.getElementById("kd_adr"); + if ((ka.value == "") || (ka.value == "Ihre Adresse")) + { + alert ("Bitte Adresse korrigieren"); + return false; + } + else + return true; +} + +function allePizzen() { + var aPizzaname = new Array ("Salami","Hawaii","Tonno","Marghetita"); + //this.pizza_getPreis(pizzaname); + //this.pizza_showAll(); + this.getPreis=pizza_getPreis; +} + +function preisliste() { + var aPizzen=new Array(); + aPizzen["Salami"]=4.50; + aPizzen["Hawaii"]=4.50; + aPizzen["Tonno"]=5.00; + aPizzen["Marghetita"]=4.00; + return aPizzen; +} + +function pizza_getPreis(pizzaname) { + var pl = preisliste(); + return pl[pizzaname]; +} + +function sumCart() { + // loop over all pizza in cart + // print total price + var ap = new allePizzen(); + var sum=0; + var warenkorb = document.getElementById("warenkorb"); + //alert(warenkorb.length); + //for (i=0;i=0;i--) + { + warenkorb.removeChild(warenkorb.options[i]); + } + sumCart(); +} \ No newline at end of file diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/index.html b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/index.html new file mode 100644 index 0000000..29204cd --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/index.html @@ -0,0 +1,30 @@ + + + + + Pizza-Service + + + + + + + + + + + + + + + + + + + diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-bestellung.html b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-bestellung.html new file mode 100644 index 0000000..f54957b --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-bestellung.html @@ -0,0 +1,104 @@ + + + + + Kunde (Bestellung) + + + + + +

Kunde (Bestellung) +

+
+ + + +
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ Salami + Salami4.50 €
+ Hawaii + Hawaii4.50 €
+ Tonno + Tonno5.00 €
+ Marghetita + Marghetita4.00 €
+
+ + + + + + + + + + + + + + + + + + + +
Warenkorb +
+ + +
+

Gesamtpreis:

+
+ +
0.00 €
+
+ +
+ + + +
+
+
+ + \ No newline at end of file diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-lieferzustand.html b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-lieferzustand.html new file mode 100644 index 0000000..bb54f50 --- /dev/null +++ b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/k-lieferzustand.html @@ -0,0 +1,69 @@ + + + + Kunde (Lieferzustand) + + + + + +

Kunde (Lieferzustand)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ im Ofen + fertig + unterwegs +
Margeritha + + + +
Salami + + + +
Hawaii + + + +
Tonno + + + +
+ + diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.fla b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.fla new file mode 100644 index 0000000..49fd52c Binary files /dev/null and b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.fla differ diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.gif b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.gif new file mode 100644 index 0000000..3eaa227 Binary files /dev/null and b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.gif differ diff --git a/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.swf b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.swf new file mode 100644 index 0000000..5f9a31a Binary files /dev/null and b/Bachelor/Entwicklung webbasierter Anwendungen/Praktikum3/pizza.swf differ -- cgit v1.2.3