59 lines
2.8 KiB
PHP
59 lines
2.8 KiB
PHP
<?php include('includes/header.php'); ?>
|
|
<div>
|
|
<div class="card card-body p-4">
|
|
<?= alertMessage(); ?>
|
|
<div class="row">
|
|
<?php
|
|
if (isset($_SESSION['id']))
|
|
{
|
|
$ID = $_SESSION['id'];
|
|
if(!is_numeric($ID)){
|
|
echo '<div class="alert alert-danger" role="alert">'.$ID.'</div>';
|
|
return false;
|
|
}
|
|
$registration = getById('tbl_registrations',$ID);
|
|
}
|
|
?>
|
|
<div class="col-6">
|
|
<h4 class="fw-semibold mb-4">Personalien</h4>
|
|
</div>
|
|
</div>
|
|
<form action="code.php" method="POST">
|
|
<input type="hidden" name="id" value="<?= isset($registration['data']['id']) ? $registration['data']['id'] : ''; ?>" required>
|
|
<div class="row">
|
|
<div class="col-6 col-md-6">
|
|
<div class="mb-3">
|
|
<label class="form-label">Vorname</label>
|
|
<input type="text" value="<?= isset($registration['data']['firstname']) ? $registration['data']['firstname'] : ''; ?>" name="firstname" required class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="col-6 col-md-6">
|
|
<div class="mb-3">
|
|
<label class="form-label">Nachname</label>
|
|
<input type="text" value="<?= isset($registration['data']['lastname']) ? $registration['data']['lastname'] : ''; ?>" name="lastname" required class="form-control">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-6 col-md-6">
|
|
<div class="mb-3">
|
|
<label class="form-label">Klasse</label>
|
|
<select name="class" required class="form-select">
|
|
<option value="">--- Auswählen ---</option>
|
|
<option value="2ABa" <?= isset($registration['data']['class']) && $registration['data']['class'] == '2ABa' ? 'selected' : ''; ?>>2ABa</option>
|
|
<option value="2ABb" <?= isset($registration['data']['class']) && $registration['data']['class'] == '2ABb' ? 'selected' : ''; ?>>2ABb</option>
|
|
<option value="2ABc" <?= isset($registration['data']['class']) && $registration['data']['class'] == '2ABc' ? 'selected' : ''; ?>>2ABc</option>
|
|
<option value="2ABd" <?= isset($registration['data']['class']) && $registration['data']['class'] == '2ABd' ? 'selected' : ''; ?>>2ABd</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12 mt-4">
|
|
<button type="submit" name="personaldata" class="btn btn-info float-end mx-1">Weiter<i class="ti ti-arrow-right ms-2"></i> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<?php include('includes/footer.php'); ?>
|