Albisrieden/s/confirmation.php
2025-01-07 04:13:11 +01:00

42 lines
1.2 KiB
PHP

<?php include('includes/header.php');
if(!isset($_SESSION['id'])){
header('Location: index.php');
}
?>
<div>
<div class="card card-body p-4">
<?= alertMessage(); ?>
<?php
$ID = $_SESSION['id'];
if(!is_numeric($ID)){
echo '<div class="alert alert-danger" role="alert">'.$ID.'</div>';
return false;
}
$registration = getById('tbl_registrations',$ID);
if($registration['status'] == 200)
{
?>
<div class="row">
<div class="col-12">
<h4 class="fw-semibold mb-4">Auswahl einreichen</h4>
<p class="fw-semibold mb-4">Mit einem Klick auf den untenstehenden Knopf wird deine Anmeldung definitiv übermittelt.</p>
</div>
</div>
<form action="code.php" method="POST">
<input type="hidden" name="id" value="<?= $registration['data']['id'] ;?>" required>
<div class="row">
<div class="col-md-12 mt-4 text-center">
<button type="submit" name="confirmation" class="btn btn-info mx-1">Abschluss</button>
</div>
</div>
</form>
<?php
}
?>
</div>
</div>
<?php include('includes/footer.php'); ?>