diff --git a/adjektive.php b/adjektive.php new file mode 100644 index 0000000..ecd39d3 --- /dev/null +++ b/adjektive.php @@ -0,0 +1,25 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file diff --git a/allgemein.php b/allgemein.php new file mode 100644 index 0000000..ecd39d3 --- /dev/null +++ b/allgemein.php @@ -0,0 +1,25 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file diff --git a/data.php b/data.php index c57f757..3e4e6c6 100644 --- a/data.php +++ b/data.php @@ -12,4 +12,32 @@ JOIN kategorie k ON k.id = kk.kategorie_id;"); $karteikarten = $stmt->fetchAll(PDO::FETCH_ASSOC); +/*WITH zeile AS ( + SELECT d.id, + d.wort, + k.name, + i.wort AS italienisch, + i.farbe_id AS farbe, + ROW_NUMBER() OVER (PARTITION BY d.wort ORDER BY i.id) AS rn + FROM deutsch d + JOIN italienisch i ON i.deutsch_id = d.id + JOIN kategorie k ON k.id = d.kategorie_id +) +SELECT id, + wort, + name, + MAX(CASE WHEN rn = 1 THEN italienisch END) AS wort_1, + MAX(CASE WHEN rn = 1 THEN farbe END) AS farbe_1, + MAX(CASE WHEN rn = 2 THEN italienisch END) AS wort_2, + MAX(CASE WHEN rn = 2 THEN farbe END) AS farbe_2, + MAX(CASE WHEN rn = 3 THEN italienisch END) AS wort_3, + MAX(CASE WHEN rn = 3 THEN farbe END) AS farbe_3, + MAX(CASE WHEN rn = 4 THEN italienisch END) AS wort_4, + MAX(CASE WHEN rn = 4 THEN farbe END) AS farbe_4, + MAX(CASE WHEN rn = 5 THEN italienisch END) AS wort_5, + MAX(CASE WHEN rn = 5 THEN farbe END) AS farbe_5 +FROM zeile +GROUP BY id, wort, name +ORDER BY wort;*/ + echo json_encode($karteikarten); \ No newline at end of file diff --git a/eigennamen.php b/eigennamen.php new file mode 100644 index 0000000..ecd39d3 --- /dev/null +++ b/eigennamen.php @@ -0,0 +1,25 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file diff --git a/index.php b/index.php index 5700a7f..431bfe9 100644 --- a/index.php +++ b/index.php @@ -88,5 +88,13 @@ } + \ No newline at end of file diff --git a/kartenansicht.php b/kartenansicht.php new file mode 100644 index 0000000..7d10f21 --- /dev/null +++ b/kartenansicht.php @@ -0,0 +1,22 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file diff --git a/neueKarte.php b/neueKarte.php new file mode 100644 index 0000000..1c04f0f --- /dev/null +++ b/neueKarte.php @@ -0,0 +1,49 @@ + + + + + + + + +
+

pyolingo

+
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/style.css b/style.css index 5a8c661..790680e 100644 --- a/style.css +++ b/style.css @@ -92,4 +92,30 @@ div.inhalt { margin-right: 100px; text-align: right; margin-left: 0px; +} + +div.menue { + position: fixed; + bottom: 50px; + left: 0; + width: 100%; + height: 70px; + z-index: 1000; + background-color: rgb(210, 210, 210); + padding-top: 20px; + display: flex; + justify-content: space-between; +} + +a.menueLink { + text-decoration: none; + line-height: 0.8; + font-size: 1.5rem; + border-radius: 5px; + flex: 1; + text-align: center; +} + +a:visited { + color:#14748A; } \ No newline at end of file diff --git a/substantive.php b/substantive.php new file mode 100644 index 0000000..ecd39d3 --- /dev/null +++ b/substantive.php @@ -0,0 +1,25 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file diff --git a/verben.php b/verben.php new file mode 100644 index 0000000..ecd39d3 --- /dev/null +++ b/verben.php @@ -0,0 +1,25 @@ + + + + + + + + +
+

pyolingo

+
+ + + \ No newline at end of file