Unterseiten angelegt, Menüs vereinheitlicht, Navigation vor und zurück
This commit is contained in:
parent
07036380bb
commit
89fcb86524
25
adjektive.php
Normal file
25
adjektive.php
Normal 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
25
allgemein.php
Normal 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>
|
||||
28
data.php
28
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);
|
||||
25
eigennamen.php
Normal file
25
eigennamen.php
Normal 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>
|
||||
@ -88,5 +88,13 @@
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div class="menue">
|
||||
<a href="neueKarte.php" class="menueLink">
|
||||
< + neue Karte >
|
||||
</a>
|
||||
<a href="neueKarte.php" class="menueLink">
|
||||
< Kartenansicht >
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
22
kartenansicht.php
Normal file
22
kartenansicht.php
Normal 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
49
neueKarte.php
Normal 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>
|
||||
26
style.css
26
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;
|
||||
}
|
||||
25
substantive.php
Normal file
25
substantive.php
Normal 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
25
verben.php
Normal 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>
|
||||
Loading…
Reference in New Issue
Block a user