131 lines
6.4 KiB
PHP
131 lines
6.4 KiB
PHP
<?php include('includes/header.php'); ?>
|
|
|
|
<h4 class="mt-3 mb-4">Wochenübersicht</h4>
|
|
<div class="container">
|
|
<?php $studentCourses = getStudentCoursesForOverview($studentInfos['data']['id']); ?>
|
|
|
|
<div class="row mb-2">
|
|
<div class="col d-flex align-items-stretch">
|
|
<div class="card bg-primary-subtle w-100">
|
|
<div class="card-body pe-2">
|
|
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
|
|
<div class="mb-3 mb-sm-0">
|
|
<h6 class="card-title fw-semibold">Montag</h6>
|
|
<li>Anfahrt</li>
|
|
<li>Disc-Golf</li>
|
|
<li>OL</li>
|
|
<li>Zelte beziehen</li>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col d-flex align-items-stretch">
|
|
<div class="card bg-success-subtle w-100">
|
|
<div class="card-body pb-2">
|
|
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
|
|
<div class="mb-3 mb-sm-0">
|
|
<h5 class="card-title fw-semibold">Dienstag</h5>
|
|
<p class="mb-2">Vormittag:</p>
|
|
<?php
|
|
if (isset($studentCourses['di-vo'])){
|
|
if($studentInfos['data']['reg_completed'] == "yes"){
|
|
?>
|
|
<a href="course.php?id=<?= $studentCourses['di-vo']['id'];?>" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['di-vo']['name']; ?><i class="ti ti-info-circle ms-2"></i></a>
|
|
<?php
|
|
} else{?>
|
|
<a href="register.php" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['di-vo']['name']; ?><i class="ti ti-pencil ms-2"></i></a>
|
|
<?php } }else{ ?>
|
|
<a href="courses.php?day=di-vo" class="btn btn-sm btn-secondary mb-2">Kurs auswählen</a>
|
|
<?php }; ?>
|
|
<p class="mb-2">Nachmittag:</p>
|
|
<?php
|
|
if (isset($studentCourses['di-na'])){
|
|
if($studentInfos['data']['reg_completed'] == "yes"){
|
|
?>
|
|
<a href="course.php?id=<?= $studentCourses['di-na']['id'];?>" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['di-na']['name']; ?><i class="ti ti-info-circle ms-2"></i></a>
|
|
<?php
|
|
} else{?>
|
|
<a href="register.php" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['di-na']['name']; ?><i class="ti ti-pencil ms-2"></i></a>
|
|
<?php } }else{ ?>
|
|
<a href="courses.php?day=di-na" class="btn btn-sm btn-secondary mb-2">Kurs auswählen</a>
|
|
<?php }; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-2">
|
|
<div class="col-12 d-flex align-items-stretch">
|
|
<div class="card bg-warning-subtle w-100">
|
|
<div class="card-body pb-3">
|
|
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
|
|
<div class="mb-3 mb-sm-0">
|
|
<h5 class="card-title fw-semibold">Mittwoch</h5>
|
|
<li>Sternwanderung</li>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-2">
|
|
<div class="col d-flex align-items-stretch">
|
|
<div class="card bg-danger-subtle w-100">
|
|
<div class="card-body pb-2">
|
|
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
|
|
<div class="mb-3 mb-sm-0">
|
|
<h5 class="card-title fw-semibold">Donnerstag</h5>
|
|
<p class="mb-2">Vormittag:</p>
|
|
<?php
|
|
if (isset($studentCourses['do-vo'])){
|
|
if($studentInfos['data']['reg_completed'] == "yes"){
|
|
?>
|
|
<a href="course.php?id=<?= $studentCourses['do-vo']['id'];?>" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['do-vo']['name']; ?><i class="ti ti-info-circle ms-2"></i></a>
|
|
<?php
|
|
} else{?>
|
|
<a href="register.php" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['do-vo']['name']; ?><i class="ti ti-pencil ms-2"></i></a>
|
|
<?php } }else{ ?>
|
|
<a href="courses.php?day=do-vo" class="btn btn-sm btn-secondary mb-2">Kurs auswählen</a>
|
|
<?php }; ?>
|
|
<p class="mb-2">Nachmittag:</p>
|
|
<?php
|
|
if (isset($studentCourses['do-na'])){
|
|
if($studentInfos['data']['reg_completed'] == "yes"){
|
|
?>
|
|
<a href="course.php?id=<?= $studentCourses['do-na']['id'];?>" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['do-na']['name']; ?><i class="ti ti-info-circle ms-2"></i></a>
|
|
<?php
|
|
} else{?>
|
|
<a href="register.php" class="btn btn-sm btn-primary mb-2"><?= $studentCourses['do-na']['name']; ?><i class="ti ti-pencil ms-2"></i></a>
|
|
<?php } }else{ ?>
|
|
<a href="courses.php?day=do-na" class="btn btn-sm btn-secondary mb-2">Kurs auswählen</a>
|
|
<?php }; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col d-flex align-items-stretch">
|
|
<div class="card bg-info-subtle w-100">
|
|
<div class="card-body pb-2">
|
|
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
|
|
<div class="mb-3 mb-sm-0">
|
|
<h5 class="card-title fw-semibold">Freitag</h5>
|
|
<li>Aufräumen</li>
|
|
<li>Abschluss</li>
|
|
<li>Rückfahrt</li>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-5"></div>
|
|
|
|
<?php include('includes/footer.php'); ?>
|