diff --git a/Zweites Jahr/alt/LJ1/betonung.htm b/Zweites Jahr/alt/LJ1/betonung.htm new file mode 100755 index 0000000..999dbf9 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/betonung.htm @@ -0,0 +1,17 @@ + + + + + + + HTML-Grundlagen: Textauszeichnung zur Betonung + + +

HTML-Grundlagen: Textauszeichnung zur Betonung

+

Starke Betonung

+

Dies ist ein sauwichtiges Wort

+

Betonung

+

Dies ist ein wichtiges Wort

+ + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/downloads/file.pdf b/Zweites Jahr/alt/LJ1/downloads/file.pdf new file mode 100755 index 0000000..7d5720e Binary files /dev/null and b/Zweites Jahr/alt/LJ1/downloads/file.pdf differ diff --git a/Zweites Jahr/alt/LJ1/forms/data_evaluate.php b/Zweites Jahr/alt/LJ1/forms/data_evaluate.php new file mode 100755 index 0000000..fbbed76 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/forms/data_evaluate.php @@ -0,0 +1,68 @@ + + + + + + Document + + +All required fields must be filled in

"; +} +else { + + // required fields + $lastname = $_REQUEST['lastname']; + $country = $_REQUEST['country']; + $email = $_REQUEST['email']; + $favs = $_REQUEST['favs']; + + + // optional fields + $firstname = empty($_REQUEST['firstname']) ? "n.a." : $_REQUEST['firstname']; + $dob = empty($_REQUEST['dob']) ? "n.a." : $_REQUEST['dob']; + + + echo "

Your data:

"; + echo "

"; + echo "First Name: $firstname
"; + echo "Last Name: $lastname
"; + echo "Email: $email
"; + echo "Country: $country
"; + echo "Date Of Birth: $dob
"; + echo "Favorites:
"; + + if(!empty($_REQUEST["favs"]) && is_array($_REQUEST["favs"])) { + echo "

"; + + } + else { + echo "n.a
"; + /* + echo "
";
+    print_r($favs);
+    echo "
"; + */ + //echo "Favorites: $favs
"; + echo "

"; + } +} +?> + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/forms/formtemplate.htm b/Zweites Jahr/alt/LJ1/forms/formtemplate.htm new file mode 100755 index 0000000..bba9839 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/forms/formtemplate.htm @@ -0,0 +1,97 @@ + + + + + + Form Template + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/forms/validate_date.php b/Zweites Jahr/alt/LJ1/forms/validate_date.php new file mode 100755 index 0000000..e69de29 diff --git a/Zweites Jahr/alt/LJ1/grafiken_e3fi1.htm b/Zweites Jahr/alt/LJ1/grafiken_e3fi1.htm new file mode 100755 index 0000000..334f54b --- /dev/null +++ b/Zweites Jahr/alt/LJ1/grafiken_e3fi1.htm @@ -0,0 +1,30 @@ + + + + + + HTML-Grundlagen: Grafiken + + +

HTML-Grundlagen: Grafiken

+

Grafiken ohne Zusammenhang zum Text

+ + Bild von WvSS in Vietnam + +

Abbildung mit Bezug zum Text

+
+ Erklärendes Bild +
Abb 1.1 Vergaser
+
+ +

Falls Grafik mit hoher Auflösung für verschiedene Endgeräte

+ + + + + + + Flowers + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/images/pic.jpg b/Zweites Jahr/alt/LJ1/images/pic.jpg new file mode 100755 index 0000000..44e59e8 Binary files /dev/null and b/Zweites Jahr/alt/LJ1/images/pic.jpg differ diff --git a/Zweites Jahr/alt/LJ1/listen.htm b/Zweites Jahr/alt/LJ1/listen.htm new file mode 100755 index 0000000..3e3d9e6 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/listen.htm @@ -0,0 +1,49 @@ + + + + + + HTML-Grundlagen: Listen + + +

HTML-Grundlagen: Listen

+ +

Ungeordnete Liste

+ + +

Geordnete Liste

+
    +
  1. Full Metal Jacket
  2. +
  3. Clockwork Orange
  4. +
  5. Existenz
  6. +
+ + +

Ungeordnete Liste

+

Verschachtelt

+ + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/menues_e3fi1.htm b/Zweites Jahr/alt/LJ1/menues_e3fi1.htm new file mode 100755 index 0000000..a2fae07 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/menues_e3fi1.htm @@ -0,0 +1,28 @@ + + + + + + HTML-Grundlagen: Hauptmenüs + + +

HTML-Grundlagen: Hauptmenüs

+ + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/paragraph_br_header.htm b/Zweites Jahr/alt/LJ1/paragraph_br_header.htm new file mode 100755 index 0000000..a3223e2 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/paragraph_br_header.htm @@ -0,0 +1,24 @@ + + + + + + HTML-Grundlagen: Absatz, Umbruch, Überschrift + + + +

HTML-Grundlagen: Absatz, Umbruch, Überschrift

+

Jede HTML-Datei soll nur eine Überschrift 1. Ordnung besitzen

+

Lorem ipsum dolor sit,
amet consectetur adipisicing elit. + Aliquam est molestiae nesciunt fugit aspernatur inventore + quas esse, natus, nobis excepturi,
ad reiciendis eaque. + Totam obcaecati, assumenda non voluptas odio nobis?

+

Überschrift 2. Ordnung

+

Überschrift 3. Ordnung

+

Überschrift 4. Ordnung

+
Überschrift 5. Ordnung
+
Überschrift 6. Ordnung
+ + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/verweise_e3fi1.htm b/Zweites Jahr/alt/LJ1/verweise_e3fi1.htm new file mode 100755 index 0000000..0684fee --- /dev/null +++ b/Zweites Jahr/alt/LJ1/verweise_e3fi1.htm @@ -0,0 +1,35 @@ + + + + + + HTML-Grundlagen: Verweise + + +

HTML-Grundlagen: Verweise

+ +

relative Verweise

+ + Zur Datei "Listen"
+ Download
+ Bild ansehen + +

absolute Verweise (externe URL's)

+ + + Zur Website der WvSS +
+ + + + Auf Sparkasse.de anmelden +
+ +

Verlinkte Grafiken

+ + + thumb + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/website/about.htm b/Zweites Jahr/alt/LJ1/website/about.htm new file mode 100755 index 0000000..35dd62f --- /dev/null +++ b/Zweites Jahr/alt/LJ1/website/about.htm @@ -0,0 +1,54 @@ + + + + + + MyCompany | About + + + +
+
MyCompany
+
My Slogan
+ +
+
+ +
+ + + +
+

About

+

We do stuff!

+
+
+ + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/website/contact.htm b/Zweites Jahr/alt/LJ1/website/contact.htm new file mode 100755 index 0000000..ce85ab9 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/website/contact.htm @@ -0,0 +1,57 @@ + + + + + + MyCompany | Contact + + + +
+
MyCompany
+
My Slogan
+ +
+
+ +
+ + + +
+

Contact

+
+
staudt@wvss-mannheim.de
+
+ +
+
+ + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/website/index.htm b/Zweites Jahr/alt/LJ1/website/index.htm new file mode 100755 index 0000000..2561dbd --- /dev/null +++ b/Zweites Jahr/alt/LJ1/website/index.htm @@ -0,0 +1,54 @@ + + + + + + MyCompany | Homepage + + + +
+
MyCompany
+
My Slogan
+ +
+
+ +
+ + + +
+

Homepage

+

Welcome on our website!

+
+
+ + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/website/portfolio.htm b/Zweites Jahr/alt/LJ1/website/portfolio.htm new file mode 100755 index 0000000..832ca8c --- /dev/null +++ b/Zweites Jahr/alt/LJ1/website/portfolio.htm @@ -0,0 +1,58 @@ + + + + + + MyCompany | Portfolio + + + +
+
MyCompany
+
My Slogan
+ +
+
+ +
+ + + +
+

Portfolio

+ +
+
+ + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/LJ1/whitespaces.htm b/Zweites Jahr/alt/LJ1/whitespaces.htm new file mode 100755 index 0000000..efb26c4 --- /dev/null +++ b/Zweites Jahr/alt/LJ1/whitespaces.htm @@ -0,0 +1,30 @@ + + + + + + + HTML-Grundlagen: Whitespaces + + + +Lorem ipsum, dolor sit amet consectetur adipisicing elit. +Est veniam illo culpa aliquid, +esse fugiat dolorem +dignissimos! Viele Leerzeichen: Rem mollitia, +Viele leere Zeilen: + + + + + + +expedita asperiores +accusantium reprehenderit Viele Tabs: iusto sint numquam temporibus +qui distinctio pariatur! + +Erzwungene Leerzeichen (aber keinen Grund diese anzuwenden):    <-- Leerzeichen +Erzwungene Zeilenumbrüche:




(niemals mehrere breaks) +Tabs werden mit CSS gestaltet + + \ No newline at end of file diff --git a/Zweites Jahr/alt/data_evaluate.php b/Zweites Jahr/alt/data_evaluate.php new file mode 100755 index 0000000..fbbed76 --- /dev/null +++ b/Zweites Jahr/alt/data_evaluate.php @@ -0,0 +1,68 @@ + + + + + + Document + + +All required fields must be filled in

"; +} +else { + + // required fields + $lastname = $_REQUEST['lastname']; + $country = $_REQUEST['country']; + $email = $_REQUEST['email']; + $favs = $_REQUEST['favs']; + + + // optional fields + $firstname = empty($_REQUEST['firstname']) ? "n.a." : $_REQUEST['firstname']; + $dob = empty($_REQUEST['dob']) ? "n.a." : $_REQUEST['dob']; + + + echo "

Your data:

"; + echo "

"; + echo "First Name: $firstname
"; + echo "Last Name: $lastname
"; + echo "Email: $email
"; + echo "Country: $country
"; + echo "Date Of Birth: $dob
"; + echo "Favorites:
"; + + if(!empty($_REQUEST["favs"]) && is_array($_REQUEST["favs"])) { + echo "

"; + + } + else { + echo "n.a
"; + /* + echo "
";
+    print_r($favs);
+    echo "
"; + */ + //echo "Favorites: $favs
"; + echo "

"; + } +} +?> + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/file_handling/file_write.php b/Zweites Jahr/alt/file_handling/file_write.php new file mode 100755 index 0000000..0016939 --- /dev/null +++ b/Zweites Jahr/alt/file_handling/file_write.php @@ -0,0 +1,66 @@ + + + + + + Document + + + +
+
+ +
+
+ + +
+ + + +
+ + "Michael", + "lastname" => "Staudt", + "email" => "staudt@wvss-mannheim.de" +]; + +foreach($myArray as $attr => $value) { + $row = "$attr: $value\n"; + fputs($fp, $row); +} +*/ + +// insert from form +if(!empty($_REQUEST)) { //submit button clicked + $row = "First Name: $_REQUEST[fn] | Last Name: $_REQUEST[ln]\n"; + fputs($fp, $row); +} + + +fclose($fp); +?> + + + \ No newline at end of file diff --git a/Zweites Jahr/alt/file_handling/testfile_1.txt b/Zweites Jahr/alt/file_handling/testfile_1.txt new file mode 100755 index 0000000..c77cbf5 --- /dev/null +++ b/Zweites Jahr/alt/file_handling/testfile_1.txt @@ -0,0 +1 @@ +First Name: | Last Name: diff --git a/Zweites Jahr/alt/file_handling/testsfile_1.txt b/Zweites Jahr/alt/file_handling/testsfile_1.txt new file mode 100755 index 0000000..6d80e04 --- /dev/null +++ b/Zweites Jahr/alt/file_handling/testsfile_1.txt @@ -0,0 +1 @@ +This is a rowThis is a rowThis is a rowThis is a rowThis is a row \ No newline at end of file diff --git a/Zweites Jahr/alt/file_handling/validate_date.php b/Zweites Jahr/alt/file_handling/validate_date.php new file mode 100755 index 0000000..a38960d --- /dev/null +++ b/Zweites Jahr/alt/file_handling/validate_date.php @@ -0,0 +1,50 @@ + + + + + + Document + + + +Datum $date ist gültig

"; +else echo "

Datum $date ist ungültig

"; + + +// Functions +function isLeapYear(int $year): bool { + return ($year % 4 == 0 && $year % 100 != 0 || $year % 400 == 0); +} + +function isValidDate(string $date): bool { + $date_parts = ["Tag","Monat", "Jahr"]; + $date_array = explode(".", $date); + + $days_of_month = [31,28,31,30,31,30,31,31,30,31,30,31]; + if(isLeapYear($date_array[2])) { + $days_of_month[1] = 29; + } + + // Monat auf Gültigkeit prüfen + if($date_array[1] < 1 || $date_array[1] > 12) return false; + + // Tag auf Gültigkeit prüfen + if($date_array[0] < 1 || $date_array[0] > $days_of_month[$date_array[1]-1]) return false; + + // Jahr auf Gültigkeit prüfen + if($date_array[2] < 0 || $date_array[2] > 3000) return false; + + // Falls Datum gültig + return true; +} + +?> + + \ No newline at end of file diff --git a/Zweites Jahr/alt/formtemplate.htm b/Zweites Jahr/alt/formtemplate.htm new file mode 100755 index 0000000..bba9839 --- /dev/null +++ b/Zweites Jahr/alt/formtemplate.htm @@ -0,0 +1,97 @@ + + + + + + Form Template + + + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + +
+ +
+ +
+ + + \ No newline at end of file diff --git a/Zweites Jahr/alt/validate_date.php b/Zweites Jahr/alt/validate_date.php new file mode 100755 index 0000000..8b27a8a --- /dev/null +++ b/Zweites Jahr/alt/validate_date.php @@ -0,0 +1,86 @@ + + + + + + Document + + + +Datum $date ist gültig

"; +else echo "

Datum $date ist ungültig

"; + + +// Functions +function isLeapYear(int $year): bool { + return ($year % 4 == 0 && $year % 100 != 0 || $year % 400 == 0); +} + +function isValidDate(string $date): bool { + $date_parts = ["Tag","Monat", "Jahr"]; + $date_array = explode(".", $date); + + $days_of_month = [31,28,31,30,31,30,31,31,30,31,30,31]; + if(isLeapYear($date_array[2])) { + $days_of_month[1] = 29; + } + + /* + // geht nicht: + echo $date_array; + + // Ausgabe des Arrays zum Debuggen + echo "
";
+    print_r($date_array);
+    echo "
"; + + // Benutzerfreundliche Ausgabe + echo "

Tag: $date_array[0]
"; + echo "Monat: $date_array[1]
"; + echo "Jahr: $date_array[2]

"; + + + for($i = 0; $i < sizeof($date_array); $i++) { + echo "

$date_parts[$i]: $date_array[$i]

"; + } + + + echo "
";
+    print_r($date_array_assoz);
+    echo "
"; + */ + /* + $date_array_assoz = array_combine($date_parts, $date_array); + foreach($date_array_assoz as $datepartkey => $datepartvalue) { + echo "

$datepartkey: $datepartvalue

"; + } + */ + + + // Monat auf Gültigkeit prüfen + if($date_array[1] < 1 || $date_array[1] > 12) { + return false; + } + + // Tag auf Gültigkeit prüfen + if($date_array[0] < 1 || $date_array[0] > $days_of_month[$date_array[1]-1]) { + return false; + } + + // Jahr auf Gültigkeit prüfen + if($date_array[2] < 0 || $date_array[2] > 3000) { + return false; + } + return true; +} + +?> + + \ No newline at end of file