- info.md hinugefügt in /css

- aufgabe vom 24-10-17
This commit is contained in:
danielvici123
2024-10-17 10:59:54 +02:00
parent a79a566e7d
commit 945168bf64
5 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$b = 1;
if ($b == 0){
echo "Variable b hat den Wert 0. <br>";
}
else if ($b == 1){
echo "Variable b hat den Wert 1. <br>";
} else if ($b == 2){
echo "Variable b hat den Wert 2. <br>";
}
$i = 1;
switch ($i) {
case 2:
case 4:
case 6:
echo "Variable b hat den Wert 2. <br>";
break;
default:
echo "Variable b hat einen unbekannten Wert. <br>";
}
?>
</body>
</html>

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zeugnisnoten</title>
<link rel="stylesheet" href="..\css\schwarz-weiß.css">
</head>
<body>
<div class="main">
<h3>Zeugnisnoten</h3>
<form action="zeugnisnote.php">
<label for="note_englisch">Englisch: </label>
<input type="number" main="1" max="6" id="note_englisch" name="englisch" required><br>
<label for="note_deutsch">Deutsch: </label>
<input type="number" main="1" max="6" id="note_deutsch" name="deutsch" required><br>
<label for="note_mathe">Mathematik: </label>
<input type="number" main="1" max="6" id="note_mathe" name="mathe" required><br>
<button type="submit">absenden</button>
</form>
</div>
</body>
</html>

View File

@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zeugnisnoten</title>
<link rel="stylesheet" href="..\css\schwarz-weiß.css">
</head>
<body>
<div class="main">
<h3>Ausgabe: </h3>
<?php
$englisch = $_REQUEST['englisch'];
$deutsch = $_REQUEST['deutsch'];
$mathe = $_REQUEST['mathe'];
$durchschnitt = ($englisch + $deutsch + $mathe) / 3;
switch ($englisch){
case 1:
$englisch_msg = "Sehr Gut";
break;
case 2:
$englisch_msg = "Gut";
break;
case 3:
$englisch_msg = "Befriedigend";
break;
case 4:
$englisch_msg = "Ausreichend";
break;
case 5:
$englisch_msg = "Mangelhaft";
break;
case 6:
$englisch_msg = "Ungenügend";
break;
}
switch ($deutsch){
case 1:
$deutsch_msg = "Sehr Gut";
break;
case 2:
$deutsch_msg = "Gut";
break;
case 3:
$deutsch_msg = "Befriedigend";
break;
case 4:
$deutsch_msg = "Ausreichend";
break;
case 5:
$deutsch_msg = "Mangelhaft";
break;
case 6:
$deutsch_msg = "Ungenügend";
break;
}
switch ($mathe) {
case 1:
$mathe_msg = "Sehr Gut";
break;
case 2:
$mathe_msg = "Gut";
break;
case 3:
$mathe_msg = "Befriedigend";
break;
case 4:
$mathe_msg = "Ausreichend";
break;
case 5:
$mathe_msg = "Mangelhaft";
break;
case 6:
$mathe_msg = "Ungenügend";
break;
}
echo "Die Leistung in Englisch ist ". $englisch_msg . ".<br>";
echo "Die Leistung in Deutsch ist ". $deutsch_msg . ".<br>";
echo "Die Leistung in Mathe ist ". $mathe_msg . ".<br><br>";
echo "Der Durchschnitt der Noten beträgt: ". $durchschnitt. ".<br>";
?>
</div>
</body>
</html>

1
progp/css/info.md Normal file
View File

@@ -0,0 +1 @@
## Das Blaue Theme sieht schlecht aus

View File

@@ -0,0 +1,3 @@
.main {
border: 2px solid black;
}