Rolle hinzugefügt
This commit is contained in:
11
profil.php
11
profil.php
@@ -48,7 +48,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
|||||||
}
|
}
|
||||||
// Daten für die Anzeige aus der Session holen
|
// Daten für die Anzeige aus der Session holen
|
||||||
$current_username = $_SESSION['username'];
|
$current_username = $_SESSION['username'];
|
||||||
$current_email = $_SESSION['email'] ?? '';
|
$current_email = $_SESSION['email'];
|
||||||
|
$current_role = $_SESSION['role'];
|
||||||
|
|
||||||
require_once 'inc/header.php'; ?>
|
require_once 'inc/header.php'; ?>
|
||||||
|
|
||||||
@@ -68,13 +69,17 @@ require_once 'inc/header.php'; ?>
|
|||||||
|
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="username" class="form-label">Benutzername</label>
|
<label for="username" class="form-label fw-bold">Benutzername</label>
|
||||||
<input type="text" class="form-control" id="username" name="username" value="<?php echo htmlspecialchars($current_username); ?>" required>
|
<input type="text" class="form-control" id="username" name="username" value="<?php echo htmlspecialchars($current_username); ?>" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="email" class="form-label">E-Mail-Adresse</label>
|
<label for="email" class="form-label fw-bold">E-Mail-Adresse</label>
|
||||||
<input type="email" class="form-control" id="email" name="email" value="<?php echo htmlspecialchars($current_email); ?>" required>
|
<input type="email" class="form-control" id="email" name="email" value="<?php echo htmlspecialchars($current_email); ?>" required>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mb-3">
|
||||||
|
<label for="role" class="form-label fw-bold">Rolle</label>
|
||||||
|
<input type="text" class="form-control" id="role" name="role" value="<?php echo htmlspecialchars($current_role); ?>" disabled readonly>
|
||||||
|
</div>
|
||||||
<button type="submit" class="btn btn-primary">Änderungen speichern</button>
|
<button type="submit" class="btn btn-primary">Änderungen speichern</button>
|
||||||
<a href="index.php" class="btn btn-secondary">Abbrechen</a>
|
<a href="index.php" class="btn btn-secondary">Abbrechen</a>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user