Albisrieden/s/class.php

89 lines
4.1 KiB
PHP
Raw Permalink Normal View History

2025-01-07 04:13:11 +01:00
<?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-6">
<h4 class="fw-semibold mb-4">Stufe</h4>
</div>
</div>
<form action="code.php" method="POST">
<input type="hidden" name="id" value="<?= $registration['data']['id'] ;?>" required>
<div class="row">
<div class="col-auto">
<div class="mb-3">
<div class="form-group">
<label class="form-label">Sek</label>
</div>
<div class="btn-group mx-1" role="group">
<input type="radio" class="btn-check" name="sekbtnradio" required id="seka" value="seka" autocomplete="off" <?= $registration['data']['sek'] == 'A' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="seka">A</label>
<input type="radio" class="btn-check" name="sekbtnradio" id="sekb" value="sekb" autocomplete="off" <?= $registration['data']['sek'] == 'B' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="sekb">B</label>
</div>
</div>
</div>
<div class="col-auto">
<div class="mb-3">
<div class="form-group">
<label class="form-label">F-Niveau</label>
</div>
<div class="btn-group mx-1" role="group">
<input type="radio" class="btn-check" name="fniveau" required id="f1" value="f1" autocomplete="off" <?= $registration['data']['fniveau'] == '1' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="f1">1</label>
<input type="radio" class="btn-check" name="fniveau" id="f2" value="f2" autocomplete="off" <?= $registration['data']['fniveau'] == '2' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="f2">2</label>
<input type="radio" class="btn-check" name="fniveau" id="f3" value="f3" autocomplete="off" <?= $registration['data']['fniveau'] == '3' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="f3">3</label>
</div>
</div>
</div>
<div class="col-auto">
<div class="mb-3">
<div class="form-group">
<label class="form-label">M-Niveau</label>
</div>
<div class="btn-group mx-1" role="group">
<input type="radio" class="btn-check" name="mniveau" required id="m1" value="m1" autocomplete="off" <?= $registration['data']['mniveau'] == '1' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="m1">1</label>
<input type="radio" class="btn-check" name="mniveau" id="m2" value="m2" autocomplete="off" <?= $registration['data']['mniveau'] == '2' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="m2">2</label>
<input type="radio" class="btn-check" name="mniveau" id="m3" value="m3" autocomplete="off" <?= $registration['data']['mniveau'] == '3' ? 'checked':'' ;?>>
<label class="btn btn-outline-info" for="m3">3</label>
</div>
</div>
</div>
<div class="col-md-12 mt-4">
<button type="submit" name="classdata" class="btn btn-info float-end mx-1">Weiter<i class="ti ti-arrow-right ms-2"></i> </button>
</div>
</div>
</form>
<?php
}
?>
</div>
</div>
<?php include('includes/footer.php'); ?>