Unterseiten angelegt, Menüs vereinheitlicht, Navigation vor und zurück

This commit is contained in:
p3t3rp1Lz 2026-04-03 18:46:44 +02:00
parent 07036380bb
commit 89fcb86524
10 changed files with 258 additions and 0 deletions

25
adjektive.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
<a href="neueKarte.php" class="menueLink">
< zurück >
</a>
</div>
</body>
</html>

25
allgemein.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
<a href="neueKarte.php" class="menueLink">
< zurück >
</a>
</div>
</body>
</html>

View File

@ -12,4 +12,32 @@
JOIN kategorie k ON k.id = kk.kategorie_id;"); JOIN kategorie k ON k.id = kk.kategorie_id;");
$karteikarten = $stmt->fetchAll(PDO::FETCH_ASSOC); $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); echo json_encode($karteikarten);

25
eigennamen.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
<a href="neueKarte.php" class="menueLink">
< zurück >
</a>
</div>
</body>
</html>

View File

@ -88,5 +88,13 @@
} }
</script> </script>
</div> </div>
<div class="menue">
<a href="neueKarte.php" class="menueLink">
< + neue Karte >
</a>
<a href="neueKarte.php" class="menueLink">
< Kartenansicht >
</a>
</div>
</body> </body>
</html> </html>

22
kartenansicht.php Normal file
View File

@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
</div>
</body>
</html>

49
neueKarte.php Normal file
View File

@ -0,0 +1,49 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="inhalt">
<form action="allgemein.php">
<button class="button-ellipsoid" id="start" type="submit">
Allgemein
</button>
</form>
<form action="eigennamen.php">
<button class="button-ellipsoid" id="start" type="submit">
Eigennamen
</button>
</form>
<form action="substantive.php">
<button class="button-ellipsoid" id="start" type="submit">
Substantive
</button>
</form>
<form action="adjektive.php">
<button class="button-ellipsoid" id="start" type="submit">
Adjektive
</button>
</form>
<form action="verben.php">
<button class="button-ellipsoid" id="start" type="submit">
Verben
</button>
</form>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
</div>
</body>
</html>

View File

@ -92,4 +92,30 @@ div.inhalt {
margin-right: 100px; margin-right: 100px;
text-align: right; text-align: right;
margin-left: 0px; 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;
} }

25
substantive.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
<a href="neueKarte.php" class="menueLink">
< zurück >
</a>
</div>
</body>
</html>

25
verben.php Normal file
View File

@ -0,0 +1,25 @@
<?php
require_once __DIR__ . '/includes/db_connect.php';
$system = getenv('POSTGRES_SYSTEM') ?? 'test';
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<h2 class="seitentitel">pyolingo</h2>
</div>
<div class="menue">
<a href="index.php" class="menueLink">
< home >
</a>
<a href="neueKarte.php" class="menueLink">
< zurück >
</a>
</div>
</body>
</html>