Voll Upload SGD Fachinformatiker PHP
This commit is contained in:
@@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>Teilnehmer Bearbeiten</title>
|
||||
<?php
|
||||
require_once("teilnehmer.class.php");
|
||||
?>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
require_once("navigation.inc.php")
|
||||
?>
|
||||
|
||||
<?php
|
||||
$teilnehmer = new Teilnehmer();
|
||||
|
||||
if(isset($_POST["mode"])) {
|
||||
|
||||
if($_POST["mode"] == "null") {
|
||||
$teilnehmer->anlegen();
|
||||
}
|
||||
else {
|
||||
$teilnehmer->bearbeiten();
|
||||
}
|
||||
|
||||
header("refresh:3;url=teilnehmer.php");
|
||||
}
|
||||
|
||||
else {
|
||||
?>
|
||||
<div class="ausgabe">
|
||||
<?php
|
||||
|
||||
$tData = array();
|
||||
|
||||
if(isset($_GET["tnummer"])) {
|
||||
$tData = $teilnehmer->lesenDatensatz($_GET["tnummer"]);
|
||||
$tnummer=$_GET["tnummer"]
|
||||
|
||||
?>
|
||||
|
||||
<form method="post">
|
||||
<input type="hidden" name="mode" id="mode" value="<?php echo $tnummer; ?>">
|
||||
<label for="tnummer">Teilnehmernummer: </label>
|
||||
<input type="text" name="tnummer" id="tnummer" value="<?php echo $tnummer; ?>" disabled>
|
||||
|
||||
<br>
|
||||
|
||||
<label for="name">Name: </label>
|
||||
<input type="text" name="name" id="name" value="<?php echo $tData['name']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="vname">Vorname: </label>
|
||||
<input type="text" name="vname" id="vname" value="<?php echo $tData['vname']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="plz">Postleitzahl: </label>
|
||||
<input type="text" name="plz" id="plz" value="<?php echo $tData['plz']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="ort">Ort: </label>
|
||||
<input type="text" name="ort" id="ort" value="<?php echo $tData['ort']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="strasse">Strasse: </label>
|
||||
<input type="text" name="strasse" id="strasse" <?php echo $tData['strasse']; ?>>
|
||||
|
||||
<br>
|
||||
|
||||
<label for="hausnr">Hausnummer: </label>
|
||||
<input type="text" name="hausnr" id="hausnr" value="<?php echo $tData['hausnr']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="telefon1">Telefon 1: </label>
|
||||
<input type="text" name="telefon1" id="telefon1" value="<?php echo $tData['telefon1']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="telefon2">Telefon 2: </label>
|
||||
<input type="text" name="telefon2" id="telefon2" value="<?php echo $tData['telefon2']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="email">E-Mail: </label>
|
||||
<input type="text" name="email" id="e-mail" value="<?php echo $tData['email']; ?>">
|
||||
|
||||
<br>
|
||||
|
||||
<input type="submit" value="Änderung speichern">
|
||||
</form>
|
||||
<p>
|
||||
<a class="button" href="tloeschen.php?tnummer= <?php echo $tnummer; ?>">Teilnehmer Löschen</a>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
}
|
||||
else {
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<form method="POST">
|
||||
|
||||
<input type="hidden" name="mode" id="mode" value="null">
|
||||
<label for="tnummer">Teilnehmernummer:</label>
|
||||
<input type="text" name="tnummer" id="tnummer" value="AUTO" disabled>
|
||||
|
||||
<br>
|
||||
|
||||
<label for="name">Name: </label>
|
||||
<input type="text" name="name" id="name" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="vname">Vorname: </label>
|
||||
<input type="text" name="vname" id="vname" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="plz">Postleitzahl: </label>
|
||||
<input type="text" name="plz" id="plz" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="ort">Ort: </label>
|
||||
<input type="text" name="ort" id="ort" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="strasse">Strasse: </label>
|
||||
<input type="text" name="strasse" id="strasse" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="hausnr">Hausnummer: </label>
|
||||
<input type="text" name="hausnr" id="hausnr" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="telefon1">Telefon 1: </label>
|
||||
<input type="text" name="telefon1" id="telefon1" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="telefon2">Telefon 2: </label>
|
||||
<input type="text" name="telefon2" id="telefon2" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<label for="email">E-Mail: </label>
|
||||
<input type="text" name="email" id="email" value="">
|
||||
|
||||
<br>
|
||||
|
||||
<input type="submit" value="Änderung Speichern" value="">
|
||||
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user