Voll Upload SGD Fachinformatiker PHP
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Dozent bearbeiten</title>
|
||||
<?php
|
||||
require_once("dozenten.class.php");
|
||||
?>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require_once("navigation.inc.php");
|
||||
?>
|
||||
<?php
|
||||
$dozent = new dozent();
|
||||
if (isset($_POST["mode"])) {
|
||||
if($_POST["mode"] == "null"){
|
||||
$dozent->anlegen($_POST);
|
||||
}
|
||||
else {
|
||||
$dozent->bearbeiten($_POST);
|
||||
}
|
||||
header("refresh:3;url=dozenten.php");
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<div class="ausgabe">
|
||||
<?php
|
||||
|
||||
$tData = array();
|
||||
|
||||
if (isset($_GET["doznr"])) {
|
||||
$tData = $dozent->lesenDatensatz($_GET["doznr"]);
|
||||
$doznr = $_GET["doznr"];
|
||||
?>
|
||||
|
||||
<form action="dbearbeiten.php" method="POST">
|
||||
<input type="hidden" id="mode" name="mode" value="<?php echo $doznr; ?>">
|
||||
<label for="doznr">Dozentnummer: </label><input type="text" id="doznr" name="doznr" value="<?php echo $doznr; ?>" disabled><br>
|
||||
<label for="name">Name: </label><input type="text" id="name" name="name" value="<?php echo $tData['name']; ?>"><br>
|
||||
<label for="vname">Vorname: </label><input type="text" id="vname" name="vname" value="<?php echo $tData['vname']; ?>"><br>
|
||||
<label for="plz">Postleitzahl: </label><input type="text" id="plz" name="plz" value="<?php echo $tData['plz']; ?>"><br>
|
||||
<label for="plz">Ort: </label><input type="text" id="ort" name="ort" value="<?php echo $tData['ort']; ?>"><br>
|
||||
<label for="plz">Straße: </label><input type="text" id="strasse" name="strasse" value="<?php echo $tData['strasse']; ?>"><br>
|
||||
<label for="hausnr">Hausnummer: </label><input type="text" id="hausnr" name="hausnr" value="<?php echo $tData['hausnr']; ?>"><br>
|
||||
<label for="telefon1">Telefon 1: </label><input type="text" id="telefon1" name="telefon1" value="<?php echo $tData['telefon1']; ?>"><br>
|
||||
<label for="telefon2">Telefon 2: </label><input type="text" id="telefon2" name="telefon2" value="<?php echo $tData['telefon2']; ?>"><br>
|
||||
<label for="email">E-Mail: </label><input type="text" id="email" name="email" value="<?php echo $tData['email']; ?>">
|
||||
<p><input type="submit" value="Änderung speichern"></p>
|
||||
</form>
|
||||
|
||||
<p><a class="button" href="dloeschen.php?doznr=<?php echo $doznr; ?>">Dozent löschen</a></p>
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
<form action="dbearbeiten.php" method="POST">
|
||||
<input type="hidden" id="mode" name="mode" value="null">
|
||||
<label for="doznr">Dozentnummer: </label><input type="text" id="doznr" name="doznr" value="AUTO" disabled><br>
|
||||
<label for="name">Name: </label><input type="text" id="name" name="name" value=""><br>
|
||||
<label for="vname">Vorname: </label><input type="text" id="vname" name="vname" value=""><br>
|
||||
<label for="plz">Postleitzahl: </label><input type="text" id="plz" name="plz" value=""><br>
|
||||
<label for="plz">Ort: </label><input type="text" id="ort" name="ort" value=""><br>
|
||||
<label for="plz">Straße: </label><input type="text" id="strasse" name="strasse" value=""><br>
|
||||
<label for="hausnr">Hausnummer: </label><input type="text" id="hausnr" name="hausnr" value=""><br>
|
||||
<label for="telefon1">Telefon 1: </label><input type="text" id="telefon1" name="telefon1" value=""><br>
|
||||
<label for="telefon2">Telefon 2: </label><input type="text" id="telefon2" name="telefon2" value=""><br>
|
||||
<label for="email">E-Mail: </label><input type="text" id="email" name="email" value=""><br>
|
||||
<input type="submit" value="Änderung speichern">
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user