forked from Jamie-al11/Schulorga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (31 loc) · 917 Bytes
/
Copy pathindex.php
File metadata and controls
33 lines (31 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Schulorga</title>
<link href="styles/styles.css" rel="stylesheet"/>
</head>
<body>
<h1>Schulorga</h1>
<div class="stundenplan">
<?php
foreach(['mo','di','mi','do','fr'] as $wochentag){
$ganzername = array("mo" =>"Monatg","di" =>"Diensttag","mi"=> "Mittwoch","do" => "Donnerstag","fr" =>"Freitag");
echo '<div class="tag">';
echo "<h2>$ganzername[$wochentag]</h2>";
echo "<hr>";
$json = file_get_contents("test.txt");
$plan = json_decode($json, true);
$wochentag = $plan[$wochentag."f"];
$n =sizeof($wochentag);
for ($i = 0;$i < $n;$i++) {
echo "<p>$wochentag[$i]</p>";
}
echo ("</div>");
}
?>
</div>
<a href="aufgaben.php">Aufgabenseite</a>
<a href="formularst.php" >Bearbeiten</a>
</body>
</html>