Stundenpläne einbauen

This commit is contained in:
Bruno committed 2025-12-14 21:46:57 +01:00
1 parent 42f4a2c3a1
commit 84f95d568b
6 files changed
+275 -3

No files matched your search

+81
View File
@@ -0,0 +1,81 @@
<?php
$data = file_get_contents("../templates/StundenplanBruno.json");
$stundenplan = json_decode($data, true);
if (!$stundenplan) {
die("Fehler beim Laden des Stundenplans!");
}
// Alle Zeiten sammeln
$zeiten = [];
foreach ($stundenplan as $tag => $stunden) {
foreach ($stunden as $zeit => $fach) {
$zeiten[$zeit] = true;
}
}
$zeiten = array_keys($zeiten);
sort($zeiten); // Zeiten sortieren
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Stundenplan</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 30px;
}
table {
border-collapse: collapse;
width: 100%;
text-align: center;
}
th,
td {
border: 1px solid #444;
padding: 10px;
}
th {
background: #ddd;
}
td {
background: #f9f9f9;
}
caption {
font-size: 1.5em;
margin-bottom: 15px;
}
</style>
</head>
<body>
<table>
<caption>Brunos Stundenplan</caption>
<tr>
<th>Zeit</th>
<?php foreach ($stundenplan as $tag => $stunden): ?>
<th><?= htmlspecialchars($tag) ?></th>
<?php endforeach; ?>
</tr>
<?php foreach ($zeiten as $zeit): ?>
<tr>
<td><?= htmlspecialchars($zeit) ?></td>
<?php foreach ($stundenplan as $tag => $stunden): ?>
<td>
<?= isset($stunden[$zeit]) ? htmlspecialchars($stunden[$zeit]) : "-" ?>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>
+81
View File
@@ -0,0 +1,81 @@
<?php
$data = file_get_contents("../templates/StundenplanSophia.json");
$stundenplan = json_decode($data, true);
if (!$stundenplan) {
die("Fehler beim Laden des Stundenplans!");
}
// Alle Zeiten sammeln
$zeiten = [];
foreach ($stundenplan as $tag => $stunden) {
foreach ($stunden as $zeit => $fach) {
$zeiten[$zeit] = true;
}
}
$zeiten = array_keys($zeiten);
sort($zeiten); // Zeiten sortieren
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Stundenplan</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 30px;
}
table {
border-collapse: collapse;
width: 100%;
text-align: center;
}
th,
td {
border: 1px solid #444;
padding: 10px;
}
th {
background: #ddd;
}
td {
background: #f9f9f9;
}
caption {
font-size: 1.5em;
margin-bottom: 15px;
}
</style>
</head>
<body>
<table>
<caption>Sophias Stundenplan</caption>
<tr>
<th>Zeit</th>
<?php foreach ($stundenplan as $tag => $stunden): ?>
<th><?= htmlspecialchars($tag) ?></th>
<?php endforeach; ?>
</tr>
<?php foreach ($zeiten as $zeit): ?>
<tr>
<td><?= htmlspecialchars($zeit) ?></td>
<?php foreach ($stundenplan as $tag => $stunden): ?>
<td>
<?= isset($stunden[$zeit]) ? htmlspecialchars($stunden[$zeit]) : "-" ?>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>
+2 -2
View File
@@ -8,7 +8,7 @@
</url>
<url>
<loc>http://blackpi.ipv64.net/index.php</loc>
<lastmod>2025-12-08</lastmod>
<lastmod>2025-12-14</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
@@ -104,7 +104,7 @@
</url>
<url>
<loc>http://blackpi.ipv64.net/sitemap.xml</loc>
<lastmod>2025-12-12</lastmod>
<lastmod>2025-12-14</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
@@ -8,7 +8,8 @@ $routing = "../../controller/RoutesController.php?website";
$buttons = [
["section" => "Ausbildung", "buttons" => [
["name" => "Vertretungsplan", "link" => "$routing=https://sbsz-hsp.de/sdb/getPlan", "color" => $buttoncoloractive],
["name" => "Stundenplan", "link" => "$routing=/services/Stundenplan.php", "color" => $buttoncolorinactive],
["name" => "Stundenplan Sophia", "link" => "$routing=/services/StundenplanSophia.php", "color" => $buttoncoloractive],
["name" => "Stundenplan Bruno", "link" => "$routing=/services/StundenplanBruno.php", "color" => $buttoncoloractive],
["name" => "Berichte Erstellen", "link" => "$routing=/services/BerichteErstellen.php", "color" => $buttoncoloractive],
]],
+57
View File
@@ -0,0 +1,57 @@
{
"Montag": {
"1.Std 07:45 - 08:30": "FI LF3 - R 103",
"2.Std 08:30 - 09:15": "FI LF3 - R 103",
"3.Std 09:35 - 10:20": "FI LF3 - R 103",
"4.Std 10:20 - 11:05": "SK - R 119",
"5.Std 11:15 - 12:00": "En - R 119",
"6.Std 12:00 - 12:45": "En - R 119",
"7.Std 13:15 - 14:00": "",
"8.Std 14:05 - 14:50": "",
"9.Std 14:50 - 15:35": ""
},
"Dienstag": {
"1.Std 07:45 - 08:30": "FI LF5 - R 203",
"2.Std 08:30 - 09:15": "FI LF5 - R 203",
"3.Std 09:35 - 10:20": "FI LF5 - R 203",
"4.Std 10:20 - 11:05": "FI LF2 - R 205",
"5.Std 11:15 - 12:00": "FI LF2 - R 205",
"6.Std 12:00 - 12:45": "",
"7.Std 13:15 - 14:00": "",
"8.Std 14:05 - 14:50": "",
"9.Std 14:50 - 15:35": ""
},
"Mittwoch": {
"1.Std 07:45 - 08:30": "WL - R 115",
"2.Std 08:30 - 09:15": "WL - R 115",
"3.Std 09:35 - 10:20": "De - R 119",
"4.Std 10:20 - 11:05": "De - R 119",
"5.Std 11:15 - 12:00": "FI LF2 - R 205",
"6.Std 12:00 - 12:45": "FI LF2 - R 205",
"7.Std 13:15 - 14:00": "WL - R 115",
"8.Std 14:05 - 14:50": "",
"9.Std 14:50 - 15:35": ""
},
"Donnerstag": {
"1.Std 07:45 - 08:30": "FI LF3 - R 103",
"2.Std 08:30 - 09:15": "FI LF3 - R 103",
"3.Std 09:35 - 10:20": "FI LF3 - R 103",
"4.Std 10:20 - 11:05": "SK - R 119",
"5.Std 11:15 - 12:00": "SK - R 119",
"6.Std 12:00 - 12:45": "FI LF4 - R 103",
"7.Std 13:15 - 14:00": "FI LF4 - R 103",
"8.Std 14:05 - 14:50": "FI LF4 - R 103",
"9.Std 14:50 - 15:35": ""
},
"Freitag": {
"1.Std 07:45 - 08:30": "FI LF1 - R 115",
"2.Std 08:30 - 09:15": "FI LF1 - R 115",
"3.Std 09:35 - 10:20": "FI LF1 - R 115",
"4.Std 10:20 - 11:05": "FI LF5 - R 203",
"5.Std 11:15 - 12:00": "FI LF5 - R 203",
"6.Std 12:00 - 12:45": "FI LF5 - R 203",
"7.Std 13:15 - 14:00": "",
"8.Std 14:05 - 14:50": "",
"9.Std 14:50 - 15:35": ""
}
}
+52
View File
@@ -0,0 +1,52 @@
{
"Montag": {
"1.Std 07:40 - 08:25": "Ge Lck (305)",
"2.Std 08:25 - 09:10": "Ge Lck (305)",
"3.Std 09:30 - 10:15": "Fr FPl (132)",
"4.Std 10:25 - 11:10": "AWT Bck (124)",
"5.Std 11:20 - 12:05": "En Gri (307)",
"6.Std 12:05 - 12:50": "En Gri (307)",
"7.Std 13:35 - 14:20": "",
"8.Std 14:25 - 15:10": ""
},
"Dienstag": {
"1.Std 07:40 - 08:25": "Ph Slz (226)",
"2.Std 08:25 - 09:10": "Ph Slz (226)",
"3.Std 09:30 - 10:15": "Ma Gie (127)",
"4.Std 10:25 - 11:10": "Ma Gie (127)",
"5.Std 11:20 - 12:05": "Sp M Lhm (TH1)",
"6.Std 12:05 - 12:50": "Sp M Lhm (TH1)",
"7.Std 13:35 - 14:20": "f-Lat Fnb (305)",
"8.Std 14:25 - 15:10": "f-Lat Fnb (305)"
},
"Mittwoch": {
"1.Std 07:40 - 08:25": "Bio Bdt (309)",
"2.Std 08:25 - 09:10": "Bio Bdt (309)",
"3.Std 09:30 - 10:15": "De Grk (111)",
"4.Std 10:25 - 11:10": "Inf Stf (225)",
"5.Std 11:20 - 12:05": "Fr FPl (111)",
"6.Std 12:05 - 12:50": "Fr FPl (111)",
"7.Std 13:35 - 14:20": "Mu Hnz (121)",
"8.Std 14:25 - 15:10": "Ku SZi (210)"
},
"Donnerstag": {
"1.Std 07:40 - 08:25": "De Grk (124)",
"2.Std 08:25 - 09:10": "De Grk (124)",
"3.Std 09:30 - 10:15": "f-Lat Fnb (305)",
"4.Std 10:25 - 11:10": "f-Lat Fnb (305)",
"5.Std 11:20 - 12:05": "Ma Gie (109)",
"6.Std 12:05 - 12:50": "Ma Gie (109)",
"7.Std 13:35 - 14:20": "Sk Bck (124)",
"8.Std 14:25 - 15:10": "Kl Bdt (109)"
},
"Freitag": {
"1.Std 07:40 - 08:25": "En Gri (305)",
"2.Std 08:25 - 09:10": "En Gri (305)",
"3.Std 09:30 - 10:15": "BO Ree (326)",
"4.Std 10:25 - 11:10": "Geo Ree (326)",
"5.Std 11:20 - 12:05": "Ch Tsk (330)",
"6.Std 12:05 - 12:50": "Ch Tsk (330)",
"7.Std 13:35 - 14:20": "Phil Bnk (325)",
"8.Std 14:25 - 15:10": ""
}
}